1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-03 16:10:26 +00:00

[group setting, group wiki] bugfix, modification

This commit is contained in:
llj
2016-02-19 17:01:31 +08:00
parent 735563e26d
commit 4dd0015cba
6 changed files with 11 additions and 13 deletions

View File

@@ -131,7 +131,7 @@
.sf2-icon-x2:before { content:"\e01f"; } .sf2-icon-x2:before { content:"\e01f"; }
.sf2-icon-user2:before { content:"\e020"; } .sf2-icon-user2:before { content:"\e020"; }
.sf2-icon-msgs2:before { content:"\e021"; } .sf2-icon-msgs2:before { content:"\e021"; }
.sf2-icon-group-settings:before { content:"\e022"; } /*.sf2-icon-group-settings:before { content:"\e022"; }*/
.sf2-icon-comment:before { content:"\e023"; } .sf2-icon-comment:before { content:"\e023"; }
.sf2-icon-wiki2:before { content:"\e024"; } .sf2-icon-wiki2:before { content:"\e024"; }
@@ -656,7 +656,8 @@ textarea:-moz-placeholder {/* for FF */
} }
.side-tabnav .grp-name { /*for 'group'*/ .side-tabnav .grp-name { /*for 'group'*/
display:inline-block; display:inline-block;
width:130px; max-width:130px;
font-weight:normal;
} }
.side-tabnav-tabs { .side-tabnav-tabs {
margin-bottom:1em; margin-bottom:1em;

View File

@@ -10,7 +10,7 @@
<div class="side-tabnav"> <div class="side-tabnav">
<div class="hd w100 ovhd"> <div class="hd w100 ovhd">
<h3 class="fleft"> <h3 class="fleft">
{% grp_avatar group.props.id 32 %} <span title="{{ group.group_name }}" class="grp-name ellipsis vam">{{ group.group_name }}</span> {% grp_avatar group.props.id 32 %} <a title="{{ group.group_name }}" class="grp-name ellipsis vam" href="{% url 'group_info' group.id %}">{{ group.group_name }}</a>
</h3> </h3>
</div> </div>
</div> </div>

View File

@@ -675,7 +675,7 @@
<% if (wiki_enabled) { %> <% if (wiki_enabled) { %>
<span class="sf2-icon-wiki2 op-icon" title="{% trans "Wiki" %}" id="group-wiki-icon"></span> <span class="sf2-icon-wiki2 op-icon" title="{% trans "Wiki" %}" id="group-wiki-icon"></span>
<% } %> <% } %>
<span class="sf2-icon-cog1 op-icon" title="{% trans "Group Settings" %}" id="group-settings-icon"></span> <span class="sf2-icon-cog1 op-icon" title="{% trans "Settings" %}" id="group-settings-icon"></span>
<span class="sf2-icon-user2 op-icon" title="{% trans "Members" %}" id="group-members-icon"></span> <span class="sf2-icon-user2 op-icon" title="{% trans "Members" %}" id="group-members-icon"></span>
<span class="sf2-icon-msgs2 op-icon" title="{% trans "Discussion" %}"></span> <span class="sf2-icon-msgs2 op-icon" title="{% trans "Discussion" %}"></span>
</div> </div>
@@ -963,6 +963,11 @@
<% } else if (is_admin) { %> <% } else if (is_admin) { %>
<ul class="group-setting-list"> <ul class="group-setting-list">
<li class="group-setting-item" data-op="rename">{% trans "Rename" %}</li> <li class="group-setting-item" data-op="rename">{% trans "Rename" %}</li>
<% if (!wiki_enabled) { %>
<li class="group-setting-item" data-op="add-wiki">{% trans "Add Wiki" %}</li>
<% } else { %>
<li class="group-setting-item" data-op="remove-wiki">{% trans "Remove Wiki" %}</li>
<% } %>
</ul> </ul>
<ul class="last-group-setting-list"> <ul class="last-group-setting-list">
<li class="group-setting-item" data-op="import-members">{% trans "Import Members" %}</li> <li class="group-setting-item" data-op="import-members">{% trans "Import Members" %}</li>

View File

@@ -164,7 +164,7 @@
<div class="outer-caret up-outer-caret"><div class="inner-caret"></div></div> <div class="outer-caret up-outer-caret"><div class="inner-caret"></div></div>
<div class="popover-hd ovhd"> <div class="popover-hd ovhd">
<span class="popover-close close sf2-icon-x1 op-icon fright" title="{% trans "Close" %}"></span> <span class="popover-close close sf2-icon-x1 op-icon fright" title="{% trans "Close" %}"></span>
<h3 class="popover-title">{% trans "Group Settings" %}</h3> <h3 class="popover-title">{% trans "Settings" %}</h3>
</div> </div>
<div class="popover-con"> <div class="popover-con">
<div id="group-setting-con" class="hide"></div> <div id="group-setting-con" class="hide"></div>

View File

@@ -26,7 +26,6 @@ define([
'group/:group_id/': 'showGroupRepos', 'group/:group_id/': 'showGroupRepos',
'group/:group_id/lib/:repo_id(/*path)': 'showGroupRepoDir', 'group/:group_id/lib/:repo_id(/*path)': 'showGroupRepoDir',
'group/:group_id/members/': 'showGroupMembers', 'group/:group_id/members/': 'showGroupMembers',
'group/:group_id/settings/': 'showGroupSettings',
'org/': 'showOrgRepos', 'org/': 'showOrgRepos',
'org/lib/:repo_id(/*path)': 'showOrgRepoDir', 'org/lib/:repo_id(/*path)': 'showOrgRepoDir',
'common/lib/:repo_id(/*path)': 'showCommonDir', 'common/lib/:repo_id(/*path)': 'showCommonDir',
@@ -190,11 +189,6 @@ define([
this.groupView.showMembers(); this.groupView.showMembers();
}, },
showGroupSettings: function(group_id) {
this.showGroupRepos(group_id);
this.groupView.showSettings();
},
showOrgRepos: function() { showOrgRepos: function() {
this.switchCurrentView(this.orgView); this.switchCurrentView(this.orgView);
this.orgView.showRepoList(); this.orgView.showRepoList();

View File

@@ -77,12 +77,10 @@ define([
this.$el.show(); this.$el.show();
this.render(); this.render();
this.setConMaxHeight(); this.setConMaxHeight();
app.router.navigate('group/' + this.group.id + '/settings/');
}, },
hide: function() { hide: function() {
this.$el.hide(); this.$el.hide();
app.router.navigate('group/' + this.group.id + '/');
}, },
highlightItem: function(e) { highlightItem: function(e) {