add delete button

This commit is contained in:
Henrique Dias committed 2017-06-28 22:24:00 +01:00
1 parent 84ddad027f
commit cc917a621e
3 files changed
+21 -20

No files matched your search

-17
View File
@@ -1,14 +1,3 @@
{{ define "info-button" }}
{{ end }}
{{ define "delete-button" }}
<button aria-label="Delete" title="Delete" class="action" id="delete">
<i class="material-icons">delete</i>
<span>Delete</span>
</button>
{{ end }}
{{ define "right-side-actions" }}
{{ template "info-button" }}
{{ end }}
@@ -33,12 +22,6 @@
</button>
{{- end }}
{{- if and .User.AllowEdit (.IsEditor) }}
<button aria-label="Delete" title="Delete" class="action" id="delete">
<i class="material-icons">delete</i>
<span>Delete</span>
</button>
{{- end }}
<button {{ if .IsDir }}data-dropdown{{ end }} aria-label="Download" title="Download" class="action" id="download">
{{- if .IsEditor}}<a href="?download=true">{{ end }}