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=button],
|
||||
input.submit,
|
||||
.btn-link,
|
||||
.sf-btn-link,
|
||||
.fileinput-button,
|
||||
select {
|
||||
padding:5px 6px;
|
||||
@@ -231,7 +231,7 @@ select {
|
||||
border: 1px solid #c5c5c5;
|
||||
border-radius: 2px;
|
||||
}
|
||||
.btn-link {
|
||||
.sf-btn-link {
|
||||
display:inline-block;
|
||||
color:#333;
|
||||
line-height:19px;
|
||||
@@ -244,7 +244,7 @@ select {
|
||||
padding:6px 20px;
|
||||
border-radius:3px;
|
||||
}
|
||||
.btn-link:hover {
|
||||
.sf-btn-link:hover {
|
||||
color:#333;
|
||||
text-decoration:none;
|
||||
}
|
||||
@@ -280,7 +280,7 @@ input[type=submit]:hover,
|
||||
input[type=reset]:hover,
|
||||
input[type=button]:hover,
|
||||
button:hover,
|
||||
.btn-link:hover,
|
||||
.sf-btn-link:hover,
|
||||
.fileinput-button:hover {
|
||||
cursor:pointer;
|
||||
background:#fff;
|
||||
@@ -2467,7 +2467,7 @@ button.sf-dropdown-toggle:focus {
|
||||
border:1px solid #ccc;
|
||||
}
|
||||
#file-op button,
|
||||
#file-op .btn-link {
|
||||
#file-op .sf-btn-link {
|
||||
padding:2px 8px;
|
||||
}
|
||||
#file-enc-cont {
|
||||
|
@@ -71,7 +71,7 @@
|
||||
<script type="text/javascript">
|
||||
$(function() {
|
||||
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);
|
||||
|
||||
{% if traffic_over_limit %}
|
||||
|
@@ -54,7 +54,7 @@
|
||||
{% endif %}
|
||||
|
||||
<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>
|
||||
|
||||
<form id="set-quota-form" method="post" class="hide">{% csrf_token %}
|
||||
|
@@ -68,7 +68,7 @@
|
||||
{% endif %}
|
||||
|
||||
{% 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 %}
|
||||
|
||||
{% if request.user.is_authenticated and can_edit_file %}
|
||||
@@ -76,7 +76,7 @@
|
||||
{% endblock %}
|
||||
{% 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 id="file-view">
|
||||
@@ -110,7 +110,7 @@
|
||||
// download
|
||||
$(function() {
|
||||
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
|
||||
|
@@ -10,7 +10,7 @@
|
||||
|
||||
{% block edit_file %}
|
||||
{% 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 %}
|
||||
{% endblock %}
|
||||
|
||||
|
@@ -19,7 +19,7 @@
|
||||
|
||||
{% block edit_file %}
|
||||
{% 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 %}
|
||||
{% endblock %}
|
||||
|
||||
|
@@ -29,7 +29,7 @@
|
||||
{% endblock %}
|
||||
</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>
|
||||
{% include 'snippets/file_content_html.html' %}
|
||||
</div>
|
||||
@@ -40,7 +40,7 @@
|
||||
<script type="text/javascript">
|
||||
$(function() {
|
||||
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 %}
|
||||
|
Reference in New Issue
Block a user