mirror of
https://github.com/moparisthebest/wallabag
synced 2024-11-12 04:15:03 -05:00
Merge pull request #467 from mariroz/dev
"save a link" added to top menu (default theme) to toggle "save link" form, issue #461
This commit is contained in:
commit
7785f0c75f
@ -3,6 +3,9 @@
|
|||||||
<li><a href="./?view=fav" {% if view == 'fav' %}class="current"{% endif %}>{% trans "favorites" %}</a></li>
|
<li><a href="./?view=fav" {% if view == 'fav' %}class="current"{% endif %}>{% trans "favorites" %}</a></li>
|
||||||
<li><a href="./?view=archive" {% if view == 'archive' %}class="current"{% endif %}>{% trans "archive" %}</a></li>
|
<li><a href="./?view=archive" {% if view == 'archive' %}class="current"{% endif %}>{% trans "archive" %}</a></li>
|
||||||
<li><a href="./?view=tags" {% if view == 'tags' %}class="current"{% endif %}>{% trans "tags" %}</a></li>
|
<li><a href="./?view=tags" {% if view == 'tags' %}class="current"{% endif %}>{% trans "tags" %}</a></li>
|
||||||
|
<li><a href="javascript: void(null);" id="pocheit">{% trans "save a link" %}</a><span id="pocheit-arrow"></span></li>
|
||||||
<li><a href="./?view=config" {% if view == 'config' %}class="current"{% endif %}>{% trans "config" %}</a></li>
|
<li><a href="./?view=config" {% if view == 'config' %}class="current"{% endif %}>{% trans "config" %}</a></li>
|
||||||
<li><a href="./?logout" title="{% trans "logout" %}">{% trans "logout" %}</a></li>
|
<li><a href="./?logout" title="{% trans "logout" %}">{% trans "logout" %}</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
|
{% include '_pocheit-form.twig' %}
|
||||||
|
|
||||||
|
22
themes/default/_pocheit-form.twig
Executable file
22
themes/default/_pocheit-form.twig
Executable file
@ -0,0 +1,22 @@
|
|||||||
|
<div id="pocheit-form" class="messages info">
|
||||||
|
<center>
|
||||||
|
<form method="get" action="index.php">
|
||||||
|
<input required placeholder="example.com/article" class="addurl" id="plainurl" name="plainurl" type="url" />
|
||||||
|
<input type="submit" value="{% trans "save link!" %}" />
|
||||||
|
</form>
|
||||||
|
</center>
|
||||||
|
</div>
|
||||||
|
<script type="text/javascript">
|
||||||
|
$(document).ready(function() {
|
||||||
|
|
||||||
|
$("#pocheit-form").hide();
|
||||||
|
|
||||||
|
$("#pocheit").click(function(){
|
||||||
|
$("#pocheit-form").toggle();
|
||||||
|
$("#pocheit").toggleClass("current");
|
||||||
|
$("#pocheit-arrow").toggleClass("arrow-down");
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
});
|
||||||
|
</script>
|
@ -334,3 +334,16 @@ a.bad-display span,
|
|||||||
a.reading-time span {
|
a.reading-time span {
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.arrow-down {
|
||||||
|
width: 0px;
|
||||||
|
height: 0px;
|
||||||
|
border-style: solid;
|
||||||
|
border-width: 10px 10px 0 10px;
|
||||||
|
border-color: #000 transparent transparent transparent;
|
||||||
|
|
||||||
|
position: absolute;
|
||||||
|
margin-top: 1.5em;
|
||||||
|
margin-left: -30px;
|
||||||
|
}
|
||||||
|
|
||||||
|
@ -46,4 +46,5 @@
|
|||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{{ block('pager') }}
|
{{ block('pager') }}
|
||||||
|
{% if view == 'home' %}{% if nb_results > 1 %}<a title="{% trans "mark all the entries as read" %}" href="./?action=archive_all">{% trans "mark all the entries as read" %}</a>{% endif %}{% endif %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
Loading…
Reference in New Issue
Block a user