diff options
author | silverwind <me@silverwind.io> | 2020-11-01 21:04:26 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-01 15:04:26 -0500 |
commit | 4617bb689b217ae039297ec16124e73b81487b15 (patch) | |
tree | 0320ce0f74a2e70da28b9d95d1e92a9602b8210b /templates/repo/blame.tmpl | |
parent | 543697e61e4881256ab56a0fd26eed9765eac1de (diff) | |
download | gitea-4617bb689b217ae039297ec16124e73b81487b15.tar.gz gitea-4617bb689b217ae039297ec16124e73b81487b15.zip |
Misc UI fixes, add secondary color (#13378)
* Misc UI fixes, add secondary color
- Add secondary color, primarily used in arc-green currently
- Convert icons on release page to SVG
- Improve resolved conversation placeholder
- Diff fixes on arc-green
- Misc color tweaks
* fix comment header, adjust arc-green dropzone
* label margin, sidebar margin
* flexbox commits table and add primary button styles
* tooltip styles
* file header fixes
Co-authored-by: Lauris BH <lauris@nix.lv>
Co-authored-by: zeripath <art27@cantab.net>
Diffstat (limited to 'templates/repo/blame.tmpl')
-rw-r--r-- | templates/repo/blame.tmpl | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/templates/repo/blame.tmpl b/templates/repo/blame.tmpl index 86c0695cbd..5d9a171019 100644 --- a/templates/repo/blame.tmpl +++ b/templates/repo/blame.tmpl @@ -1,6 +1,6 @@ <div class="{{TabSizeClass .Editorconfig .FileName}} non-diff-file-content"> - <h4 class="file-header ui top attached header"> - <div class="file-header-left"> + <h4 class="file-header ui top attached header df ac sb"> + <div class="file-header-left df ac"> <div class="file-info text grey normal mono"> <div class="file-info-entry"> {{.NumLines}} {{.i18n.Tr (TrN .i18n.Lang .NumLines "repo.line" "repo.lines") }} @@ -8,16 +8,14 @@ <div class="file-info-entry">{{FileSize .FileSize}}</div> </div> </div> - <div class="file-header-right"> - <div class="ui right file-actions"> - <div class="ui buttons"> - <a class="ui button" href="{{EscapePound $.RawFileLink}}">{{.i18n.Tr "repo.file_raw"}}</a> - {{if not .IsViewCommit}} - <a class="ui button" href="{{.RepoLink}}/src/commit/{{.CommitID}}/{{EscapePound .TreePath}}">{{.i18n.Tr "repo.file_permalink"}}</a> - {{end}} - <a class="ui button" href="{{.RepoLink}}/src/{{EscapePound .BranchNameSubURL}}/{{EscapePound .TreePath}}">{{.i18n.Tr "repo.normal_view"}}</a> - <a class="ui button" href="{{.RepoLink}}/commits/{{EscapePound .BranchNameSubURL}}/{{EscapePound .TreePath}}">{{.i18n.Tr "repo.file_history"}}</a> - </div> + <div class="file-header-right file-actions df ac"> + <div class="ui buttons"> + <a class="ui tiny button" href="{{EscapePound $.RawFileLink}}">{{.i18n.Tr "repo.file_raw"}}</a> + {{if not .IsViewCommit}} + <a class="ui tiny button" href="{{.RepoLink}}/src/commit/{{.CommitID}}/{{EscapePound .TreePath}}">{{.i18n.Tr "repo.file_permalink"}}</a> + {{end}} + <a class="ui tiny button" href="{{.RepoLink}}/src/{{EscapePound .BranchNameSubURL}}/{{EscapePound .TreePath}}">{{.i18n.Tr "repo.normal_view"}}</a> + <a class="ui tiny button" href="{{.RepoLink}}/commits/{{EscapePound .BranchNameSubURL}}/{{EscapePound .TreePath}}">{{.i18n.Tr "repo.file_history"}}</a> </div> </div> </h4> |