2016-08-19 09:19:06 +02:00
|
|
|
|
2017-02-08 18:10:05 +01:00
|
|
|
#blog_container(class="{% if project and project._id == config.MAIN_PROJECT_ID %}cloud-blog{% endif %}")
|
2016-08-19 09:19:06 +02:00
|
|
|
|
2017-02-08 18:10:05 +01:00
|
|
|
#blog_post-container
|
|
|
|
| {% if project and project._id == config.MAIN_PROJECT_ID %}
|
|
|
|
a.btn.btn-default.button-back(href="{{ url_for('projects.view', project_url=project.url) }}blog")
|
|
|
|
| Back to Blog
|
2016-08-19 09:19:06 +02:00
|
|
|
|
2017-02-08 18:10:05 +01:00
|
|
|
| {% if node.has_method('PUT') %}
|
|
|
|
a.btn.btn-default.button-edit(href="{{url_for('nodes.edit', node_id=node._id)}}")
|
|
|
|
i.pi-edit
|
|
|
|
| Edit Post
|
2016-08-19 09:19:06 +02:00
|
|
|
| {% endif %}
|
|
|
|
|
2017-02-08 18:10:05 +01:00
|
|
|
.clearfix
|
|
|
|
| {% endif %}
|
2016-08-19 09:19:06 +02:00
|
|
|
|
2017-02-08 18:10:05 +01:00
|
|
|
| {% if node.picture %}
|
|
|
|
.blog_index-header
|
|
|
|
img(src="{{ node.picture.thumbnail('l', api=api) }}")
|
|
|
|
| {% endif %}
|
|
|
|
.blog_index-item
|
2016-08-19 09:19:06 +02:00
|
|
|
|
2017-02-08 18:10:05 +01:00
|
|
|
.item-title
|
|
|
|
| {{node.name}}
|
2016-08-19 09:19:06 +02:00
|
|
|
|
2017-02-08 18:10:05 +01:00
|
|
|
.item-info.
|
|
|
|
<span title="{{node._created}}">{{node._created | pretty_date }}</span>
|
|
|
|
{% if node._created != node._updated %}
|
|
|
|
<span title="{{node._updated}}">(updated {{node._updated | pretty_date }})</span>
|
|
|
|
{% endif %}
|
|
|
|
{% if node.properties.category %}| {{node.properties.category}}{% endif %}
|
|
|
|
| by {{node.user.full_name}}
|
2016-08-19 09:19:06 +02:00
|
|
|
|
2017-02-08 18:10:05 +01:00
|
|
|
.item-content
|
|
|
|
| {{ node.properties.content }}
|
2017-01-20 13:13:11 +01:00
|
|
|
|
|
|
|
|
2017-02-08 18:10:05 +01:00
|
|
|
#comments-embed
|
2017-09-30 23:21:54 +02:00
|
|
|
.comments-list-loading
|
2017-02-08 18:10:05 +01:00
|
|
|
i.pi-spin
|
2017-01-20 13:13:11 +01:00
|
|
|
|
2017-02-08 18:10:05 +01:00
|
|
|
include ../_scripts
|