Changed all headers to <h1>
This commit is contained in:
parent
223b410dce
commit
8d2a42d435
@ -20,7 +20,7 @@
|
|||||||
{% import "/mediagoblin/utils/wtforms.html" as wtforms_util %}
|
{% import "/mediagoblin/utils/wtforms.html" as wtforms_util %}
|
||||||
|
|
||||||
{% block mediagoblin_content %}
|
{% block mediagoblin_content %}
|
||||||
<h2>Login:</h2>
|
<h1>Login:</h1>
|
||||||
|
|
||||||
<form action="{{ request.urlgen('mediagoblin.auth.login') }}"
|
<form action="{{ request.urlgen('mediagoblin.auth.login') }}"
|
||||||
method="POST" enctype="multipart/form-data">
|
method="POST" enctype="multipart/form-data">
|
||||||
|
@ -33,7 +33,7 @@
|
|||||||
{{ wtforms_util.render_table(login_form) }}
|
{{ wtforms_util.render_table(login_form) }}
|
||||||
<tr>
|
<tr>
|
||||||
<td></td>
|
<td></td>
|
||||||
<td><input type="submit" value="submit" /></td>
|
<td><input type="submit" value="submit" class="button_green"/></td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
@ -23,8 +23,6 @@
|
|||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<h1>GNU MediaGoblin at your duty!</h1>
|
|
||||||
<!-- OLD CODE HERE
|
|
||||||
{% block mediagoblin_body %}
|
{% block mediagoblin_body %}
|
||||||
{% block mediagoblin_header %}
|
{% block mediagoblin_header %}
|
||||||
<table id="mediagoblin_header">
|
<table id="mediagoblin_header">
|
||||||
@ -67,6 +65,6 @@
|
|||||||
{% block mediagoblin_content %}
|
{% block mediagoblin_content %}
|
||||||
{% endblock mediagoblin_content %}
|
{% endblock mediagoblin_content %}
|
||||||
</div>
|
</div>
|
||||||
{% endblock mediagoblin_body %}-->
|
{% endblock mediagoblin_body %}
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
|
|
||||||
{# temporarily, an "image gallery" that isn't one really ;) #}
|
{# temporarily, an "image gallery" that isn't one really ;) #}
|
||||||
{% if media %}
|
{% if media %}
|
||||||
<h2>Media details for {{media.title}}</h2>
|
<h1>Media details for {{media.title}}</h1>
|
||||||
<div>
|
<div>
|
||||||
<img src="{{ request.app.public_store.file_url(
|
<img src="{{ request.app.public_store.file_url(
|
||||||
media.media_files.main) }}" />
|
media.media_files.main) }}" />
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
|
|
||||||
{% block mediagoblin_content %}
|
{% block mediagoblin_content %}
|
||||||
|
|
||||||
<h2>{% trans %}Welcome to GNU MediaGoblin!{% endtrans %}</h2>
|
<h1>{% trans %}Welcome to GNU MediaGoblin!{% endtrans %}</h1>
|
||||||
|
|
||||||
{% if request.user %}
|
{% if request.user %}
|
||||||
<p>
|
<p>
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
{% import "/mediagoblin/utils/wtforms.html" as wtforms_util %}
|
{% import "/mediagoblin/utils/wtforms.html" as wtforms_util %}
|
||||||
|
|
||||||
{% block mediagoblin_content %}
|
{% block mediagoblin_content %}
|
||||||
<h2>Submit yer media</h2>
|
<h1>Submit yer media</h1>
|
||||||
|
|
||||||
<form action="{{ request.urlgen('mediagoblin.submit.start') }}"
|
<form action="{{ request.urlgen('mediagoblin.submit.start') }}"
|
||||||
method="POST" enctype="multipart/form-data">
|
method="POST" enctype="multipart/form-data">
|
||||||
|
@ -28,7 +28,7 @@
|
|||||||
{{ wtforms_util.render_table(submit_form) }}
|
{{ wtforms_util.render_table(submit_form) }}
|
||||||
<tr>
|
<tr>
|
||||||
<td></td>
|
<td></td>
|
||||||
<td><input type="submit" value="submit" /></td>
|
<td><input type="submit" value="submit" class="button_green" /></td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</form>
|
</form>
|
||||||
|
@ -20,11 +20,11 @@
|
|||||||
|
|
||||||
{# temporarily, an "image gallery" that isn't one really ;) #}
|
{# temporarily, an "image gallery" that isn't one really ;) #}
|
||||||
{% if media %}
|
{% if media %}
|
||||||
<h2>Media details for <a
|
<h1>Media details for <a
|
||||||
href="{{ request.urlgen('mediagoblin.user_pages.user_home',
|
href="{{ request.urlgen('mediagoblin.user_pages.user_home',
|
||||||
user= media.uploader.username) }}">{{media.uploader.username}}</a>
|
user= media.uploader.username) }}">{{media.uploader.username}}</a>
|
||||||
/ {{media.title}}
|
/ {{media.title}}
|
||||||
</h2>
|
</h1>
|
||||||
<div>
|
<div>
|
||||||
<img src="{{ request.app.public_store.file_url(
|
<img src="{{ request.app.public_store.file_url(
|
||||||
media.media_files.main) }}" />
|
media.media_files.main) }}" />
|
||||||
|
41
mediagoblin/templates/mediagoblin/user_pages/media.html~
Normal file
41
mediagoblin/templates/mediagoblin/user_pages/media.html~
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
{#
|
||||||
|
# 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 %}
|
@ -18,7 +18,7 @@
|
|||||||
{% extends "mediagoblin/base.html" %}
|
{% extends "mediagoblin/base.html" %}
|
||||||
{% block mediagoblin_content -%}
|
{% block mediagoblin_content -%}
|
||||||
{% if user %}
|
{% 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?
|
{#- 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 -#}
|
It could be useful for the home page and other views too -#}
|
||||||
|
39
mediagoblin/templates/mediagoblin/user_pages/user.html~
Normal file
39
mediagoblin/templates/mediagoblin/user_pages/user.html~
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
{#
|
||||||
|
# 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 %}
|
Loading…
x
Reference in New Issue
Block a user