Merge remote branch 'remotes/schendje/master'
This commit is contained in:
commit
b28e91ce18
@ -133,15 +133,6 @@ a.mediagoblin_logo:hover {
|
|||||||
|
|
||||||
/* common website elements */
|
/* common website elements */
|
||||||
|
|
||||||
.dotted_line {
|
|
||||||
width:100%;
|
|
||||||
height:0px;
|
|
||||||
border-bottom: dotted 1px #5f5f5f;
|
|
||||||
position:absolute;
|
|
||||||
left:0px;
|
|
||||||
margin-top:-20px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.button {
|
.button {
|
||||||
font-family:'Carter One', arial, serif;
|
font-family:'Carter One', arial, serif;
|
||||||
height:32px;
|
height:32px;
|
||||||
@ -164,6 +155,10 @@ a.mediagoblin_logo:hover {
|
|||||||
padding-right:11px;
|
padding-right:11px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.pagination{
|
||||||
|
text-align:center;
|
||||||
|
}
|
||||||
|
|
||||||
/* forms */
|
/* forms */
|
||||||
|
|
||||||
.form_box {
|
.form_box {
|
||||||
@ -223,6 +218,17 @@ a.mediagoblin_logo:hover {
|
|||||||
width:280px;
|
width:280px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* comments */
|
||||||
|
|
||||||
|
.comment_author {
|
||||||
|
margin-bottom:40px;
|
||||||
|
padding-top:4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.comment_content p {
|
||||||
|
margin-bottom:4px;
|
||||||
|
}
|
||||||
|
|
||||||
/* media galleries */
|
/* media galleries */
|
||||||
|
|
||||||
ul.media_thumbnail {
|
ul.media_thumbnail {
|
||||||
@ -240,3 +246,10 @@ li.media_thumbnail {
|
|||||||
zoom:1;
|
zoom:1;
|
||||||
. *display:inline;
|
. *display:inline;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* icons */
|
||||||
|
|
||||||
|
img.media_icon{
|
||||||
|
margin:0 4px;
|
||||||
|
vertical-align:sub;
|
||||||
|
}
|
||||||
|
BIN
mediagoblin/static/images/iconDelete.png
Normal file
BIN
mediagoblin/static/images/iconDelete.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 472 B |
BIN
mediagoblin/static/images/iconEdit.png
Normal file
BIN
mediagoblin/static/images/iconEdit.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 297 B |
BIN
mediagoblin/static/images/iconFeed.png
Normal file
BIN
mediagoblin/static/images/iconFeed.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 522 B |
@ -23,13 +23,16 @@
|
|||||||
{# temporarily, an "image gallery" that isn't one really ;) #}
|
{# temporarily, an "image gallery" that isn't one really ;) #}
|
||||||
{% if media %}
|
{% if media %}
|
||||||
<div class="grid_8 alpha media_image">
|
<div class="grid_8 alpha media_image">
|
||||||
<h1>
|
<img src="{{ request.app.public_store.file_url(
|
||||||
{{media.title}}
|
|
||||||
</h1>
|
|
||||||
<img class="media_image" src="{{ request.app.public_store.file_url(
|
|
||||||
media.media_files.main) }}" />
|
media.media_files.main) }}" />
|
||||||
|
<h2>
|
||||||
|
{{media.title}}
|
||||||
|
</h2>
|
||||||
|
{% autoescape False %}
|
||||||
|
<p>{{ media.description_html }}</p>
|
||||||
|
{% endautoescape %}
|
||||||
<p>
|
<p>
|
||||||
Uploaded on
|
— uploaded on
|
||||||
{{ "%4d-%02d-%02d"|format(media.created.year,
|
{{ "%4d-%02d-%02d"|format(media.created.year,
|
||||||
media.created.month, media.created.day) }}
|
media.created.month, media.created.day) }}
|
||||||
by
|
by
|
||||||
@ -37,44 +40,36 @@
|
|||||||
user= media.uploader().username) }}">
|
user= media.uploader().username) }}">
|
||||||
{{- media.uploader().username }}</a>
|
{{- media.uploader().username }}</a>
|
||||||
</p>
|
</p>
|
||||||
|
<br /><br />
|
||||||
{% autoescape False %}
|
<h3>Comments</h3>
|
||||||
<p>{{ media.description_html }}</p>
|
|
||||||
{% endautoescape %}
|
|
||||||
|
|
||||||
{% if media['uploader'] == request.user['_id'] %}
|
|
||||||
<p><a href="{{ request.urlgen('mediagoblin.edit.edit_media',
|
|
||||||
user= media.uploader().username,
|
|
||||||
media= media._id) }}">Edit</a></p>
|
|
||||||
{% endif %}
|
|
||||||
{% if request.user %}
|
{% if request.user %}
|
||||||
<form action="{{ request.urlgen('mediagoblin.user_pages.media_post_comment',
|
<form action="{{ request.urlgen('mediagoblin.user_pages.media_post_comment',
|
||||||
user= media.uploader().username,
|
user= media.uploader().username,
|
||||||
media=media._id) }}" method="POST">
|
media=media._id) }}" method="POST">
|
||||||
<h3>Post a comment!</h3>
|
|
||||||
{{ wtforms_util.render_field_div(comment_form.comment) }}
|
{{ wtforms_util.render_field_div(comment_form.comment) }}
|
||||||
<div class="form_submit_buttons">
|
<div class="form_submit_buttons">
|
||||||
<input type="submit" value="Submit" class="button" />
|
<input type="submit" value="Post comment!" class="button" />
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{#
|
{#
|
||||||
{{ wtforms_util.render_textarea_div(submit_form.description) }}
|
{{ wtforms_util.render_textarea_div(submit_form.description) }}
|
||||||
{{ wtforms_util.render_field_div(submit_form.file) }}
|
{{ wtforms_util.render_field_div(submit_form.file) }}
|
||||||
#}
|
#}
|
||||||
|
|
||||||
{% if comments %}
|
{% if comments %}
|
||||||
<h3>Comments</h3>
|
|
||||||
{% for comment in comments %}
|
{% for comment in comments %}
|
||||||
<div class="comment_wrapper" id="comment-{{ comment['_id'] }}">
|
<div class="comment_wrapper" id="comment-{{ comment['_id'] }}">
|
||||||
<div class="comment_author">By:
|
<div class="comment_content">
|
||||||
|
{% autoescape False %}
|
||||||
|
{{ comment.content_html }}
|
||||||
|
{% endautoescape %}
|
||||||
|
</div>
|
||||||
|
<div class="comment_author">—
|
||||||
<a href="{{ request.urlgen('mediagoblin.user_pages.user_home',
|
<a href="{{ request.urlgen('mediagoblin.user_pages.user_home',
|
||||||
user = comment['author']['username']) }}">
|
user = comment['author']['username']) }}">
|
||||||
{{ comment['author']['username'] }}
|
{{ comment['author']['username'] }}</a> at
|
||||||
</a>
|
<!--</div>
|
||||||
</div>
|
<div class="comment_datetime">-->
|
||||||
<div class="comment_datetime">
|
|
||||||
<a href="#comment-{{ comment['_id'] }}">
|
<a href="#comment-{{ comment['_id'] }}">
|
||||||
{{ "%4d-%02d-%02d %02d:%02d"|format(comment.created.year,
|
{{ "%4d-%02d-%02d %02d:%02d"|format(comment.created.year,
|
||||||
comment.created.month,
|
comment.created.month,
|
||||||
@ -83,19 +78,21 @@
|
|||||||
comment.created.minute) }}
|
comment.created.minute) }}
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="comment_content">
|
|
||||||
{% autoescape False %}
|
|
||||||
{{ comment.content_html }}
|
|
||||||
{% endautoescape %}
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% include "mediagoblin/utils/pagination.html" %}
|
{% include "mediagoblin/utils/pagination.html" %}
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<div class="grid_4 omega media_sidebar">
|
<div class="grid_4 omega media_sidebar">
|
||||||
<p>This is a sidebar! Yay!</p>
|
<h3>Sidebar content here!</h3>
|
||||||
|
<p>
|
||||||
|
{% if media['uploader'] == request.user['_id'] %}
|
||||||
|
<p><a href="{{ request.urlgen('mediagoblin.edit.edit_media',
|
||||||
|
user= media.uploader().username,
|
||||||
|
media= media._id) }}"><img src="{{ request.staticdirect('/images/iconEdit.png') }}" class="media_icon" />edit</a></p>
|
||||||
|
<p><img src="{{ request.staticdirect('/images/iconDelete.png') }}" class="media_icon" />delete</p>
|
||||||
|
{% endif %}
|
||||||
|
</p>
|
||||||
</div>
|
</div>
|
||||||
{% else %}
|
{% else %}
|
||||||
<p>Sorry, no such media found.<p/>
|
<p>Sorry, no such media found.<p/>
|
||||||
|
@ -19,9 +19,9 @@
|
|||||||
|
|
||||||
{% if pagination %}
|
{% if pagination %}
|
||||||
<div class="pagination">
|
<div class="pagination">
|
||||||
|
<p>
|
||||||
{% if pagination.has_prev %}
|
{% if pagination.has_prev %}
|
||||||
<a href="{{ pagination.get_page_url(request, pagination.page-1) }}">« Prev</>
|
<a href="{{ pagination.get_page_url(request, pagination.page-1) }}">« Prev</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{%- for page in pagination.iter_pages() %}
|
{%- for page in pagination.iter_pages() %}
|
||||||
@ -29,7 +29,7 @@
|
|||||||
{% if page != pagination.page %}
|
{% if page != pagination.page %}
|
||||||
<a href="{{ pagination.get_page_url(request, page) }}">{{ page }}</a>
|
<a href="{{ pagination.get_page_url(request, page) }}">{{ page }}</a>
|
||||||
{% else %}
|
{% else %}
|
||||||
<strong>{{ page }}</strong>
|
{{ page }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% else %}
|
{% else %}
|
||||||
<span class="ellipsis">…</span>
|
<span class="ellipsis">…</span>
|
||||||
@ -39,6 +39,7 @@
|
|||||||
{% if pagination.has_next %}
|
{% if pagination.has_next %}
|
||||||
<a href="{{ pagination.get_page_url(request, pagination.page + 1) }}">Next »</a>
|
<a href="{{ pagination.get_page_url(request, pagination.page + 1) }}">Next »</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
</p>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user