forked from forgejo/forgejo
template and ui fix
This commit is contained in:
parent
ad2ab6d214
commit
dccc50e9d4
6 changed files with 18 additions and 6 deletions
|
@ -3,7 +3,7 @@
|
|||
<div id="repo-wrapper">
|
||||
{{template "repo/header" .}}
|
||||
<div id="repo-content" class="clear container">
|
||||
<div id="repo-main" class="left grid-4-5">
|
||||
<div id="repo-main" class="left grid-5-6">
|
||||
<p id="repo-desc">
|
||||
<span class="description">{{.Repository.DescriptionHtml}}</span>
|
||||
<a class="link" href="{{.Repository.Website}}">{{.Repository.Website}}</a>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<div id="repo-sidebar" class="right grid-1-5">
|
||||
<div id="repo-sidebar" class="right grid-1-6">
|
||||
<ul class="menu menu-vertical" id="repo-sidebar-nav">
|
||||
<li>
|
||||
<a class="radius" href="{{.RepoLink}}/issues"><i class="octicon octicon-issue-opened"></i>{{.i18n.Tr "repo.issues"}}<span class="num right label label-blue label-radius">{{.Repository.NumOpenIssues}}</span></a>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<div class="panel panel-radius" id="repo-readme">
|
||||
<div class="panel panel-radius" id="{{if .ReadmeExist}}repo-readme{{else}}repo-read-file{{end}}">
|
||||
<p class="panel-header">
|
||||
{{if .ReadmeExist}}
|
||||
<i class="icon fa fa-book fa-lg"></i>
|
||||
|
@ -12,7 +12,7 @@
|
|||
<strong class="file-name">{{.FileName}}</strong><span class="file-size">{{FileSize .FileSize}}</span>
|
||||
{{end}}
|
||||
</p>
|
||||
<div class="{{if .ReadmeExist}}panel-content markdown{{end}} code-view">
|
||||
<div class="{{if .ReadmeExist}}panel-content markdown{{end}} code-view" id="repo-code-view">
|
||||
{{if .ReadmeExist}}
|
||||
{{if .FileContent}}{{.FileContent | Str2html}}{{end}}
|
||||
{{else if not .IsFileText}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue