diff options
author | Unknwon <joe2010xtmf@163.com> | 2014-08-23 20:24:02 +0800 |
---|---|---|
committer | Unknwon <joe2010xtmf@163.com> | 2014-08-23 20:24:02 +0800 |
commit | fa60502a70de62bb83c2ba083de923d5d08bdbf9 (patch) | |
tree | a89580ba336b2e57e30236bab9eb0064c49f35bb /templates/org | |
parent | a60edbe88c62f6f5b8c1d74fdd295a2492ef30e9 (diff) | |
download | gitea-fa60502a70de62bb83c2ba083de923d5d08bdbf9.tar.gz gitea-fa60502a70de62bb83c2ba083de923d5d08bdbf9.zip |
Working on organization pages
Diffstat (limited to 'templates/org')
-rw-r--r-- | templates/org/settings/delete.tmpl | 2 | ||||
-rw-r--r-- | templates/org/settings/options.tmpl | 2 | ||||
-rw-r--r-- | templates/org/team/members.tmpl | 18 | ||||
-rw-r--r-- | templates/org/team/repositories.tmpl | 0 | ||||
-rw-r--r-- | templates/org/team/sidebar.tmpl | 26 |
5 files changed, 46 insertions, 2 deletions
diff --git a/templates/org/settings/delete.tmpl b/templates/org/settings/delete.tmpl index 828389d6ff..ea9853d919 100644 --- a/templates/org/settings/delete.tmpl +++ b/templates/org/settings/delete.tmpl @@ -1,6 +1,6 @@ {{template "ng/base/head" .}} {{template "ng/base/header" .}} -{{template "org/header" .}} +{{template "org/base/header" .}} <div id="setting-wrapper" class="main-wrapper"> <div id="org-setting" class="container clear"> {{template "org/settings/nav" .}} diff --git a/templates/org/settings/options.tmpl b/templates/org/settings/options.tmpl index c5c6a7e221..ae225a9ca4 100644 --- a/templates/org/settings/options.tmpl +++ b/templates/org/settings/options.tmpl @@ -1,6 +1,6 @@ {{template "ng/base/head" .}} {{template "ng/base/header" .}} -{{template "org/header" .}} +{{template "org/base/header" .}} <div id="setting-wrapper" class="main-wrapper"> <div id="org-setting" class="container clear"> {{template "org/settings/nav" .}} diff --git a/templates/org/team/members.tmpl b/templates/org/team/members.tmpl new file mode 100644 index 0000000000..8faeb9ef31 --- /dev/null +++ b/templates/org/team/members.tmpl @@ -0,0 +1,18 @@ +{{template "ng/base/head" .}} +{{template "ng/base/header" .}} +{{template "org/base/header" .}} +<div id="setting-wrapper" class="main-wrapper"> + <div id="org-setting" class="container clear"> + {{template "org/team/sidebar" .}} + <div class="grid-2-3 left"> + <div class="setting-content"> + <div class="panel panel-radius"> + <div class="panel-header"> + {{.i18n.Tr "org.teams.members"}} + </div> + </div> + </div> + </div> + </div> +</div> +{{template "ng/base/footer" .}}
\ No newline at end of file diff --git a/templates/org/team/repositories.tmpl b/templates/org/team/repositories.tmpl new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/templates/org/team/repositories.tmpl diff --git a/templates/org/team/sidebar.tmpl b/templates/org/team/sidebar.tmpl new file mode 100644 index 0000000000..1ab24e9aac --- /dev/null +++ b/templates/org/team/sidebar.tmpl @@ -0,0 +1,26 @@ +<div class="grid-1-3 panel panel-radius left" id="org-team-card"> + <div class="panel-header"> + {{if .Team.IsMember $.SignedUser.Id}} + <a class="btn btn-small btn-red btn-header btn-radius right" href="{{.OrgLink}}/teams/{{.Team.LowerName}}/action/leave?page=team">{{$.i18n.Tr "org.teams.leave"}}</a> + {{else}} + <a class="btn btn-small btn-blue btn-header btn-radius right" href="{{.OrgLink}}/teams/{{.Team.LowerName}}/action/join?page=team">{{$.i18n.Tr "org.teams.join"}}</a> + {{end}} + <strong>{{.Team.Name}}</strong> + </div> + <div class="panel-body"> + <p class="desc">{{if .Team.Description}}{{.Team.Description}}{{else}}{{.i18n.Tr "org.teams.no_desc"}}{{end}}</p> + <hr> + <div class="team-stats"> + <a class="text-black"><strong>{{.Team.NumMembers}}</strong> {{$.i18n.Tr "org.lower_members"}}</a> ยท + <a class="text-black"><strong>{{.Team.NumRepos}}</strong> {{$.i18n.Tr "org.lower_repositories"}}</a> + </div> + <p class="desc"> + {{if eq .Team.LowerName "owners"}} + {{.i18n.Tr "org.teams.owners_permission_desc" | Str2html}} + {{end}} + </p> + </div> + <div class="panel-footer"> + <a class="btn btn-medium btn-green btn-link btn-radius" href="{{.OrgLink}}/teams/{{.Team.LowerName}}/edit"><span class="octicon octicon-gear"></span> {{$.i18n.Tr "org.teams.settings"}}</a> + </div> +</div>
\ No newline at end of file |