mirror of
https://github.com/aquatix/digimarks.git
synced 2025-12-06 23:05:10 +01:00
Bookmark cards! Colours need to be fixed yet. Edit button works
This commit is contained in:
@@ -127,7 +127,7 @@ def bookmarks(userkey):
|
||||
# return render_template('bookmarks.html', bookmarks)
|
||||
#else:
|
||||
# abort(404)
|
||||
bookmarks = Bookmark.select(Bookmark.userkey == userkey)
|
||||
bookmarks = Bookmark.select().where(Bookmark.userkey == userkey)
|
||||
return render_template('bookmarks.html', bookmarks=bookmarks, userkey=userkey)
|
||||
|
||||
|
||||
|
||||
@@ -26,3 +26,10 @@
|
||||
.input-field .prefix.active {
|
||||
color: #000;
|
||||
}
|
||||
|
||||
|
||||
/* Card title anchor colour */
|
||||
.white-text .card-title a
|
||||
{
|
||||
color: #FFF;
|
||||
}
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
{% block pageheader %}Bookmarks{% endblock %}
|
||||
{% block pagecontent %}
|
||||
<div class="row">
|
||||
{% for bookmark in object_list %}
|
||||
{% for bookmark in bookmarks %}
|
||||
<div class="col s4">
|
||||
{#
|
||||
<div class="thumbnail">
|
||||
@@ -14,10 +14,20 @@
|
||||
<p>{{ bookmark.created_date.strftime("%m/%d/%Y %H:%M") }}</p>
|
||||
</div>
|
||||
#}
|
||||
|
||||
<div class="card blue-grey darken-1">
|
||||
<div class="card-content white-text">
|
||||
<span class="card-title activator">
|
||||
<a href="{{ bookmark.url }}" title="{{ bookmark.url }}">
|
||||
{{ bookmark.title }}
|
||||
</a>
|
||||
<i class="material-icons right">more_vert</i>
|
||||
</span>
|
||||
</div>
|
||||
<div class="card-reveal teal darken-4">
|
||||
<span class="card-title">{{ bookmark.title }}<i class="material-icons right">close</i></span>
|
||||
<div><a href="{{ url_for('editbookmark', userkey=userkey, urlhash=bookmark.url_hash) }}">edit</a></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user