Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Various changes. Largely around adding the user registration section.
- Loading branch information
Showing
9 changed files
with
206 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,66 +1,34 @@ | ||
<div id="page"> | ||
<div id="sidebar"> | ||
<ul id="sidebar-items"> | ||
<li> | ||
<h3>Shortcuts</h3> | ||
<ul class="links"> | ||
<li><a href="/register">Register as a user</a></li> | ||
<li><a href="/login">Login</a></li> | ||
<li><a href="/submit">Submit a URL</a></li> | ||
</ul> | ||
</li> | ||
|
||
<h3>More Details</h3> | ||
<ul class="links"> | ||
<li><a href="/about">About Shrtr</a></li> | ||
<li><a href="/about/team">About the Team</a></li> | ||
</ul> | ||
</li> | ||
|
||
<li> | ||
<h3>Blogroll</h3> | ||
|
||
<ul class="links"> | ||
<li><a href="">A blog</a></li> | ||
<li><a href="">Another blog</a></li> | ||
</ul> | ||
</li> | ||
</ul> | ||
</div> | ||
|
||
<div id="content"> | ||
<div id="header"> | ||
<h1>Shrtr</h1> | ||
<h2>URL shortening without the Googlejuice</h2> | ||
</div> | ||
|
||
<div id="getting-started"> | ||
<h1>Getting started</h1> | ||
<h2>Here’s how to get started:</h2> | ||
<div id="getting-started"> | ||
<h1>Getting started</h1> | ||
<h2>Here’s how to get started:</h2> | ||
|
||
<ol> | ||
<li> | ||
<h2>Register as a user</h2> | ||
<ol> | ||
<li> | ||
<h2>Register as a user</h2> | ||
|
||
<p>Only registered users can use Shrtr's URL shortening | ||
service. You can <a href="/register">register here</a>.</p> | ||
</li> | ||
<p>Only registered users can use Shrtr's URL shortening | ||
service. You can <a href="/register">register here</a>.</p> | ||
</li> | ||
|
||
<li> | ||
<h2>Submit URLs</h2> | ||
<li> | ||
<h2>Submit URLs</h2> | ||
|
||
<p>Once you're registered and logged in, you can | ||
<a href="/submit">submit a URL</a>.</p> | ||
</li> | ||
<p>Once you're registered and logged in, you can | ||
<a href="/submit">submit a URL</a>.</p> | ||
</li> | ||
|
||
<li> | ||
<h2>Profit!</h2> | ||
<li> | ||
<h2>Profit!</h2> | ||
|
||
<p>Or, more accurately, stop other people profiting from | ||
you linking to them.</p> | ||
</li> | ||
<p>Or, more accurately, stop other people profiting from | ||
you linking to them.</p> | ||
</li> | ||
|
||
</ol> | ||
</div> | ||
</div> | ||
</ol> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
[% IF error -%] | ||
<p class="error">[% error %]</p> | ||
[% END -%] | ||
[% IF session.goto -%] | ||
<p>You need to be logged in to do that</p> | ||
[% END -%] | ||
<form method="POST" action="/login"> | ||
<p>User: <input name="username" value="[% session.username %]" /><br /> | ||
Password: <input type="password" name="pass" /><br /> | ||
<input type="submit" value="Log in" /> | ||
</form> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
[% IF error -%] | ||
<p class="error">[% error %]</p> | ||
[% END -%] | ||
<form method="POST"> | ||
<p>Username: <input name="username" value="[% session.username %]" /><br /> | ||
Email address: <input name="email" value="[% session.email %]" /><br /> | ||
Password: <input type="password" name="password" /><br /> | ||
Password (again): <input type="password" name="password2" /><br /> | ||
<input type="submit" value="Register" /></p> | ||
</form> | ||
[% USE Dumper %] | ||
<pre> | ||
[% Dumper.dump(session) -%] | ||
</pre> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<p>User [% user.username %] created successfully.</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
<p><b>Code:</b> [% url.code %]</br> | ||
<p><b>Code:</b> <a href="/[% url.code %]">[% url.code %]</a></br> | ||
<b>URL:</b> [% url.url %]</br> | ||
<b>Clicks:</b> [% url.clicks.size %]</p> |