Former-commit-id: fbbf79d7572d73f824774f29bbd17af28155c3bc
This commit is contained in:
Henrique Dias
2017-01-15 11:47:52 +00:00
parent 8e0b3b17df
commit ee279c4233
5 changed files with 94 additions and 55 deletions

View File

@@ -67,9 +67,16 @@
<div class="actions{{ if .IsDir }} disabled{{ end }}" id="file-only">
{{- if and (not .IsDir) (.User.AllowEdit) }}
{{- if .Editor}}
{{- if eq .Data.Mode "markdown" }}
<div class="action" id="preview" onclick="notImplemented(event);">
<i class="material-icons">remove_red_eye</i>
<i class="material-icons" title="Preview">remove_red_eye</i>
</div>
{{- end }}
{{- if eq .Data.Visual true }}
<div class="action" id="edit-source">
<i class="material-icons" title="Toggle edit source">code</i>
</div>
{{- end }}
{{- end }}