{% import "/mediagoblin/utils/wtforms.html" as wtforms_util %}
{% block mediagoblin_content %}
- <h2>Login:</h2>
+ <h1>Login:</h1>
<form action="{{ request.urlgen('mediagoblin.auth.login') }}"
method="POST" enctype="multipart/form-data">
{{ wtforms_util.render_table(login_form) }}
<tr>
<td></td>
- <td><input type="submit" value="submit" /></td>
+ <td><input type="submit" value="submit" class="button_green"/></td>
</tr>
</table>
</head>
<body>
- <h1>GNU MediaGoblin at your duty!</h1>
- <!-- OLD CODE HERE
{% block mediagoblin_body %}
{% block mediagoblin_header %}
<table id="mediagoblin_header">
{% block mediagoblin_content %}
{% endblock mediagoblin_content %}
</div>
- {% endblock mediagoblin_body %}-->
+ {% endblock mediagoblin_body %}
</body>
</html>
{# temporarily, an "image gallery" that isn't one really ;) #}
{% if media %}
- <h2>Media details for {{media.title}}</h2>
+ <h1>Media details for {{media.title}}</h1>
<div>
<img src="{{ request.app.public_store.file_url(
media.media_files.main) }}" />
{% block mediagoblin_content %}
- <h2>{% trans %}Welcome to GNU MediaGoblin!{% endtrans %}</h2>
+ <h1>{% trans %}Welcome to GNU MediaGoblin!{% endtrans %}</h1>
{% if request.user %}
<p>
{% import "/mediagoblin/utils/wtforms.html" as wtforms_util %}
{% block mediagoblin_content %}
- <h2>Submit yer media</h2>
+ <h1>Submit yer media</h1>
<form action="{{ request.urlgen('mediagoblin.submit.start') }}"
method="POST" enctype="multipart/form-data">
{{ wtforms_util.render_table(submit_form) }}
<tr>
<td></td>
- <td><input type="submit" value="submit" /></td>
+ <td><input type="submit" value="submit" class="button_green" /></td>
</tr>
</table>
</form>
{# temporarily, an "image gallery" that isn't one really ;) #}
{% if media %}
- <h2>Media details for <a
+ <h1>Media details for <a
href="{{ request.urlgen('mediagoblin.user_pages.user_home',
user= media.uploader.username) }}">{{media.uploader.username}}</a>
/ {{media.title}}
- </h2>
+ </h1>
<div>
<img src="{{ request.app.public_store.file_url(
media.media_files.main) }}" />
--- /dev/null
+{#
+# GNU MediaGoblin -- federated, autonomous media hosting
+# Copyright (C) 2011 Free Software Foundation, Inc
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Affero General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#}
+{% extends "mediagoblin/base.html" %}
+{% block mediagoblin_content %}
+
+ {# temporarily, an "image gallery" that isn't one really ;) #}
+ {% if media %}
+ <h2>Media details for <a
+ href="{{ request.urlgen('mediagoblin.user_pages.user_home',
+ user= media.uploader.username) }}">{{media.uploader.username}}</a>
+ / {{media.title}}
+ </h2>
+ <div>
+ <img src="{{ request.app.public_store.file_url(
+ media.media_files.main) }}" />
+
+ <br/>Uploaded on {{ "%4d-%02d-%02d"|format(media.created.year,
+ media.created.month,media.created.day)}} by <a
+ href="{{ request.urlgen('mediagoblin.user_pages.user_home',
+ user= media.uploader.username) }}">{{media.uploader.username}}</a>
+ <br/>Description: {{media.description}}
+ </div>
+ {% else %}
+ <p>Sorry, no such media found.<p/>
+ {% endif %}
+{% endblock %}
{% extends "mediagoblin/base.html" %}
{% block mediagoblin_content -%}
{% if user %}
- <h2>User page for '{{ user.username }}'</h2>
+ <h1>User page for '{{ user.username }}'</h1>
{#- Should we outsource such a media 'gallery' view to it's own file?
It could be useful for the home page and other views too -#}
--- /dev/null
+{#
+# GNU MediaGoblin -- federated, autonomous media hosting
+# Copyright (C) 2011 Free Software Foundation, Inc
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Affero General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#}
+{% extends "mediagoblin/base.html" %}
+{% block mediagoblin_content -%}
+ {% if user %}
+ <h1>User page for '{{ user.username }}'</h1s>
+
+ {#- Should we outsource such a media 'gallery' view to it's own file?
+ It could be useful for the home page and other views too -#}
+ <ul>
+ {%- for entry in media_entries %}
+ <li>
+ <a href="{{ request.urlgen('mediagoblin.user_pages.media_home',
+ user= entry.uploader.username, m_id= entry._id) }}">
+ <img src="{{ request.app.public_store.file_url(
+ entry['media_files']['thumb']) }}" /></a>
+ </li>
+ {%- endfor %}
+ </ul>
+ {% else %}
+ {# This *should* not occur as the view makes sure we pass in a user. #}
+ <p>Sorry, no such user found.<p/>
+ {% endif %}
+{% endblock %}