mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-02 07:27:04 +00:00
[groups] removed 'sideTips', use 'side nav'
This commit is contained in:
@@ -584,30 +584,6 @@ textarea:-moz-placeholder {/* for FF */
|
|||||||
top:-11px;
|
top:-11px;
|
||||||
left:-10px;
|
left:-10px;
|
||||||
}
|
}
|
||||||
/**** info-item *****/
|
|
||||||
.info-item {
|
|
||||||
border: 1px solid #eee;
|
|
||||||
border-radius: 2px;
|
|
||||||
margin-bottom: 12px;
|
|
||||||
}
|
|
||||||
.info-item h3,
|
|
||||||
.info-item p {
|
|
||||||
margin:0;
|
|
||||||
}
|
|
||||||
.info-item h3 {
|
|
||||||
font-size:1.15em;
|
|
||||||
}
|
|
||||||
.info-item-top {
|
|
||||||
padding: 4px 10px;
|
|
||||||
background: #f8f8f8;
|
|
||||||
border-bottom: 1px solid #eee;
|
|
||||||
}
|
|
||||||
.info-item-bottom {
|
|
||||||
padding: 8px 10px;
|
|
||||||
}
|
|
||||||
.info-item p.not-last {
|
|
||||||
margin-bottom:0.4em;
|
|
||||||
}
|
|
||||||
/**** tabnav *****/
|
/**** tabnav *****/
|
||||||
.tabnav-tabs,
|
.tabnav-tabs,
|
||||||
.tabnav-tab {
|
.tabnav-tab {
|
||||||
|
@@ -551,7 +551,7 @@
|
|||||||
<li class="tab" id="group-nav">
|
<li class="tab" id="group-nav">
|
||||||
<a href="#"><span class="sf2-icon-group"></span>{% trans "Groups" %}<span class="toggle-icon icon-caret-down fright"></span></a>
|
<a href="#"><span class="sf2-icon-group"></span>{% trans "Groups" %}<span class="toggle-icon icon-caret-down fright"></span></a>
|
||||||
<ul class="grp-list">
|
<ul class="grp-list">
|
||||||
<li><a href="{% url 'group_list' %}"><span class="sharp">#</span>{% trans "All Groups" %}</a></li>
|
<li<% if (cur_group_tab == 'groups') { %> class="tab-cur"<% }%>><a href="{% url 'group_list' %}"><span class="sharp">#</span>{% trans "All Groups" %}</a></li>
|
||||||
{% for grp in grps %}
|
{% for grp in grps %}
|
||||||
<li<% if (cur_group_id == '{{ grp.id }}') { %> class="tab-cur"<% }%>>
|
<li<% if (cur_group_id == '{{ grp.id }}') { %> class="tab-cur"<% }%>>
|
||||||
<a class="ellipsis" href="{{SITE_ROOT}}#group/{{ grp.id }}/" title="{{ grp.group_name }}"><span class="sharp">#</span>{{ grp.group_name }}</a>
|
<a class="ellipsis" href="{{SITE_ROOT}}#group/{{ grp.id }}/" title="{{ grp.group_name }}"><span class="sharp">#</span>{{ grp.group_name }}</a>
|
||||||
|
@@ -11,16 +11,6 @@
|
|||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block left_panel %}
|
{% block left_panel %}
|
||||||
<div class="info-item hide" id="groups-side-tips">
|
|
||||||
<h3 class="info-item-top">{% trans "Tips" %}</h3>
|
|
||||||
<div class="info-item-bottom">
|
|
||||||
{% if user.permissions.can_add_group %}
|
|
||||||
<p class="not-last">{% trans "After creating a group, you can add members and share libraries into it." %}</p>
|
|
||||||
{% else %}
|
|
||||||
<p class="not-last">{% trans "Since you are a guest user now, you can not create groups." %}</p>
|
|
||||||
{% endif %}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="side-tabnav hide" id="side-nav"></div>
|
<div class="side-tabnav hide" id="side-nav"></div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
|
@@ -149,12 +149,19 @@ define([
|
|||||||
showGroups: function () {
|
showGroups: function () {
|
||||||
this.switchCurrentView(this.groupsView);
|
this.switchCurrentView(this.groupsView);
|
||||||
this.groupsView.show();
|
this.groupsView.show();
|
||||||
|
this.sideNavView.setCurTab('group', {
|
||||||
|
'cur_group_tab': 'groups',
|
||||||
|
'cur_group_id': ''
|
||||||
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
showGroupRepos: function(group_id) {
|
showGroupRepos: function(group_id) {
|
||||||
this.switchCurrentView(this.groupView);
|
this.switchCurrentView(this.groupView);
|
||||||
this.groupView.showRepoList(group_id);
|
this.groupView.showRepoList(group_id);
|
||||||
this.sideNavView.setCurTab('group', {'cur_group_id': group_id});
|
this.sideNavView.setCurTab('group', {
|
||||||
|
'cur_group_tab': '',
|
||||||
|
'cur_group_id': group_id
|
||||||
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
showGroupRepoDir: function(group_id, repo_id, path) {
|
showGroupRepoDir: function(group_id, repo_id, path) {
|
||||||
|
@@ -16,7 +16,6 @@ define([
|
|||||||
this.listenTo(this.groups, 'add', this.addOne);
|
this.listenTo(this.groups, 'add', this.addOne);
|
||||||
this.listenTo(this.groups, 'reset', this.reset);
|
this.listenTo(this.groups, 'reset', this.reset);
|
||||||
|
|
||||||
this.$sideTips = $('#groups-side-tips');
|
|
||||||
this.$loadingTip = this.$('.loading-tip');
|
this.$loadingTip = this.$('.loading-tip');
|
||||||
this.$groupList = $('#group-list');
|
this.$groupList = $('#group-list');
|
||||||
this.$emptyTip = this.$('.empty-tips');
|
this.$emptyTip = this.$('.empty-tips');
|
||||||
@@ -82,13 +81,11 @@ define([
|
|||||||
},
|
},
|
||||||
|
|
||||||
show: function() {
|
show: function() {
|
||||||
this.$sideTips.show();
|
|
||||||
this.$el.show();
|
this.$el.show();
|
||||||
this.render();
|
this.render();
|
||||||
},
|
},
|
||||||
|
|
||||||
hide: function() {
|
hide: function() {
|
||||||
this.$sideTips.hide();
|
|
||||||
this.$el.hide();
|
this.$el.hide();
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user