From 2e3d0dc4bded0a45d9c2e453c7cd68a84733155a Mon Sep 17 00:00:00 2001 From: Henrique Dias Date: Tue, 3 Jan 2017 21:04:09 +0000 Subject: [PATCH] simple updates Former-commit-id: eb79371421d0367ffe5751fcd8b72ffffb0a1bb9 --- _embed/public/css/styles.css | 2 +- _embed/templates/base.tmpl | 28 ++++++++++++++++++++++++++-- 2 files changed, 27 insertions(+), 3 deletions(-) diff --git a/_embed/public/css/styles.css b/_embed/public/css/styles.css index 47d38520..de714cbe 100644 --- a/_embed/public/css/styles.css +++ b/_embed/public/css/styles.css @@ -1128,7 +1128,7 @@ footer a:hover { display: none; } #bottom-bar>*:first-child { - max-width: calc(100% - 16em); + max-width: calc(100% - 16em) !important; } #main-actions { position: fixed; diff --git a/_embed/templates/base.tmpl b/_embed/templates/base.tmpl index 36c7af0c..01a6e207 100644 --- a/_embed/templates/base.tmpl +++ b/_embed/templates/base.tmpl @@ -79,13 +79,17 @@ {{- end }} + {{- if .IsDir }}
open_in_new + See raw
+ {{- end }} - {{- if .User.AllowEdit }} + {{- if and (.User.AllowEdit) (.IsDir) }}
forward + Move file
{{- end }} @@ -95,7 +99,7 @@ {{- end }} - {{- if .User.AllowEdit }} + {{- if and .User.AllowEdit .IsDir }}
deleteDelete
@@ -127,6 +131,26 @@ {{- end }} + {{- if not .IsDir }} +
+ open_in_new + See raw +
+ {{- end }} + + {{- if and .User.AllowEdit (not .IsDir) }} +
+ deleteDelete +
+ {{- end }} + + {{- if and (.User.AllowEdit) (not .IsDir) }} +
+ forward + Move file +
+ {{- end }} +
{{- if not .IsDir}}{{ end }} file_downloadDownload