forked from straup/parallel-flickr
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add inc_head for account stuff; add confirmation hooks for path alias…
…es; fix boolean test
- Loading branch information
1 parent
dda264a
commit 20a209f
Showing
8 changed files
with
52 additions
and
16 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
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1 @@ | |||
{* place-holder *} |
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
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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,36 +1,45 @@ | |||
{capture assign="page_title"}your custom URLs{/capture} | |||
{include file="inc_head.txt"} | {include file="inc_head.txt"} | ||
{include file="inc_account_head.txt"} | |||
|
|
||
<form method="POST"> | <form method="POST"> | ||
{$crumb_key|crumb_input} | {$crumb_key|crumb_input} | ||
|
|
||
<h3>Create a new URL</h3> | <h3>Create a new URL</h3> | ||
|
|
||
<input type="text" name="path_alias" value="" size="30" /> | {if $error} | ||
<input type="submit" value="CREATE" /> | <p class="error">{$error|escape}</p> | ||
|
{else} | ||
{if !$aliases|@count} | |||
|
|
||
{if $step=='confirm'} | |||
<p>Are you sure you want all your photos to live at <strong>{$cfg.abs_root_url}photos/{$path_alias|escape}/</strong> ?</p> | |||
<input type="hidden" name="confirm" value="1" /> | |||
<input type="hidden" name="path_alias" value="{$path_alias|escape}" /> | |||
<input type="submit" value="I AM SURE, YES" /> | |||
{else} | {else} | ||
<strong>{$cfg.abs_root_url}photos/</strong> <input type="text" name="path_alias" value="" size="30" /> | |||
<input type="submit" value="CREATE" /> | |||
{/if} | |||
|
|||
{/if} | |||
|
|
||
<h3>Your URLs</h3> | <h3>Your URLs</h3> | ||
|
|
||
<table> | <table> | ||
<tr> | <tr> | ||
<th>URL</th> | |||
<th>Created</th> | <th>Created</th> | ||
<th>Redirects To</th> | <th>URL</th> | ||
<th style="border:none;"></th> | |||
</tr> | </tr> | ||
{foreach from=$aliases item="row"} | {foreach from=$aliases item="row"} | ||
<tr> | <tr> | ||
<td><a href="">{$row.path_alias|escape}</a></td> | <td>{$row.created|date_format:"%Y-%m-%d"|escape}</td> | ||
<td>{$row.created|escape}</td> | <td><a href="{$cfg.abs_root_url}photos/{$row.path_alias|escape}/">{$cfg.abs_root_url}photos/{$row.path_alias|escape}/</a></td> | ||
<td>{if $row.redirect_to}<a href="">{$row.redirect_to|escape}</a>{else}—{/if}</td> | <td style="font-size:small;font-style:italic;">{if $aliases|@count > 1 and !$row.redirect_to}⇽ all your other URLs redirect to this one{/if}</td> | ||
</tr> | </tr> | ||
{/foreach} | {/foreach} | ||
</table> | </table> | ||
|
|
||
{/if} | |||
|
|||
</form> | </form> | ||
|
|
||
{include file="inc_foot.txt"} | {include file="inc_foot.txt"} |