diff options
author | ArthurHoaro <arthur@hoa.ro> | 2019-05-25 15:52:27 +0200 |
---|---|---|
committer | ArthurHoaro <arthur@hoa.ro> | 2020-01-18 09:55:59 +0100 |
commit | cf92b4dd1521241eefc58eaf6dcd202cd83969d8 (patch) | |
tree | 9d6f6f4dc9eabe111c3ba5609eea8b22cd5a23aa /tpl/default | |
parent | 336a28fa4a09b968ce4705900bf57693e672f0bf (diff) | |
download | Shaarli-cf92b4dd1521241eefc58eaf6dcd202cd83969d8.tar.gz Shaarli-cf92b4dd1521241eefc58eaf6dcd202cd83969d8.tar.zst Shaarli-cf92b4dd1521241eefc58eaf6dcd202cd83969d8.zip |
Apply the new system (Bookmark + Service) to the whole code base
See https://github.com/shaarli/Shaarli/issues/1307
Diffstat (limited to 'tpl/default')
-rw-r--r-- | tpl/default/configure.html | 22 | ||||
-rw-r--r-- | tpl/default/editlink.html | 12 | ||||
-rw-r--r-- | tpl/default/includes.html | 3 |
3 files changed, 35 insertions, 2 deletions
diff --git a/tpl/default/configure.html b/tpl/default/configure.html index c1a6a6bc..8b75900d 100644 --- a/tpl/default/configure.html +++ b/tpl/default/configure.html | |||
@@ -68,6 +68,28 @@ | |||
68 | </select> | 68 | </select> |
69 | </div> | 69 | </div> |
70 | </div> | 70 | </div> |
71 | <div class="pure-u-lg-{$ratioLabel} pure-u-1"> | ||
72 | <div class="form-label"> | ||
73 | <label for="formatter"> | ||
74 | <span class="label-name">{'Description formatter'|t}</span> | ||
75 | </label> | ||
76 | </div> | ||
77 | </div> | ||
78 | <div class="pure-u-lg-{$ratioInput} pure-u-1"> | ||
79 | <div class="form-input"> | ||
80 | <select name="formatter" id="formatter" class="align"> | ||
81 | {loop="$formatter_available"} | ||
82 | <option value="{$value}" | ||
83 | {if="$value===$formatter"} | ||
84 | selected="selected" | ||
85 | {/if} | ||
86 | > | ||
87 | {$value|ucfirst} | ||
88 | </option> | ||
89 | {/loop} | ||
90 | </select> | ||
91 | </div> | ||
92 | </div> | ||
71 | </div> | 93 | </div> |
72 | <div class="pure-g"> | 94 | <div class="pure-g"> |
73 | <div class="pure-u-lg-{$ratioLabel} pure-u-1"> | 95 | <div class="pure-u-lg-{$ratioLabel} pure-u-1"> |
diff --git a/tpl/default/editlink.html b/tpl/default/editlink.html index df14535d..d16059a3 100644 --- a/tpl/default/editlink.html +++ b/tpl/default/editlink.html | |||
@@ -11,7 +11,6 @@ | |||
11 | <h2 class="window-title"> | 11 | <h2 class="window-title"> |
12 | {if="!$link_is_new"}{'Edit Shaare'|t}{else}{'New Shaare'|t}{/if} | 12 | {if="!$link_is_new"}{'Edit Shaare'|t}{else}{'New Shaare'|t}{/if} |
13 | </h2> | 13 | </h2> |
14 | <input type="hidden" name="lf_linkdate" value="{$link.linkdate}"> | ||
15 | {if="isset($link.id)"} | 14 | {if="isset($link.id)"} |
16 | <input type="hidden" name="lf_id" value="{$link.id}"> | 15 | <input type="hidden" name="lf_id" value="{$link.id}"> |
17 | {/if} | 16 | {/if} |
@@ -20,7 +19,7 @@ | |||
20 | <label for="lf_url">{'URL'|t}</label> | 19 | <label for="lf_url">{'URL'|t}</label> |
21 | </div> | 20 | </div> |
22 | <div> | 21 | <div> |
23 | <input type="text" name="lf_url" id="lf_url" value="{$link.url}" class="lf_input autofocus"> | 22 | <input type="text" name="lf_url" id="lf_url" value="{$link.url}" class="lf_input"> |
24 | </div> | 23 | </div> |
25 | <div> | 24 | <div> |
26 | <label for="lf_title">{'Title'|t}</label> | 25 | <label for="lf_title">{'Title'|t}</label> |
@@ -50,6 +49,15 @@ | |||
50 | <label for="lf_private">{'Private'|t}</label> | 49 | <label for="lf_private">{'Private'|t}</label> |
51 | </div> | 50 | </div> |
52 | 51 | ||
52 | {if="$formatter==='markdown'"} | ||
53 | <div class="md_help"> | ||
54 | {'Description will be rendered with'|t} | ||
55 | <a href="http://daringfireball.net/projects/markdown/syntax" title="{'Markdown syntax documentation'|t}"> | ||
56 | {'Markdown syntax'|t} | ||
57 | </a>. | ||
58 | </div> | ||
59 | {/if} | ||
60 | |||
53 | <div id="editlink-plugins"> | 61 | <div id="editlink-plugins"> |
54 | {loop="$edit_link_plugin"} | 62 | {loop="$edit_link_plugin"} |
55 | {$value} | 63 | {$value} |
diff --git a/tpl/default/includes.html b/tpl/default/includes.html index 428b8ee2..3820a4f7 100644 --- a/tpl/default/includes.html +++ b/tpl/default/includes.html | |||
@@ -8,6 +8,9 @@ | |||
8 | <link href="img/favicon.png" rel="shortcut icon" type="image/png" /> | 8 | <link href="img/favicon.png" rel="shortcut icon" type="image/png" /> |
9 | <link href="img/apple-touch-icon.png" rel="apple-touch-icon" sizes="180x180" /> | 9 | <link href="img/apple-touch-icon.png" rel="apple-touch-icon" sizes="180x180" /> |
10 | <link type="text/css" rel="stylesheet" href="css/shaarli.min.css?v={$version_hash}" /> | 10 | <link type="text/css" rel="stylesheet" href="css/shaarli.min.css?v={$version_hash}" /> |
11 | {if="$formatter==='markdown'"} | ||
12 | <link type="text/css" rel="stylesheet" href="css/markdown.min.css?v={$version_hash}" /> | ||
13 | {/if} | ||
11 | {loop="$plugins_includes.css_files"} | 14 | {loop="$plugins_includes.css_files"} |
12 | <link type="text/css" rel="stylesheet" href="{$value}?v={$version_hash}#"/> | 15 | <link type="text/css" rel="stylesheet" href="{$value}?v={$version_hash}#"/> |
13 | {/loop} | 16 | {/loop} |