|
|
@@ -34,6 +34,21 @@ |
|
|
|
</div> |
|
|
|
{{end}} |
|
|
|
</div> |
|
|
|
|
|
|
|
{{if .ReadmeInList}} |
|
|
|
<div class="file-header-right"> |
|
|
|
<div class="ui right file-actions"> |
|
|
|
{{if .Repository.CanEnableEditor}} |
|
|
|
{{if .CanEditFile}} |
|
|
|
<a href="{{.RepoLink}}/_edit/{{EscapePound .BranchName}}/{{EscapePound .TreePath}}"><span class="btn-octicon poping up" data-content="{{.EditFileTooltip}}" data-position="bottom center" data-variation="tiny inverted">{{svg "octicon-pencil" 16}}</span></a> |
|
|
|
{{else}} |
|
|
|
<span class="btn-octicon poping up disabled" data-content="{{.EditFileTooltip}}" data-position="bottom center" data-variation="tiny inverted">{{svg "octicon-pencil" 16}}</span> |
|
|
|
{{end}} |
|
|
|
{{end}} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
{{end}} |
|
|
|
|
|
|
|
{{if not .ReadmeInList}} |
|
|
|
<div class="file-header-right"> |
|
|
|
<div class="ui right file-actions"> |
|
|
|