summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorUnknwon <joe2010xtmf@163.com>2014-09-01 00:33:40 +0800
committerUnknwon <joe2010xtmf@163.com>2014-09-01 00:33:40 +0800
commitc5ce33047e77b03b8d6e289d2b250e15c65ae3d2 (patch)
tree068ff0edefa6a5e26def3a25e644ca3e29b54e64 /templates
parentbf5595f9a0ee41a30ab04348e02d87ee9f53969a (diff)
downloadgitea-c5ce33047e77b03b8d6e289d2b250e15c65ae3d2.tar.gz
gitea-c5ce33047e77b03b8d6e289d2b250e15c65ae3d2.zip
Mirror fix and hide missing pages for 0.5 release
Diffstat (limited to 'templates')
-rw-r--r--templates/repo/header.tmpl4
-rw-r--r--templates/repo/home.tmpl18
-rw-r--r--templates/repo/settings/hook_gogs.tmpl (renamed from templates/repo/settings/gogs_hook.tmpl)2
-rw-r--r--templates/repo/settings/hook_new.tmpl4
-rw-r--r--templates/repo/settings/hook_slack.tmpl (renamed from templates/repo/settings/slack_hook.tmpl)2
-rw-r--r--templates/repo/settings/nav.tmpl2
-rw-r--r--templates/repo/sidebar.tmpl12
-rw-r--r--templates/user/dashboard/nav.tmpl10
8 files changed, 28 insertions, 26 deletions
diff --git a/templates/repo/header.tmpl b/templates/repo/header.tmpl
index 6f3d4c66ca..3812508248 100644
--- a/templates/repo/header.tmpl
+++ b/templates/repo/header.tmpl
@@ -44,14 +44,14 @@
</button>
</a>
</li>
- <li id="repo-header-fork">
+ <!-- <li id="repo-header-fork">
<a id="repo-header-fork-btn" href="{{.RepoLink}}/action/fork">
<button class="btn btn-gray text-bold btn-radius">
<i class="octicon octicon-repo-forked"></i>{{.i18n.Tr "repo.fork"}}
<span class="num">{{.Repository.NumForks}}</span>
</button>
</a>
- </li>
+ </li> -->
</ul>
</div>
</div> \ No newline at end of file
diff --git a/templates/repo/home.tmpl b/templates/repo/home.tmpl
index 42b8bdd4b1..0947308477 100644
--- a/templates/repo/home.tmpl
+++ b/templates/repo/home.tmpl
@@ -9,11 +9,11 @@
<a class="link" href="{{.Repository.Website}}">{{.Repository.Website}}</a>
</p>
<ul id="repo-file-nav" class="clear menu menu-line">
- <li>
+ <!-- <li>
<a href="#">
<button class="btn btn-green btn-small btn-radius" id="repo-compare-btn"><i class="octicon octicon-git-compare"></i></button>
</a>
- </li>
+ </li> -->
<li id="repo-branch-switch" class="down drop">
<a href="#">
<button class="btn btn-gray btn-small btn-radius">
@@ -22,24 +22,24 @@
</button>
</a>
<div class="drop-down panel">
- <p class="panel-header text-bold">Branches & Tags</p>
- <input id="repo-branch-filter-ipt" class="ipt ipt-large" type="text" placeholder="find branches / tags"/>
+ <p class="panel-header text-bold">Branches <!-- & Tags --></p>
+ <!-- <input id="repo-branch-filter-ipt" class="ipt ipt-large" type="text" placeholder="find branches / tags"/> -->
<div id="repo-branch-tag">
<ul class="menu menu-line tab-nav clear" id="repo-branch-tab-nav">
<li class="js-tab-nav js-tab-nav-show left" data-tab-target="#repo-branch-list"><a href="#">Branches</a></li>
- <li class="js-tab-nav left" data-tab-target="#repo-tag-list"><a href="#">Tags</a></li>
+ <!-- <li class="js-tab-nav left" data-tab-target="#repo-tag-list"><a href="#">Tags</a></li> -->
</ul>
<ul class="menu menu-vertical switching-list" id="repo-branch-list">
{{range .Branches}}
<li {{if eq . $.BranchName}}class="checked"{{end}}><a href="{{$.RepoLink}}/src/{{.}}"><i class="octicon octicon-check"></i>{{.}}</a></li>
{{end}}
</ul>
- <ul class="menu menu-vertical switching-list" id="repo-tag-list">
+ <!-- <ul class="menu menu-vertical switching-list" id="repo-tag-list">
<li><a href="#"><i class="octicon octicon-check"></i>0.3.3</a></li>
<li><a href="#"><i class="octicon octicon-check"></i>0.4.4</a></li>
<li class="checked"><a href="#"><i class="octicon octicon-check"></i>0.1</a></li>
<li><a href="#"><i class="octicon octicon-check"></i>0.1 beta</a></li>
- </ul>
+ </ul> -->
</div>
</div>
</li>
@@ -55,7 +55,7 @@
{{end}}
{{end}}
</li>
- <li id="repo-commits-jump" class="repo-jump right">
+ <!-- <li id="repo-commits-jump" class="repo-jump right">
<a href="#">
<button class="btn btn-small btn-gray btn-right-radius"><i class="octicon octicon-git-commit"></i></button>
</a>
@@ -64,7 +64,7 @@
<a href="#">
<button class="btn btn-small btn-gray btn-left-radius"><i class="octicon octicon-list-unordered"></i></button>
</a>
- </li>
+ </li> -->
</ul>
{{if .IsFile}}
{{template "repo/view_file" .}}
diff --git a/templates/repo/settings/gogs_hook.tmpl b/templates/repo/settings/hook_gogs.tmpl
index 678d640baf..35b5899532 100644
--- a/templates/repo/settings/gogs_hook.tmpl
+++ b/templates/repo/settings/hook_gogs.tmpl
@@ -1,4 +1,4 @@
-<div id="gogs" class="{{if (and .PageIsSettingsHooksEdit (not (eq .HookType "gogs")))}}hidden{{end}}">
+<div id="gogs" class="{{if (and .PageIsSettingsHooksEdit (not (eq .HookType "Gogs")))}}hidden{{end}}">
<form class="form form-align panel-body repo-setting-form" id="repo-setting-form-gogs" action="{{.RepoLink}}/settings/hooks/gogs/{{if .PageIsSettingsHooksNew}}new{{else}}{{.Webhook.Id}}{{end}}" method="post">
{{.CsrfTokenHtml}}
<input type="hidden" name="hook_type" value="gogs">
diff --git a/templates/repo/settings/hook_new.tmpl b/templates/repo/settings/hook_new.tmpl
index 7a450282b1..2bce97a26b 100644
--- a/templates/repo/settings/hook_new.tmpl
+++ b/templates/repo/settings/hook_new.tmpl
@@ -14,8 +14,8 @@
<strong>{{if .PageIsSettingsHooksNew}}{{.i18n.Tr "repo.settings.add_webhook"}}{{else}}{{.i18n.Tr "repo.settings.update_webhook"}}{{end}}</strong>
</div>
{{template "repo/settings/hook_types" .}}
- {{template "repo/settings/gogs_hook" .}}
- {{template "repo/settings/slack_hook" .}}
+ {{template "repo/settings/hook_gogs" .}}
+ {{template "repo/settings/hook_slack" .}}
</div>
</div>
{{if .PageIsSettingsHooksEdit}}
diff --git a/templates/repo/settings/slack_hook.tmpl b/templates/repo/settings/hook_slack.tmpl
index e68571a081..50d28e2f5e 100644
--- a/templates/repo/settings/slack_hook.tmpl
+++ b/templates/repo/settings/hook_slack.tmpl
@@ -1,4 +1,4 @@
-<div id="slack" class="{{if or .PageIsSettingsHooksNew (and .PageIsSettingsHooksEdit (not (eq .HookType "slack")))}}hidden{{end}}">
+<div id="slack" class="{{if or .PageIsSettingsHooksNew (and .PageIsSettingsHooksEdit (not (eq .HookType "Slack")))}}hidden{{end}}">
<form class="form form-align panel-body repo-setting-form" id="repo-setting-form-slack" action="{{.RepoLink}}/settings/hooks/slack/{{if .PageIsSettingsHooksNew}}new{{else}}{{.Webhook.Id}}{{end}}" method="post">
{{.CsrfTokenHtml}}
<input type="hidden" name="hook_type" value="slack">
diff --git a/templates/repo/settings/nav.tmpl b/templates/repo/settings/nav.tmpl
index 6288ca6cd7..ef0765feac 100644
--- a/templates/repo/settings/nav.tmpl
+++ b/templates/repo/settings/nav.tmpl
@@ -5,7 +5,7 @@
<li {{if .PageIsSettingsOptions}}class="current"{{end}}><a href="{{.RepoLink}}/settings">{{.i18n.Tr "repo.settings.options"}}</a></li>
<li {{if .PageIsSettingsCollaboration}}class="current"{{end}}><a href="{{.RepoLink}}/settings/collaboration">{{.i18n.Tr "repo.settings.collaboration"}}</a></li>
<li {{if .PageIsSettingsHooks}}class="current"{{end}}><a href="{{.RepoLink}}/settings/hooks">{{.i18n.Tr "repo.settings.hooks"}}</a></li>
- <li {{if .PageIsSettingsKeys}}class="current"{{end}}><a href="{{.RepoLink}}/settings/keys">{{.i18n.Tr "repo.settings.deploy_keys"}}</a></li>
+ <!-- <li {{if .PageIsSettingsKeys}}class="current"{{end}}><a href="{{.RepoLink}}/settings/keys">{{.i18n.Tr "repo.settings.deploy_keys"}}</a></li> -->
</ul>
</div>
</div> \ No newline at end of file
diff --git a/templates/repo/sidebar.tmpl b/templates/repo/sidebar.tmpl
index 39d999cabc..f671bfc1b1 100644
--- a/templates/repo/sidebar.tmpl
+++ b/templates/repo/sidebar.tmpl
@@ -3,23 +3,23 @@
<li>
<a class="radius" href="{{.RepoLink}}/issues"><i class="octicon octicon-issue-opened"></i>Issues<span class="num right label label-blue label-radius">{{.Repository.NumOpenIssues}}</span></a>
</li>
- <li>
+ <!-- <li>
<a class="radius" href="{{.RepoLink}}/pulls"><i class="octicon octicon-git-pull-request"></i>Pull Requests<span class="num right label label-blue label-radius">{{.Repository.NumOpenPulls}}</span></a>
- </li>
+ </li> -->
<li class="border-bottom"></li>
<li class="head">{{if .IsViewBranch}}{{.BranchName}}{{else}}{{ShortSha .BranchName}}{{end}}</li>
<li>
<a class="radius" href="{{.RepoLink}}/commits/{{.BranchName}}"><i class="octicon octicon-history"></i>Commits <span class="num right label label-gray label-radius">{{.CommitsCount}}</span></a>
</li>
- <li>
+ <!-- <li>
<a class="radius" href="{{.RepoLink}}/branches"><i class="octicon octicon-git-branch"></i>Branches<span class="num right label label-gray label-radius">{{.BrancheCount}}</span></a>
- </li>
+ </li> -->
<li>
<a class="radius" href="{{.RepoLink}}/releases"><i class="octicon octicon-tag"></i>Releases <span class="num right label label-gray label-radius">{{.Repository.NumTags}}</span></a>
</li>
- <li>
+ <!-- <li>
<a class="radius" href="#"><i class="octicon octicon-organization"></i>contributors <span class="num right label label-gray label-radius">43</span></a>
- </li>
+ </li> -->
<li class="border-bottom"></li>
<li>
<a class="radius" href="{{.RepoLink}}/settings"><i class="octicon octicon-tools"></i>settings</a>
diff --git a/templates/user/dashboard/nav.tmpl b/templates/user/dashboard/nav.tmpl
index 6064f35692..c37447d3a6 100644
--- a/templates/user/dashboard/nav.tmpl
+++ b/templates/user/dashboard/nav.tmpl
@@ -24,21 +24,23 @@
</a>
</li>
{{end}}
- <li>
+ <!-- <li>
<a href="/user/settings/orgs"><i class="octicon octicon-organization"></i>{{.i18n.Tr "manage_org"}}</a>
- </li>
+ </li> -->
<li>
<a href="/org/create"><i class="octicon octicon-plus"></i>{{.i18n.Tr "new_org"}}</a>
</li>
</ul>
</div>
</li>
+ {{if not .ContextUser.IsOrganization}}
<li class="right">
<a {{if $.PageIsIssues}}class="current"{{end}} href="{{.ContextUser.DashboardLink}}issues"><i class="octicon octicon-issue-opened"></i>{{.i18n.Tr "issues"}}</a>
</li>
- <li class="right">
+ {{end}}
+ <!-- <li class="right">
<a {{if .PageIsPulls}}class="current"{{end}} href="{{.ContextUser.DashboardLink}}pulls"><i class="octicon octicon-git-pull-request"></i>{{.i18n.Tr "pull_requests"}}</a>
- </li>
+ </li> -->
<li class="right">
<a {{if $.PageIsNews}}class="current"{{end}} href="{{.ContextUser.DashboardLink}}"><i class="octicon octicon-rss"></i>{{.i18n.Tr "news_feed"}}</a>
</li>