mirror of
https://github.com/haiwen/seahub.git
synced 2025-10-22 03:16:34 +00:00
modified UI of 'back to library' on some pages
This commit is contained in:
@@ -3130,13 +3130,13 @@ textarea:-moz-placeholder {/* for FF */
|
||||
}
|
||||
|
||||
/* side-info */
|
||||
.side-info {
|
||||
position: relative;
|
||||
#left-panel .side-info .hd { /* '#left-panel' to override some style */
|
||||
margin-top:19px;
|
||||
}
|
||||
.go-back {
|
||||
position: absolute;
|
||||
left: -41px;
|
||||
top: -15px;
|
||||
top: 9px;
|
||||
padding: 0 5px;
|
||||
font-size: 25px;
|
||||
color:#ccc;
|
||||
|
@@ -3,15 +3,20 @@
|
||||
{% load seahub_tags avatar_tags i18n %}
|
||||
{% load url from future %}
|
||||
|
||||
{% block extra_style %}
|
||||
<style type="text/css">
|
||||
#main-panel { position:relative; }
|
||||
.go-back { top:-4px; }
|
||||
</style>
|
||||
{% endblock %}
|
||||
|
||||
{% block main_panel %}
|
||||
<a class="go-back" title="{% trans "Back to Library" %}" href="{% url 'repo' repo.id %}"><span class="icon-chevron-left"></span></a>
|
||||
<div class="w100 ovhd">
|
||||
<h2 class="fleft">{{repo.props.name}} {% trans "'s trash" %}</h2>
|
||||
<div class="fright">
|
||||
{% if enable_clean %}
|
||||
<button id="online-gc">{% trans "Clean" %}</button>
|
||||
<button id="online-gc" class="fright">{% trans "Clean" %}</button>
|
||||
{% endif %}
|
||||
<button data="{% url 'repo' repo.id %}" id="back">{% trans "Back to Library" %}</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="repo-file-list-outer-container">
|
||||
@@ -116,9 +121,7 @@
|
||||
|
||||
{% block extra_script %}
|
||||
<script type="text/javascript">
|
||||
$('#back').click(function() {
|
||||
location.href = $(this).attr('data');
|
||||
});
|
||||
$('#main-panel').removeClass('ovhd');
|
||||
|
||||
{% if enable_clean %}
|
||||
$('#online-gc').click(function() {
|
||||
|
@@ -6,14 +6,13 @@
|
||||
|
||||
{% block extra_style %}
|
||||
<style type="text/css">
|
||||
.side-textnav {
|
||||
margin-top:10px;
|
||||
}
|
||||
#left-panel { position: relative; }
|
||||
.go-back { top:0; }
|
||||
</style>
|
||||
{% endblock %}
|
||||
|
||||
{% block left_panel %}
|
||||
<a href="{% url 'repo' repo.id %}" title="{% trans "Back to Library" %}"><span class="icon-chevron-left"></span> {% trans "Back to Library" %}</a>
|
||||
<a class="go-back" title="{% trans "Back to Library" %}" href="{% url 'repo' repo.id %}"><span class="icon-chevron-left"></span></a>
|
||||
<div class="side-textnav">
|
||||
<ul class="side-textnav-tabs">
|
||||
<li class="tab tab-cur"><a href="#basic-info">{% trans "Basic Info" %}</a></li>
|
||||
|
@@ -6,6 +6,7 @@
|
||||
|
||||
{% block extra_style %}
|
||||
<style type="text/css">
|
||||
#left-panel { position:relative; }
|
||||
#set-quota-form {
|
||||
min-width:255px;
|
||||
}
|
||||
@@ -13,9 +14,8 @@
|
||||
{% endblock %}
|
||||
|
||||
{% block left_panel %}
|
||||
<div class="side-info">
|
||||
<a class="go-back" title="{% trans "Back to organization list" %}" href="{% url 'sys_org_admin' %}"><span class="icon-chevron-left"></span></a>
|
||||
|
||||
<div class="side-info">
|
||||
<h3 class="hd">{{ org.org_name }}</h3>
|
||||
<dl>
|
||||
<dt>{% trans "Number of members" %}</dt>
|
||||
|
@@ -2,9 +2,15 @@
|
||||
{% load i18n avatar_tags %}
|
||||
{% load url from future %}
|
||||
|
||||
{% block extra_style %}
|
||||
<style type="text/css">
|
||||
#left-panel { position:relative; }
|
||||
</style>
|
||||
{% endblock %}
|
||||
|
||||
{% block left_panel %}
|
||||
<div class="side-info">
|
||||
<a class="go-back" title="{% trans "Back to user list" %}" href="{% url 'sys_useradmin' %}"><span class="icon-chevron-left"></span></a>
|
||||
<div class="side-info">
|
||||
<h3 class="hd">{% trans "Profile" %}</h3>
|
||||
{% avatar email 48 %}
|
||||
<dl>
|
||||
|
Reference in New Issue
Block a user