parent
1cb03135b7
commit
2881456421
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -0,0 +1,17 @@ |
||||
.organization { |
||||
padding-top: 15px; |
||||
padding-bottom: @footer-margin * 2; |
||||
|
||||
.head { |
||||
.ui.header { |
||||
.text { |
||||
vertical-align: middle; |
||||
font-size: 1.6rem; |
||||
margin-left: 15px; |
||||
} |
||||
.ui.right { |
||||
margin-top: 5px; |
||||
} |
||||
} |
||||
} |
||||
} |
@ -0,0 +1,26 @@ |
||||
{{with .Org}} |
||||
<div class="ui container"> |
||||
<div class="ui vertically grid head"> |
||||
<div class="column"> |
||||
<div class="ui header"> |
||||
<img class="ui image" src="{{.AvatarLink}}?s=100"> |
||||
<span class="text thin grey"><a href="{{AppSubUrl}}/org/{{.Name}}">{{.DisplayName}}</a></span> |
||||
|
||||
<div class="ui right"> |
||||
<div class="ui menu"> |
||||
<a class="{{if $.PageIsOrgTeams}}active{{end}} item" href="{{$.OrgLink}}/teams"> |
||||
<i class="octicon octicon-jersey"></i> {{$.i18n.Tr "org.teams"}} |
||||
<div class="floating ui black label">{{.NumTeams}}</div> |
||||
</a> |
||||
<a class="{{if $.PageIsOrgMembers}}active{{end}} item" href="{{$.OrgLink}}/members"> |
||||
<i class="octicon octicon-organization"></i> {{$.i18n.Tr "org.people"}} |
||||
<div class="floating ui black label">{{.NumMembers}}</div> |
||||
</a> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
<div class="ui divider"></div> |
||||
{{end}} |
@ -1,38 +1,11 @@ |
||||
{{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/settings/nav" .}} |
||||
<div class="grid-4-5 left"> |
||||
<div class="setting-content"> |
||||
{{template "ng/base/alert" .}} |
||||
<div id="setting-content"> |
||||
<div id="repo-hooks-panel" class="panel panel-radius"> |
||||
<div class="panel-header"> |
||||
<a class="btn btn-small btn-black btn-header btn-radius right" href="{{.OrgLink}}/settings/hooks/new">{{.i18n.Tr "repo.settings.add_webhook"}}</a> |
||||
<strong>{{.i18n.Tr "repo.settings.hooks"}}</strong> |
||||
</div> |
||||
<ul class="panel-body setting-list"> |
||||
<li>{{.i18n.Tr "org.settings.hooks_desc" | Str2html}}</li> |
||||
{{range .Webhooks}} |
||||
<li> |
||||
{{if .IsActive}} |
||||
<span class="left text-success"><i class="octicon octicon-check"></i></span> |
||||
{{else}} |
||||
<span class="left text-grey"><i class="octicon octicon-primitive-dot"></i></span> |
||||
{{end}} |
||||
<a class="link" href="{{$.OrgLink}}/settings/hooks/{{.Id}}">{{.Url}}</a> |
||||
<a href="{{$.OrgLink}}/settings/hooks?remove={{.Id}}" class="text-red right"><i class="fa fa-times"></i></a> |
||||
<a href="{{$.OrgLink}}/settings/hooks/{{.Id}}" class="text-blue right"><i class="fa fa-pencil"></i></a> |
||||
</li> |
||||
{{end}} |
||||
</ul> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
{{template "base/head" .}} |
||||
<div class="organization settings webhooks"> |
||||
{{template "org/header" .}} |
||||
<div class="ui container"> |
||||
<div class="ui grid"> |
||||
{{template "org/settings/navbar" .}} |
||||
{{template "repo/settings/hook_list" .}} |
||||
</div> |
||||
</div> |
||||
</div> |
||||
{{template "ng/base/footer" .}} |
||||
{{template "base/footer" .}} |
||||
|
@ -0,0 +1,14 @@ |
||||
<div class="four wide column"> |
||||
<div class="ui vertical menu"> |
||||
<div class="header item">{{.i18n.Tr "org.settings"}}</div> |
||||
<a class="{{if .PageIsSettingsOptions}}active{{end}} item" href="{{.Org.HomeLink}}/settings"> |
||||
{{.i18n.Tr "org.settings.options"}} |
||||
</a> |
||||
<a class="{{if .PageIsSettingsHooks}}active{{end}} item" href="{{.Org.HomeLink}}/settings/hooks"> |
||||
{{.i18n.Tr "repo.settings.hooks"}} |
||||
</a> |
||||
<a class="{{if .PageIsSettingsDelete}}active{{end}} item" href="{{.Org.HomeLink}}/settings/delete"> |
||||
{{.i18n.Tr "org.settings.delete"}} |
||||
</a> |
||||
</div> |
||||
</div> |
@ -0,0 +1,52 @@ |
||||
<div class="twelve wide column content"> |
||||
{{template "base/alert" .}} |
||||
<h4 class="ui top attached header"> |
||||
{{.i18n.Tr "repo.settings.hooks"}} |
||||
<div class="ui right"> |
||||
<a class="ui blue tiny button" href="{{.BaseLink}}/settings/hooks/new">{{.i18n.Tr "repo.settings.add_webhook"}}</a> |
||||
</div> |
||||
</h4> |
||||
<div class="ui attached table segment"> |
||||
<div class="ui hook list"> |
||||
<div class="item"> |
||||
{{.Description | Str2html}} |
||||
</div> |
||||
{{range .Webhooks}} |
||||
<div class="item"> |
||||
{{if eq .LastStatus 1}} |
||||
<span class="text green"><i class="octicon octicon-check"></i></span> |
||||
{{else if eq .LastStatus 2}} |
||||
<span class="text red"><i class="octicon octicon-alert"></i></span> |
||||
{{else}} |
||||
<span class="text grey"><i class="octicon octicon-primitive-dot"></i></span> |
||||
{{end}} |
||||
<a href="{{$.BaseLink}}/settings/hooks/{{.ID}}">{{.URL}}</a> |
||||
<div class="ui right"> |
||||
<span class="text blue"><a href="{{$.BaseLink}}/settings/hooks/{{.ID}}"><i class="fa fa-pencil"></i></a></span> |
||||
<span class="text red"><a class="delete-button" data-url="{{$.Link}}/delete" data-id="{{.ID}}"><i class="fa fa-times"></i></a></span> |
||||
</div> |
||||
</div> |
||||
{{end}} |
||||
</div> |
||||
</div> |
||||
</div> |
||||
|
||||
<div class="ui small basic delete modal"> |
||||
<div class="ui icon header"> |
||||
<i class="trash icon"></i> |
||||
{{.i18n.Tr "repo.settings.webhook_deletion"}} |
||||
</div> |
||||
<div class="content"> |
||||
<p>{{.i18n.Tr "repo.settings.webhook_deletion_desc"}}</p> |
||||
</div> |
||||
<div class="actions"> |
||||
<div class="ui red basic inverted cancel button"> |
||||
<i class="remove icon"></i> |
||||
{{.i18n.Tr "modal.no"}} |
||||
</div> |
||||
<div class="ui green basic inverted ok button"> |
||||
<i class="checkmark icon"></i> |
||||
{{.i18n.Tr "modal.yes"}} |
||||
</div> |
||||
</div> |
||||
</div> |
@ -1,39 +1,11 @@ |
||||
{{template "ng/base/head" .}} |
||||
{{template "ng/base/header" .}} |
||||
<div id="repo-wrapper"> |
||||
{{template "repo/header_old" .}} |
||||
<div id="setting-wrapper" class="main-wrapper"> |
||||
<div id="repo-setting" class="container clear"> |
||||
{{template "repo/settings/nav" .}} |
||||
<div class="grid-4-5 left"> |
||||
<div class="setting-content"> |
||||
{{template "ng/base/alert" .}} |
||||
<div id="setting-content"> |
||||
<div id="repo-hooks-panel" class="panel panel-radius"> |
||||
<div class="panel-header"> |
||||
<a class="btn btn-small btn-black btn-header btn-radius right" href="{{.RepoLink}}/settings/hooks/new">{{.i18n.Tr "repo.settings.add_webhook"}}</a> |
||||
<strong>{{.i18n.Tr "repo.settings.hooks"}}</strong> |
||||
</div> |
||||
<ul class="panel-body setting-list"> |
||||
<li>{{.i18n.Tr "repo.settings.hooks_desc" "http://gogs.io/docs/features/webhook.html" | Str2html}}</li> |
||||
{{range .Webhooks}} |
||||
<li> |
||||
{{if .IsActive}} |
||||
<span class="left text-success"><i class="octicon octicon-check"></i></span> |
||||
{{else}} |
||||
<span class="left text-grey"><i class="octicon octicon-primitive-dot"></i></span> |
||||
{{end}} |
||||
<a class="link" href="{{$.RepoLink}}/settings/hooks/{{.Id}}">{{.Url}}</a> |
||||
<a href="{{$.RepoLink}}/settings/hooks?remove={{.Id}}" class="text-red right"><i class="fa fa-times"></i></a> |
||||
<a href="{{$.RepoLink}}/settings/hooks/{{.Id}}" class="text-blue right"><i class="fa fa-pencil"></i></a> |
||||
</li> |
||||
{{end}} |
||||
</ul> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
{{template "base/head" .}} |
||||
<div class="repository settings webhooks"> |
||||
{{template "repo/header" .}} |
||||
<div class="ui container"> |
||||
<div class="ui grid"> |
||||
{{template "repo/settings/navbar" .}} |
||||
{{template "repo/settings/hook_list" .}} |
||||
</div> |
||||
</div> |
||||
</div> |
||||
{{template "ng/base/footer" .}} |
||||
{{template "base/footer" .}} |
Loading…
Reference in new issue