mirror of
https://github.com/moparisthebest/wallabag
synced 2024-11-27 03:12:21 -05:00
added reload function
This commit is contained in:
parent
9c55ed0923
commit
44b95cb81d
@ -303,6 +303,15 @@ class Poche
|
||||
$this->messages->add('s', _('The tag has been successfully deleted'));
|
||||
Tools::redirect();
|
||||
break;
|
||||
case 'reload_article' :
|
||||
Tools::logm('reload article');
|
||||
$id = $_GET['id'];
|
||||
$entry = $this->store->retrieveOneById($id, $this->user->getId());
|
||||
Tools::logm('reload url ' . $entry['url']);
|
||||
$url = new Url(base64_encode($entry['url']));
|
||||
$this->action('add', $url);
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
@ -56,6 +56,7 @@
|
||||
@define ('SHOW_PRINTLINK', '1');
|
||||
// display or not percent of read in article view. Affects only default theme.
|
||||
@define ('SHOW_READPERCENT', '1');
|
||||
@define ('RELOAD_ARTICLE', TRUE);
|
||||
@define ('ABS_PATH', 'assets/');
|
||||
|
||||
@define ('DEFAULT_THEME', 'baggy');
|
||||
|
@ -736,6 +736,9 @@ a.add-to-wallabag-link-after:after {
|
||||
.icon-print:before {
|
||||
content: "\e80d";
|
||||
}
|
||||
.icon-reload:before {
|
||||
/* TODO */
|
||||
}
|
||||
|
||||
|
||||
/* .icon-image class, for image-based icons
|
||||
|
@ -20,6 +20,7 @@
|
||||
{% if constant('CARROT') == 1 %}<li><a href="https://secure.carrot.org/GiveAndGetBack.do?url={{ entry.url|url_encode }}&title={{ entry.title|url_encode }}" class="tool carrot icon-image icon-image--carrot" target="_blank" title="{% trans "carrot" %}"><span>Carrot</span></a></li>{% endif %}
|
||||
{% if constant('SHOW_PRINTLINK') == 1 %}<li><a title="{% trans "Print" %}" class="tool icon icon-print" href="javascript: window.print();"><span>{% trans "Print" %}</span></a></li>{% endif %}
|
||||
<li><a href="./?epub&method=id&value={{ entry.id|e }}" title="Generate epub file">EPUB</a></li>
|
||||
{% if constant('RELOAD_ARTICLE') == 1 %}<li><a class="tool reload icon icon-reload" href="./?action=reload_article&id={{ entry.id|e }}" title="{% trans "Reload article" %}"><span>{% trans "Reload article" %}</span></a></li>{% endif %}
|
||||
<li><a href="mailto:hello@wallabag.org?subject=Wrong%20display%20in%20wallabag&body={{ entry.url|url_encode }}" title="{% trans "Does this article appear wrong?" %}" class="tool bad-display icon icon-delete"><span>{% trans "Does this article appear wrong?" %}</span></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
@ -67,3 +67,6 @@ a.bad-display span {
|
||||
a.print span {
|
||||
background-image: url('../img/default/print.png');
|
||||
}
|
||||
a.reload span {
|
||||
background-image: url('../img/default/reload.png');
|
||||
}
|
||||
|
BIN
themes/default/img/default/reload.png
Normal file
BIN
themes/default/img/default/reload.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 343 B |
@ -19,6 +19,7 @@
|
||||
{% if constant('CARROT') == 1 %}<li><a href="https://secure.carrot.org/GiveAndGetBack.do?url={{ entry.url|url_encode }}&title={{ entry.title|url_encode }}" class="tool carrot icon" target="_blank" title="{% trans "carrot" %}"><span>{% trans "carrot" %}</span></a></li>{% endif %}
|
||||
{% if constant('SHOW_PRINTLINK') == 1 %}<li><a title="{% trans "Print" %}" class="tool print" href="javascript: window.print();"><span>{% trans "Print" %}</span></a></li>{% endif %}
|
||||
<li><a href="./?epub&method=id&value={{ entry.id|e }}" title="Generate epub file">EPUB</a></li>
|
||||
{% if constant('RELOAD_ARTICLE') == 1 %}<li><a class="tool reload" href="./?action=reload_article&id={{ entry.id|e }}" title="{% trans "Reload article" %}"><span>{% trans "Reload article" %}</span></a></li>{% endif %}}
|
||||
<li><a href="mailto:hello@wallabag.org?subject=Wrong%20display%20in%20wallabag&body={{ entry.url|url_encode }}" title="{% trans "Does this article appear wrong?" %}" class="tool bad-display"><span>{% trans "Does this article appear wrong?" %}</span></a></li>
|
||||
{% if constant('SHOW_READPERCENT') == 1 %}<li><div id="readLeftPercent">0%</div></li>{% endif %}
|
||||
</ul>
|
||||
|
Loading…
Reference in New Issue
Block a user