aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorfuxiaohei <fuxiaohei@vip.qq.com>2014-09-27 17:08:57 +0800
committerfuxiaohei <fuxiaohei@vip.qq.com>2014-09-27 17:08:57 +0800
commitdccc50e9d4d217cea91d76f17fa60bf5c0a6fb03 (patch)
tree5f118da4b713017a30885126819c4221daf0af89 /templates
parentad2ab6d21496e60e7589c44bdfcc15bba01ae9dd (diff)
downloadgitea-dccc50e9d4d217cea91d76f17fa60bf5c0a6fb03.tar.gz
gitea-dccc50e9d4d217cea91d76f17fa60bf5c0a6fb03.zip
template and ui fix
Diffstat (limited to 'templates')
-rw-r--r--templates/repo/home.tmpl2
-rw-r--r--templates/repo/sidebar.tmpl2
-rw-r--r--templates/repo/view_file.tmpl4
3 files changed, 4 insertions, 4 deletions
diff --git a/templates/repo/home.tmpl b/templates/repo/home.tmpl
index 32fbf58226..a9d7f30403 100644
--- a/templates/repo/home.tmpl
+++ b/templates/repo/home.tmpl
@@ -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>
diff --git a/templates/repo/sidebar.tmpl b/templates/repo/sidebar.tmpl
index a4fa17b757..d43e36063d 100644
--- a/templates/repo/sidebar.tmpl
+++ b/templates/repo/sidebar.tmpl
@@ -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>
diff --git a/templates/repo/view_file.tmpl b/templates/repo/view_file.tmpl
index 96efcdac54..228d10cd99 100644
--- a/templates/repo/view_file.tmpl
+++ b/templates/repo/view_file.tmpl
@@ -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}}