mirror of
https://github.com/haiwen/seahub.git
synced 2025-10-22 03:16:34 +00:00
fix .btn-link
This commit is contained in:
@@ -221,7 +221,7 @@ button,
|
|||||||
input[type=submit],
|
input[type=submit],
|
||||||
input[type=button],
|
input[type=button],
|
||||||
input.submit,
|
input.submit,
|
||||||
.btn-link,
|
.sf-btn-link,
|
||||||
.fileinput-button,
|
.fileinput-button,
|
||||||
select {
|
select {
|
||||||
padding:5px 6px;
|
padding:5px 6px;
|
||||||
@@ -231,7 +231,7 @@ select {
|
|||||||
border: 1px solid #c5c5c5;
|
border: 1px solid #c5c5c5;
|
||||||
border-radius: 2px;
|
border-radius: 2px;
|
||||||
}
|
}
|
||||||
.btn-link {
|
.sf-btn-link {
|
||||||
display:inline-block;
|
display:inline-block;
|
||||||
color:#333;
|
color:#333;
|
||||||
line-height:19px;
|
line-height:19px;
|
||||||
@@ -244,7 +244,7 @@ select {
|
|||||||
padding:6px 20px;
|
padding:6px 20px;
|
||||||
border-radius:3px;
|
border-radius:3px;
|
||||||
}
|
}
|
||||||
.btn-link:hover {
|
.sf-btn-link:hover {
|
||||||
color:#333;
|
color:#333;
|
||||||
text-decoration:none;
|
text-decoration:none;
|
||||||
}
|
}
|
||||||
@@ -280,7 +280,7 @@ input[type=submit]:hover,
|
|||||||
input[type=reset]:hover,
|
input[type=reset]:hover,
|
||||||
input[type=button]:hover,
|
input[type=button]:hover,
|
||||||
button:hover,
|
button:hover,
|
||||||
.btn-link:hover,
|
.sf-btn-link:hover,
|
||||||
.fileinput-button:hover {
|
.fileinput-button:hover {
|
||||||
cursor:pointer;
|
cursor:pointer;
|
||||||
background:#fff;
|
background:#fff;
|
||||||
@@ -2467,7 +2467,7 @@ button.sf-dropdown-toggle:focus {
|
|||||||
border:1px solid #ccc;
|
border:1px solid #ccc;
|
||||||
}
|
}
|
||||||
#file-op button,
|
#file-op button,
|
||||||
#file-op .btn-link {
|
#file-op .sf-btn-link {
|
||||||
padding:2px 8px;
|
padding:2px 8px;
|
||||||
}
|
}
|
||||||
#file-enc-cont {
|
#file-enc-cont {
|
||||||
|
@@ -71,7 +71,7 @@
|
|||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
$(function() {
|
$(function() {
|
||||||
var dld_btn = $('.obv-btn').clone();
|
var dld_btn = $('.obv-btn').clone();
|
||||||
dld_btn.html("{% trans "Download" %}").attr('class', 'btn-link big-btn-link');
|
dld_btn.html("{% trans "Download" %}").attr('class', 'sf-btn-link big-btn-link');
|
||||||
$('#file-view-tip').append(dld_btn);
|
$('#file-view-tip').append(dld_btn);
|
||||||
|
|
||||||
{% if traffic_over_limit %}
|
{% if traffic_over_limit %}
|
||||||
|
@@ -54,7 +54,7 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<dt>{% trans "Space Used" %}</dt>
|
<dt>{% trans "Space Used" %}</dt>
|
||||||
<dd>{{ space_usage|seahub_filesizeformat }} {% if space_quota > 0 %} / {{ space_quota|seahub_filesizeformat }} {% endif %} <a href="#" class="btn-link" style="margin-left:20px;" id="set-quota">{% trans "Set Quota" %}</a></dd>
|
<dd>{{ space_usage|seahub_filesizeformat }} {% if space_quota > 0 %} / {{ space_quota|seahub_filesizeformat }} {% endif %} <a href="#" class="sf-btn-link" style="margin-left:20px;" id="set-quota">{% trans "Set Quota" %}</a></dd>
|
||||||
</dl>
|
</dl>
|
||||||
|
|
||||||
<form id="set-quota-form" method="post" class="hide">{% csrf_token %}
|
<form id="set-quota-form" method="post" class="hide">{% csrf_token %}
|
||||||
|
@@ -68,7 +68,7 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if file_perm == 'rw' %}
|
{% if file_perm == 'rw' %}
|
||||||
<a class="btn-link" id="history" href="{% url 'file_revisions' repo.id %}?p={{ path|urlencode }}">{% trans "History" %}</a>
|
<a class="sf-btn-link" id="history" href="{% url 'file_revisions' repo.id %}?p={{ path|urlencode }}">{% trans "History" %}</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if request.user.is_authenticated and can_edit_file %}
|
{% if request.user.is_authenticated and can_edit_file %}
|
||||||
@@ -76,7 +76,7 @@
|
|||||||
{% endblock %}
|
{% endblock %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<a class="btn-link" href="?dl=1" id="download">{% trans "Download"%}</a>
|
<a class="sf-btn-link" href="?dl=1" id="download">{% trans "Download"%}</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="file-view">
|
<div id="file-view">
|
||||||
@@ -110,7 +110,7 @@
|
|||||||
// download
|
// download
|
||||||
$(function() {
|
$(function() {
|
||||||
var dld_url = $('#download').attr('href');
|
var dld_url = $('#download').attr('href');
|
||||||
$('#file-view-tip').append('<a href="' + dld_url + '" class="btn-link big-btn-link">' + "{% trans "Download" %}" + '</a>');
|
$('#file-view-tip').append('<a href="' + dld_url + '" class="sf-btn-link big-btn-link">' + "{% trans "Download" %}" + '</a>');
|
||||||
});
|
});
|
||||||
|
|
||||||
// share link
|
// share link
|
||||||
|
@@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
{% block edit_file %}
|
{% block edit_file %}
|
||||||
{% if file_perm == 'rw' and not err%}
|
{% if file_perm == 'rw' and not err%}
|
||||||
<a class="btn-link" href="{{ SITE_ROOT }}repo/{{ repo.id }}/file/edit/?p={{ path|urlencode }}&file_enc={{file_enc}}" id="edit">{% trans "Edit"%}</a>
|
<a class="sf-btn-link" href="{{ SITE_ROOT }}repo/{{ repo.id }}/file/edit/?p={{ path|urlencode }}&file_enc={{file_enc}}" id="edit">{% trans "Edit"%}</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
|
@@ -19,7 +19,7 @@
|
|||||||
|
|
||||||
{% block edit_file %}
|
{% block edit_file %}
|
||||||
{% if file_perm == 'rw' and not err%}
|
{% if file_perm == 'rw' and not err%}
|
||||||
<a class="btn-link" href="{{ SITE_ROOT }}repo/{{ repo.id }}/file/edit/?p={{ path|urlencode }}&file_enc={{file_enc}}" id="edit">{% trans "Edit"%}</a>
|
<a class="sf-btn-link" href="{{ SITE_ROOT }}repo/{{ repo.id }}/file/edit/?p={{ path|urlencode }}&file_enc={{file_enc}}" id="edit">{% trans "Edit"%}</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
|
@@ -29,7 +29,7 @@
|
|||||||
{% endblock %}
|
{% endblock %}
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<a class="btn-link" href="{% url 'download_file' repo.id obj_id%}?file_name={{ file_name|urlencode }}&p={{path|urlencode}}" id="download">{% trans "Download"%}</a>
|
<a class="sf-btn-link" href="{% url 'download_file' repo.id obj_id%}?file_name={{ file_name|urlencode }}&p={{path|urlencode}}" id="download">{% trans "Download"%}</a>
|
||||||
</div>
|
</div>
|
||||||
{% include 'snippets/file_content_html.html' %}
|
{% include 'snippets/file_content_html.html' %}
|
||||||
</div>
|
</div>
|
||||||
@@ -40,7 +40,7 @@
|
|||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
$(function() {
|
$(function() {
|
||||||
var dld_url = $('#download').attr('href');
|
var dld_url = $('#download').attr('href');
|
||||||
$('#file-view-tip').append('<a href="' + dld_url + '" class="btn-link big-btn-link">' + "{% trans "Download" %}" + '</a>');
|
$('#file-view-tip').append('<a href="' + dld_url + '" class="sf-btn-link big-btn-link">' + "{% trans "Download" %}" + '</a>');
|
||||||
});
|
});
|
||||||
|
|
||||||
{% if filetype == 'PDF' and use_pdfjs %}
|
{% if filetype == 'PDF' and use_pdfjs %}
|
||||||
|
Reference in New Issue
Block a user