mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-25 23:02:26 +00:00
Merge pull request #665 from haiwen/guest-user
[guest-user] update url of "libraries" and "my home" tab
This commit is contained in:
@@ -50,7 +50,7 @@
|
|||||||
{% block nav %}
|
{% block nav %}
|
||||||
<ul class="nav">
|
<ul class="nav">
|
||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
<a href="{{ SITE_ROOT }}#my-libs/" class="a">{% trans "My Home" %}</a>
|
<a href="{{ SITE_ROOT }}#" class="a">{% trans "My Home" %}</a>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
{% if grps %}
|
{% if grps %}
|
||||||
|
@@ -505,7 +505,7 @@
|
|||||||
<% } %>
|
<% } %>
|
||||||
</div>
|
</div>
|
||||||
<ul class="side-tabnav-tabs">
|
<ul class="side-tabnav-tabs">
|
||||||
<li class="tab tab-cur"><a href="{{ SITE_ROOT }}#my-libs/" class="lib">{% trans "Libraries" %}</a></li>
|
<li class="tab tab-cur"><a href="{{ SITE_ROOT }}#" class="lib">{% trans "Libraries" %}</a></li>
|
||||||
<li class="tab"><a href="{{ SITE_ROOT }}#starred/" class="star">{% trans "Starred" %}</a></li>
|
<li class="tab"><a href="{{ SITE_ROOT }}#starred/" class="star">{% trans "Starred" %}</a></li>
|
||||||
|
|
||||||
<% if (events_enabled) { %>
|
<% if (events_enabled) { %>
|
||||||
|
@@ -39,9 +39,14 @@
|
|||||||
|
|
||||||
<table>
|
<table>
|
||||||
<tr>
|
<tr>
|
||||||
|
{% if is_pro %}
|
||||||
<th width="24%">{% trans "Email" %}</th>
|
<th width="24%">{% trans "Email" %}</th>
|
||||||
<th width="12%">{% trans "Status" %}</th>
|
<th width="12%">{% trans "Status" %}</th>
|
||||||
<th width="12%">{% trans "Role" %}</th>
|
<th width="12%">{% trans "Role" %}</th>
|
||||||
|
{% else %}
|
||||||
|
<th width="36%">{% trans "Email" %}</th>
|
||||||
|
<th width="12%">{% trans "Status" %}</th>
|
||||||
|
{% endif %}
|
||||||
<th width="16%">{% trans "Space Used" %}</th>
|
<th width="16%">{% trans "Space Used" %}</th>
|
||||||
<th width="22%">{% trans "Create At / Last Login" %}</th>
|
<th width="22%">{% trans "Create At / Last Login" %}</th>
|
||||||
<th width="14%">{% trans "Operations" %}</th>
|
<th width="14%">{% trans "Operations" %}</th>
|
||||||
@@ -67,7 +72,8 @@
|
|||||||
</select>
|
</select>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
|
{% if is_pro %}
|
||||||
<td>
|
<td>
|
||||||
{% if user.source != 'LDAP' %}
|
{% if user.source != 'LDAP' %}
|
||||||
<div class="user-role">
|
<div class="user-role">
|
||||||
@@ -88,6 +94,7 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</td>
|
</td>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
<td style="font-size:11px;">
|
<td style="font-size:11px;">
|
||||||
<p> {{ user.space_usage|filesizeformat }} {% if user.space_quota > 0 %} / {{ user.space_quota|filesizeformat }} {% endif %} </p>
|
<p> {{ user.space_usage|filesizeformat }} {% if user.space_quota > 0 %} / {{ user.space_quota|filesizeformat }} {% endif %} </p>
|
||||||
|
@@ -28,7 +28,7 @@ define([
|
|||||||
'common/lib/:repo_id(/*path)': 'showCommonDir',
|
'common/lib/:repo_id(/*path)': 'showCommonDir',
|
||||||
'starred/': 'showStarredFile',
|
'starred/': 'showStarredFile',
|
||||||
// Default
|
// Default
|
||||||
'*actions': 'defaultAction'
|
'*actions': 'showRepos'
|
||||||
},
|
},
|
||||||
|
|
||||||
initialize: function() {
|
initialize: function() {
|
||||||
@@ -158,14 +158,8 @@ define([
|
|||||||
}
|
}
|
||||||
this.switchCurrentView(this.orgView);
|
this.switchCurrentView(this.orgView);
|
||||||
this.orgView.showDir(repo_id, path);
|
this.orgView.showDir(repo_id, path);
|
||||||
},
|
|
||||||
|
|
||||||
defaultAction: function(actions) {
|
|
||||||
// We have no matching route, lets just log what the URL was
|
|
||||||
|
|
||||||
this.switchCurrentView(this.myHomeView);
|
|
||||||
this.myHomeView.showMyRepos();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
return Router;
|
return Router;
|
||||||
|
Reference in New Issue
Block a user