diff options
author | Rémy Boulanouar <rboulanouar@gmail.com> | 2019-02-18 17:00:27 +0100 |
---|---|---|
committer | Lauris BH <lauris@nix.lv> | 2019-02-18 18:00:27 +0200 |
commit | 64ce159a6eacc81962d07a8f5ef7f69c17365363 (patch) | |
tree | d6b94d035de14df8b1a773d97ab35937cce1d00a /templates/admin | |
parent | ae3a913122d3430ccf14da22f09daf6f636a00f8 (diff) | |
download | gitea-64ce159a6eacc81962d07a8f5ef7f69c17365363.tar.gz gitea-64ce159a6eacc81962d07a8f5ef7f69c17365363.zip |
Allow to set organization visibility (public, internal, private) (#1763)
Diffstat (limited to 'templates/admin')
-rw-r--r-- | templates/admin/config.tmpl | 3 | ||||
-rw-r--r-- | templates/admin/org/list.tmpl | 7 | ||||
-rw-r--r-- | templates/admin/repo/list.tmpl | 7 |
3 files changed, 15 insertions, 2 deletions
diff --git a/templates/admin/config.tmpl b/templates/admin/config.tmpl index 2d660117d5..becaca61e5 100644 --- a/templates/admin/config.tmpl +++ b/templates/admin/config.tmpl @@ -148,6 +148,9 @@ <dt>{{.i18n.Tr "admin.config.default_allow_only_contributors_to_track_time"}}</dt> <dd><i class="fa fa{{if .Service.DefaultAllowOnlyContributorsToTrackTime}}-check{{end}}-square-o"></i></dd> {{end}} + <dt>{{.i18n.Tr "admin.config.default_visibility_organization"}}</dt> + <dd>{{.Service.DefaultOrgVisibility}}</dd> + <dt>{{.i18n.Tr "admin.config.no_reply_address"}}</dt> <dd>{{if .Service.NoReplyAddress}}{{.Service.NoReplyAddress}}{{else}}-{{end}}</dd> <dt>{{.i18n.Tr "admin.config.default_enable_dependencies"}}</dt> diff --git a/templates/admin/org/list.tmpl b/templates/admin/org/list.tmpl index 141628c5b3..e9dbc7f877 100644 --- a/templates/admin/org/list.tmpl +++ b/templates/admin/org/list.tmpl @@ -29,7 +29,12 @@ {{range .Users}} <tr> <td>{{.ID}}</td> - <td><a href="{{.HomeLink}}">{{.Name}}</a></td> + <td> + <a href="{{.HomeLink}}">{{.Name}}</a> + {{if .Visibility.IsPrivate}} + <span class="text gold"><i class="octicon octicon-lock"></i></span> + {{end}} + </td> <td>{{.NumTeams}}</td> <td>{{.NumMembers}}</td> <td>{{.NumRepos}}</td> diff --git a/templates/admin/repo/list.tmpl b/templates/admin/repo/list.tmpl index 5d78e8c84e..423de6a3d8 100644 --- a/templates/admin/repo/list.tmpl +++ b/templates/admin/repo/list.tmpl @@ -30,7 +30,12 @@ {{range .Repos}} <tr> <td>{{.ID}}</td> - <td><a href="{{AppSubUrl}}/{{.Owner.Name}}">{{.Owner.Name}}</a></td> + <td> + <a href="{{AppSubUrl}}/{{.Owner.Name}}">{{.Owner.Name}}</a> + {{if .Owner.Visibility.IsPrivate}} + <span class="text gold"><i class="octicon octicon-lock"></i></span> + {{end}} + </td> <td><a href="{{AppSubUrl}}/{{.Owner.Name}}/{{.Name}}">{{.Name}}</a></td> <td><i class="fa fa{{if .IsPrivate}}-check{{end}}-square-o"></i></td> <td>{{.NumWatches}}</td> |