frontend for bookmark menu
This commit is contained in:
23
app/templates/hyper/bookmark_dropdown.html
Normal file
23
app/templates/hyper/bookmark_dropdown.html
Normal file
@@ -0,0 +1,23 @@
|
||||
<form class="full-width" method="POST" action="{{submit_url}}" data-listen="submit" data-s="bookmarkMenuSubmit" data-r="bookmarkMenuSubmit">
|
||||
<input type="hidden" name="concept_id" value="{{concept_id}}">
|
||||
<div class="inline-group bookmark-menu-item">
|
||||
<input data-s="bookmarkMenuResetSavedButton" autocomplete="off" type="radio" name="target_collection" id="collection-none" {{'checked' if in_collection==none else ''}} value="-1">
|
||||
<label class="bookmark-menu-label" for="collection-none">
|
||||
No collection
|
||||
<small>Choose this option to remove this {{'thread' if is_thread else 'post'}} from your bookmarks.</small>
|
||||
</label>
|
||||
</div>
|
||||
{%- for collection in collections -%}
|
||||
<div class="inline-group bookmark-menu-item">
|
||||
<input data-s="bookmarkMenuResetSavedButton" autocomplete="off" type="radio" name="target_collection" id="collection-{{collection.id}}" {{'checked' if in_collection==collection.id else ''}} value="{{collection.id}}">
|
||||
{%- set tc = collection.get_threads_count() -%}
|
||||
{%- set pc = collection.get_posts_count() -%}
|
||||
<label class="bookmark-menu-label" for="collection-{{collection.id}}">
|
||||
{{collection.name}}
|
||||
<small>{{tc}} {{'thread' | pluralize(num=tc)}}, {{pc}} {{'post' | pluralize(num=pc)}}</small>
|
||||
</label>
|
||||
</div>
|
||||
{%- endfor -%}
|
||||
<input type="submit" value="Save" data-r="bookmarkMenuShowSavedButton bookmarkMenuResetSavedButton">
|
||||
<span class="errors hidden" data-r="bookmarkMenuShowError bookmarkMenuHideError">Something went wrong. Try again later.</span>
|
||||
</form>
|
||||
Reference in New Issue
Block a user