aboutsummaryrefslogtreecommitdiff
path: root/template/html/common
diff options
context:
space:
mode:
Diffstat (limited to 'template/html/common')
-rw-r--r--template/html/common/icons.html6
-rw-r--r--template/html/common/item_meta.html12
-rw-r--r--template/html/common/layout.html12
3 files changed, 24 insertions, 6 deletions
diff --git a/template/html/common/icons.html b/template/html/common/icons.html
index bf38b715..0b82a3b3 100644
--- a/template/html/common/icons.html
+++ b/template/html/common/icons.html
@@ -43,6 +43,12 @@ SOFTWARE.
<path d="M12 17.75l-6.172 3.245 1.179-6.873-4.993-4.867 6.9-1.002L12 2l3.086 6.253 6.9 1.002-4.993 4.867 1.179 6.873z" />
</svg>
{{ end }}
+{{ define "icon_unstar" }}
+<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-unstar" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
+ <path stroke="none" d="M0 0h24v24H0z"/>
+ <path fill="currentColor" d="M12 17.75l-6.172 3.245 1.179-6.873-4.993-4.867 6.9-1.002L12 2l3.086 6.253 6.9 1.002-4.993 4.867 1.179 6.873z" />
+</svg>
+{{ end }}
{{ define "icon_save" }}
<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-download" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z"/>
diff --git a/template/html/common/item_meta.html b/template/html/common/item_meta.html
index f92e138e..e2991ff8 100644
--- a/template/html/common/item_meta.html
+++ b/template/html/common/item_meta.html
@@ -20,20 +20,20 @@
<a href="#"
title="{{ t "entry.status.title" }}"
data-toggle-status="true"
- data-label-read="✔&nbsp;{{ t "entry.status.read" }}"
- data-label-unread="✘&nbsp;{{ t "entry.status.unread" }}"
+ data-label-read="{{ t "entry.status.read" }}"
+ data-label-unread="{{ t "entry.status.unread" }}"
data-value="{{ if eq .entry.Status "read" }}read{{ else }}unread{{ end }}"
- ><span class="icon-label">{{ if eq .entry.Status "read" }}✘&nbsp;{{ t "entry.status.unread" }}{{ else }}✔&nbsp;{{ t "entry.status.read" }}{{ end }}</span></a>
+ >{{ if eq .entry.Status "read" }}{{ template "icon_unread" }}{{ else }}{{ template "icon_read" }}{{ end }}<span class="icon-label">{{ if eq .entry.Status "read" }}{{ t "entry.status.unread" }}{{ else }}{{ t "entry.status.read" }}{{ end }}</span></a>
</li>
<li>
<a href="#"
data-toggle-bookmark="true"
data-bookmark-url="{{ route "toggleBookmark" "entryID" .entry.ID }}"
data-label-loading="{{ t "entry.state.saving" }}"
- data-label-star="☆&nbsp;{{ t "entry.bookmark.toggle.on" }}"
- data-label-unstar="★&nbsp;{{ t "entry.bookmark.toggle.off" }}"
+ data-label-star="{{ t "entry.bookmark.toggle.on" }}"
+ data-label-unstar="{{ t "entry.bookmark.toggle.off" }}"
data-value="{{ if .entry.Starred }}star{{ else }}unstar{{ end }}"
- ><span class="icon-label">{{ if .entry.Starred }}★&nbsp;{{ t "entry.bookmark.toggle.off" }}{{ else }}☆&nbsp;{{ t "entry.bookmark.toggle.on" }}{{ end }}</span></a>
+ >{{ if .entry.Starred }}{{ template "icon_unstar" }}{{ else }}{{ template "icon_star" }}{{ end }}<span class="icon-label">{{ if .entry.Starred }}{{ t "entry.bookmark.toggle.off" }}{{ else }}{{ t "entry.bookmark.toggle.on" }}{{ end }}</span></a>
</li>
{{ if .entry.ShareCode }}
<li>
diff --git a/template/html/common/layout.html b/template/html/common/layout.html
index 695f5226..d56218be 100644
--- a/template/html/common/layout.html
+++ b/template/html/common/layout.html
@@ -157,6 +157,18 @@
</div>
</div>
</template>
+ <template id="icon_read">
+ {{ template "icon_read" }}
+ </template>
+ <template id="icon_unread">
+ {{ template "icon_unread" }}
+ </template>
+ <template id="icon_star">
+ {{ template "icon_star" }}
+ </template>
+ <template id="icon_unstar">
+ {{ template "icon_unstar" }}
+ </template>
</body>
</html>
{{ end }}