summaryrefslogtreecommitdiffstats
path: root/templates/repo/view_file.tmpl
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2020-09-08 19:17:56 +0200
committerGitHub <noreply@github.com>2020-09-08 13:17:56 -0400
commit3865ecbf13b5091be6a03913c1a83f361228d556 (patch)
treeb4168776eeedb90adb8e0e00981ce161dd1f395b /templates/repo/view_file.tmpl
parente2043987543d6b1e94afc22d145d70ddaf814898 (diff)
downloadgitea-3865ecbf13b5091be6a03913c1a83f361228d556.tar.gz
gitea-3865ecbf13b5091be6a03913c1a83f361228d556.zip
File header tweaks, add CSS helpers (#12635)
- replace two instances of fontawesome with octicons - add new "class" optional argument to "svg" helper - add many new CSS helpers and move their import to the end for increaseed precedence Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Diffstat (limited to 'templates/repo/view_file.tmpl')
-rw-r--r--templates/repo/view_file.tmpl14
1 files changed, 5 insertions, 9 deletions
diff --git a/templates/repo/view_file.tmpl b/templates/repo/view_file.tmpl
index 782331aad7..26f66d2cb5 100644
--- a/templates/repo/view_file.tmpl
+++ b/templates/repo/view_file.tmpl
@@ -1,12 +1,8 @@
<div class="{{TabSizeClass .Editorconfig .FileName}} non-diff-file-content">
<h4 class="file-header ui top attached header">
- <div class="file-header-left">
+ <div class="file-header-left df ac">
{{if .ReadmeInList}}
- {{if .FileIsSymlink}}
- <i class="icons"><i class="book icon"></i><i class="bottom left corner tiny inverted share icon"></i></i>
- {{else}}
- <i class="book icon"></i>
- {{end}}
+ {{svg "octicon-book" 16 "mr-3"}}
<strong>{{.FileName}}</strong>
{{else}}
<div class="file-info text grey normal mono">
@@ -26,8 +22,8 @@
</div>
{{end}}
{{if .LFSLock}}
- <div class="file-info-entry">
- <i class="fa fa-lock poping up disabled" data-content="{{.LFSLockHint}}" data-position="bottom center" data-variation="tiny inverted"></i>
+ <div class="file-info-entry ui" data-tooltip="{{.LFSLockHint}}" data-inverted="">
+ {{svg "octicon-lock" 16 "mr-2"}}
<a href="{{AppSubUrl}}/{{.LFSLock.Owner.Name}}">{{.LFSLockOwner}}</a>
</div>
{{end}}
@@ -35,7 +31,7 @@
{{end}}
</div>
{{if not .ReadmeInList}}
- <div class="file-header-right">
+ <div class="file-header-right df ac">
<div class="ui right file-actions">
<div class="ui buttons">
<a class="ui button" href="{{EscapePound $.RawFileLink}}">{{.i18n.Tr "repo.file_raw"}}</a>