From 49106a5d8cf1153b5da23f889d15e46fa480e7cc Mon Sep 17 00:00:00 2001 From: VirtualTam Date: Fri, 18 Jan 2019 22:58:09 +0100 Subject: fix: ensure HTML tags are stripped from OpenGraph description Fixes https://github.com/shaarli/Shaarli/issues/1250 Relates to https://github.com/shaarli/Shaarli/issues/1242 Signed-off-by: VirtualTam --- tpl/default/includes.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tpl/default') diff --git a/tpl/default/includes.html b/tpl/default/includes.html index 0427e224..6c30d1bf 100644 --- a/tpl/default/includes.html +++ b/tpl/default/includes.html @@ -21,7 +21,7 @@ {$ogDescription=isset($link.description_src) ? $link.description_src : $link.description} - + {if="$link.thumbnail"} {/if} -- cgit v1.2.3 From cb974e47476284d967483f7478e3dcb5a2d974d4 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Sat, 9 Feb 2019 14:29:35 +0100 Subject: Accessibility: specify the HTML lang attribute The lang is based on the user defined one. If the language is automatic, no language will be specified. Fixes #1216 --- tpl/default/404.html | 2 +- tpl/default/addlink.html | 2 +- tpl/default/changepassword.html | 2 +- tpl/default/changetag.html | 2 +- tpl/default/configure.html | 2 +- tpl/default/daily.html | 2 +- tpl/default/editlink.html | 2 +- tpl/default/export.html | 2 +- tpl/default/import.html | 2 +- tpl/default/install.html | 2 +- tpl/default/linklist.html | 2 +- tpl/default/loginform.html | 2 +- tpl/default/picwall.html | 2 +- tpl/default/pluginsadmin.html | 2 +- tpl/default/tag.cloud.html | 2 +- tpl/default/tag.list.html | 2 +- tpl/default/thumbnails.html | 2 +- tpl/default/tools.html | 2 +- 18 files changed, 18 insertions(+), 18 deletions(-) (limited to 'tpl/default') diff --git a/tpl/default/404.html b/tpl/default/404.html index fd337cad..10a9458a 100644 --- a/tpl/default/404.html +++ b/tpl/default/404.html @@ -1,5 +1,5 @@ - + {include="includes"} diff --git a/tpl/default/addlink.html b/tpl/default/addlink.html index 55864a02..b4b4a0ec 100644 --- a/tpl/default/addlink.html +++ b/tpl/default/addlink.html @@ -1,5 +1,5 @@ - + {include="includes"} diff --git a/tpl/default/changepassword.html b/tpl/default/changepassword.html index 2d15c92a..3867e3ca 100644 --- a/tpl/default/changepassword.html +++ b/tpl/default/changepassword.html @@ -1,5 +1,5 @@ - + {include="includes"} diff --git a/tpl/default/changetag.html b/tpl/default/changetag.html index 6606c4fa..0da6a5eb 100644 --- a/tpl/default/changetag.html +++ b/tpl/default/changetag.html @@ -1,5 +1,5 @@ - + {include="includes"} diff --git a/tpl/default/configure.html b/tpl/default/configure.html index 42e32230..7a87c05d 100644 --- a/tpl/default/configure.html +++ b/tpl/default/configure.html @@ -1,5 +1,5 @@ - + {include="includes"} diff --git a/tpl/default/daily.html b/tpl/default/daily.html index 2c409478..359ecbd0 100644 --- a/tpl/default/daily.html +++ b/tpl/default/daily.html @@ -1,5 +1,5 @@ - + {include="includes"} diff --git a/tpl/default/editlink.html b/tpl/default/editlink.html index d8c57155..df14535d 100644 --- a/tpl/default/editlink.html +++ b/tpl/default/editlink.html @@ -1,5 +1,5 @@ - + {include="includes"} diff --git a/tpl/default/export.html b/tpl/default/export.html index af1d6e33..99c01b11 100644 --- a/tpl/default/export.html +++ b/tpl/default/export.html @@ -1,5 +1,5 @@ - + {include="includes"} diff --git a/tpl/default/import.html b/tpl/default/import.html index bdc9086e..20f854d1 100644 --- a/tpl/default/import.html +++ b/tpl/default/import.html @@ -1,5 +1,5 @@ - + {include="includes"} diff --git a/tpl/default/install.html b/tpl/default/install.html index 6199b33d..f0e7040e 100644 --- a/tpl/default/install.html +++ b/tpl/default/install.html @@ -1,5 +1,5 @@ - + {include="includes"} diff --git a/tpl/default/linklist.html b/tpl/default/linklist.html index ed78f40a..d7005c21 100644 --- a/tpl/default/linklist.html +++ b/tpl/default/linklist.html @@ -1,5 +1,5 @@ - + {include="includes"} diff --git a/tpl/default/loginform.html b/tpl/default/loginform.html index 3cdab65a..bfc54815 100644 --- a/tpl/default/loginform.html +++ b/tpl/default/loginform.html @@ -1,5 +1,5 @@ - + {include="includes"} diff --git a/tpl/default/picwall.html b/tpl/default/picwall.html index 4c325487..5a959244 100644 --- a/tpl/default/picwall.html +++ b/tpl/default/picwall.html @@ -1,5 +1,5 @@ - + {include="includes"} diff --git a/tpl/default/pluginsadmin.html b/tpl/default/pluginsadmin.html index 82041972..4bfaa934 100644 --- a/tpl/default/pluginsadmin.html +++ b/tpl/default/pluginsadmin.html @@ -1,5 +1,5 @@ - + {include="includes"} diff --git a/tpl/default/tag.cloud.html b/tpl/default/tag.cloud.html index 9e52158d..bedf3f8c 100644 --- a/tpl/default/tag.cloud.html +++ b/tpl/default/tag.cloud.html @@ -1,5 +1,5 @@ - + {include="includes"} diff --git a/tpl/default/tag.list.html b/tpl/default/tag.list.html index bcddcd56..41eab246 100644 --- a/tpl/default/tag.list.html +++ b/tpl/default/tag.list.html @@ -1,5 +1,5 @@ - + {include="includes"} diff --git a/tpl/default/thumbnails.html b/tpl/default/thumbnails.html index a8cf904e..f1939798 100644 --- a/tpl/default/thumbnails.html +++ b/tpl/default/thumbnails.html @@ -1,5 +1,5 @@ - + {include="includes"} diff --git a/tpl/default/tools.html b/tpl/default/tools.html index c9ce1eaf..20d0c893 100644 --- a/tpl/default/tools.html +++ b/tpl/default/tools.html @@ -1,5 +1,5 @@ - + {include="includes"} -- cgit v1.2.3 From 8d03f705ebbc891e216d509d4de0419842ebd317 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Sat, 9 Feb 2019 17:59:53 +0100 Subject: Bulk action: set visibility Added 2 buttons when link checkboxes are checked to set them either public or private. Related to #572 #1160 --- tpl/default/page.header.html | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'tpl/default') diff --git a/tpl/default/page.header.html b/tpl/default/page.header.html index 4f6dd4d8..4b665023 100644 --- a/tpl/default/page.header.html +++ b/tpl/default/page.header.html @@ -118,7 +118,18 @@ -- cgit v1.2.3 From c31dd67c5de233cbdccf990a9306d9b7a01f6b3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luce=20Carevi=C4=87?= Date: Sat, 2 Mar 2019 12:56:08 +0100 Subject: footer and contentinfo --- tpl/default/page.footer.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tpl/default') diff --git a/tpl/default/page.footer.html b/tpl/default/page.footer.html index 5af39be7..f7ae2b84 100644 --- a/tpl/default/page.footer.html +++ b/tpl/default/page.footer.html @@ -2,7 +2,7 @@
- +
-- cgit v1.2.3 From de07aad18fb35dcef1e222d1d453d8c4dd6f355d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luce=20Carevi=C4=87?= Date: Sat, 2 Mar 2019 13:32:36 +0100 Subject: fix empty links and hide for screenreaders --- tpl/default/linklist.html | 22 +++++++++++----------- tpl/default/linklist.paging.html | 24 ++++++++++++------------ tpl/default/page.header.html | 18 +++++++++--------- 3 files changed, 32 insertions(+), 32 deletions(-) (limited to 'tpl/default') diff --git a/tpl/default/linklist.html b/tpl/default/linklist.html index d7005c21..1cf00783 100644 --- a/tpl/default/linklist.html +++ b/tpl/default/linklist.html @@ -94,7 +94,7 @@ {'tagged'|t} {loop="$exploded_tags"} - {$value} + {$value} {/loop} {/if} @@ -195,18 +195,18 @@ - + - - + - + title="{$strToggleSticky}" aria-label="{$strToggleSticky}" class="pin-link {if="$value.sticky"}pinned-link{/if} pure-u-0 pure-u-lg-visible"> + @@ -248,10 +248,10 @@ {ignore}do not add space or line break between these div - Firefox issue{/ignore} class="linklist-item-infos-url pure-u-lg-5-12 pure-u-1"> - {$value.url} + {$value.url}
@@ -264,12 +264,12 @@ {/if} {if="$is_logged_in"} · - - + · - + {/if}
diff --git a/tpl/default/linklist.paging.html b/tpl/default/linklist.paging.html index fe665a84..4e50495a 100644 --- a/tpl/default/linklist.paging.html +++ b/tpl/default/linklist.paging.html @@ -6,21 +6,21 @@ {'Filters'|t} {if="$is_logged_in"} - - + + > {/if} - - + - - + > + + {loop="$action_plugin"} {$value.attr.class=isset($value.attr.class) ? $value.attr.class : ''} @@ -59,8 +59,8 @@
- - + + diff --git a/tpl/default/page.header.html b/tpl/default/page.header.html index 4f6dd4d8..5f1e4d66 100644 --- a/tpl/default/page.header.html +++ b/tpl/default/page.header.html @@ -20,7 +20,7 @@ {if="$is_logged_in || $openshaarli"}
  • - {'Shaare'|t} + {'Shaare'|t}
  • @@ -67,27 +67,27 @@
  • - - + +
  • {if="!$is_logged_in"}
  • - + id="login-button" aria-label="{'Login'|t}" title="{'Login'|t}"> +
  • {else}
  • - - + +
  • {/if} -- cgit v1.2.3 From da815e3f2e640e5c9f838c3f1629c2defdddc0e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luce=20Carevi=C4=87?= Date: Sat, 2 Mar 2019 13:40:21 +0100 Subject: delete useless titles --- tpl/default/tag.sort.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tpl/default') diff --git a/tpl/default/tag.sort.html b/tpl/default/tag.sort.html index 89acda0d..d24c9f64 100644 --- a/tpl/default/tag.sort.html +++ b/tpl/default/tag.sort.html @@ -1,8 +1,8 @@ \ No newline at end of file -- cgit v1.2.3 From d3defcac1c6785ea074070ba6290e68efe16b1a8 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Mon, 22 Apr 2019 11:23:47 +0200 Subject: Display sticky label in linklist Add sticky label, like private label, in linklist to make it more visible. --- tpl/default/linklist.html | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'tpl/default') diff --git a/tpl/default/linklist.html b/tpl/default/linklist.html index d7005c21..a43786de 100644 --- a/tpl/default/linklist.html +++ b/tpl/default/linklist.html @@ -146,13 +146,14 @@ {/if} - {if="$is_logged_in"} - - {/if} +

    -- cgit v1.2.3 From 51c5de1105f70769b48522408a8ac97ac8c634d4 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Mon, 22 Apr 2019 12:39:15 +0200 Subject: Hide select all button on mobile view Bulk actions are not available on mobile view yet --- tpl/default/linklist.paging.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tpl/default') diff --git a/tpl/default/linklist.paging.html b/tpl/default/linklist.paging.html index 4e50495a..68947f92 100644 --- a/tpl/default/linklist.paging.html +++ b/tpl/default/linklist.paging.html @@ -17,7 +17,7 @@ class={if="$untaggedonly"}"filter-on"{else}"filter-off"{/if} > -- cgit v1.2.3 From 374f89e721047bb983d3c3270e73b2ffe8d9d079 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Wed, 8 May 2019 12:09:06 +0200 Subject: Add print CSS rules to the default template Fixes #1291 * Display the header bar only on the first page * Hide search bars, pagination buttons, filters, and edit/delete buttons --- tpl/default/linklist.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tpl/default') diff --git a/tpl/default/linklist.html b/tpl/default/linklist.html index a2aaac82..a025d53c 100644 --- a/tpl/default/linklist.html +++ b/tpl/default/linklist.html @@ -52,7 +52,7 @@ {/loop}