aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/templates
diff options
context:
space:
mode:
authorJef van Schendel <jefvanschendel@gmail.com>2011-05-13 15:33:19 -0500
committerChristopher Allan Webber <cwebber@dustycloud.org>2011-05-13 15:33:19 -0500
commit881b6e2c32d8013d6ffaa151fd1b7d78041fed60 (patch)
tree0c7e2b3840f5378df0fbabad09b0119de19df9d7 /mediagoblin/templates
parent1013bdaff2f3ab4bb67667b57470d23cf392a3df (diff)
downloadmediagoblin-881b6e2c32d8013d6ffaa151fd1b7d78041fed60.tar.lz
mediagoblin-881b6e2c32d8013d6ffaa151fd1b7d78041fed60.tar.xz
mediagoblin-881b6e2c32d8013d6ffaa151fd1b7d78041fed60.zip
Fixing changes
Diffstat (limited to 'mediagoblin/templates')
-rw-r--r--mediagoblin/templates/mediagoblin/base.html5
-rw-r--r--mediagoblin/templates/mediagoblin/base.html~72
-rw-r--r--mediagoblin/templates/mediagoblin/media_details.html2
-rw-r--r--mediagoblin/templates/mediagoblin/media_details.html~34
-rw-r--r--mediagoblin/templates/mediagoblin/root.html2
-rw-r--r--mediagoblin/templates/mediagoblin/root.html~56
6 files changed, 167 insertions, 4 deletions
diff --git a/mediagoblin/templates/mediagoblin/base.html b/mediagoblin/templates/mediagoblin/base.html
index 71c2e550..07be3c47 100644
--- a/mediagoblin/templates/mediagoblin/base.html
+++ b/mediagoblin/templates/mediagoblin/base.html
@@ -23,7 +23,8 @@
</head>
<body>
- <body>
+ <h1>GNU MediaGoblin at your duty!</h1>
+ <!-- OLD CODE HERE
{% block mediagoblin_body %}
{% block mediagoblin_header %}
<table id="mediagoblin_header">
@@ -66,6 +67,6 @@
{% block mediagoblin_content %}
{% endblock mediagoblin_content %}
</div>
- {% endblock mediagoblin_body %}
+ {% endblock mediagoblin_body %}-->
</body>
</html>
diff --git a/mediagoblin/templates/mediagoblin/base.html~ b/mediagoblin/templates/mediagoblin/base.html~
new file mode 100644
index 00000000..07be3c47
--- /dev/null
+++ b/mediagoblin/templates/mediagoblin/base.html~
@@ -0,0 +1,72 @@
+{#
+# 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/>.
+#}
+<html>
+ <head>
+ <title>{% block title %}MediaGoblin{% endblock title %}</title>
+ <link rel="stylesheet" type="text/css"
+ href="{{ request.staticdirect('/css/base.css') }}"/>
+ </head>
+
+ <body>
+ <h1>GNU MediaGoblin at your duty!</h1>
+ <!-- OLD CODE HERE
+ {% block mediagoblin_body %}
+ {% block mediagoblin_header %}
+ <table id="mediagoblin_header">
+ <tr>
+ <td id="mediagoblin_logo">
+ {% block mediagoblin_logo %}
+ <a href="{{ request.urlgen('index') }}">MediaGoblin</a>
+ {% endblock %}
+ </td>
+ <td>{% block mediagoblin_header_title %}MediaGoblin Home{% endblock %}</td>
+ </tr>
+ <tr>
+ <td></td>
+ <td>
+ {% block mediagoblin_header_subtitle %}
+ Clever subtitle here!
+ {% endblock %}</td>
+ </tr>
+ {% if request.user %}
+ <tr>
+ <td></td>
+ <td>
+ Welcome {{ request.user['username'] }}! --
+ <a href="{{ request.urlgen('mediagoblin.auth.logout') }}">
+ Logout</a>
+ </td>
+ </tr>
+ {% else %}
+ <tr>
+ <td></td>
+ <td>
+ <a href="{{ request.urlgen('mediagoblin.auth.login') }}">
+ Login</a>
+ </td>
+ </tr>
+ {% endif %}
+ </table>
+ {% endblock %}
+ <div id="mediagoblin_content">
+ {% block mediagoblin_content %}
+ {% endblock mediagoblin_content %}
+ </div>
+ {% endblock mediagoblin_body %}-->
+ </body>
+</html>
diff --git a/mediagoblin/templates/mediagoblin/media_details.html b/mediagoblin/templates/mediagoblin/media_details.html
index 1b02c809..bd63a289 100644
--- a/mediagoblin/templates/mediagoblin/media_details.html
+++ b/mediagoblin/templates/mediagoblin/media_details.html
@@ -20,7 +20,7 @@
{# 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) }}" />
diff --git a/mediagoblin/templates/mediagoblin/media_details.html~ b/mediagoblin/templates/mediagoblin/media_details.html~
new file mode 100644
index 00000000..1b02c809
--- /dev/null
+++ b/mediagoblin/templates/mediagoblin/media_details.html~
@@ -0,0 +1,34 @@
+{#
+# 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 {{media.title}}</h2>
+ <div>
+ <img src="{{ request.app.public_store.file_url(
+ media.media_files.main) }}" />
+
+ <br/>Uploaded: {{ media.created}}
+ <br/>Description: {{media.description}}
+ </div>
+ {% else %}
+ <p>Sorry, no such media found.<p/>
+ {% endif %}
+{% endblock %}
diff --git a/mediagoblin/templates/mediagoblin/root.html b/mediagoblin/templates/mediagoblin/root.html
index fa78bda2..e2b2730a 100644
--- a/mediagoblin/templates/mediagoblin/root.html
+++ b/mediagoblin/templates/mediagoblin/root.html
@@ -19,7 +19,7 @@
{% block mediagoblin_content %}
- <h2>{% trans %}Welcome to GNU MediaGoblin!{% endtrans %}</h2>
+ <h1>{% trans %}Welcome to GNU MediaGoblin!{% endtrans %}</h1>
{% if request.user %}
<p>
diff --git a/mediagoblin/templates/mediagoblin/root.html~ b/mediagoblin/templates/mediagoblin/root.html~
new file mode 100644
index 00000000..fa78bda2
--- /dev/null
+++ b/mediagoblin/templates/mediagoblin/root.html~
@@ -0,0 +1,56 @@
+{#
+# 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 %}
+
+ <h2>{% trans %}Welcome to GNU MediaGoblin!{% endtrans %}</h2>
+
+ {% if request.user %}
+ <p>
+ <a href="{{ request.urlgen('mediagoblin.submit.start') }}">Submit an item</a>.
+ </p>
+
+ {% else %}
+ <p>
+ If you have an account, you can
+ <a href="{{ request.urlgen('mediagoblin.auth.login') }}">Login</a>.
+ </p>
+ <p>
+ If you don't have an account, please
+ <a href="{{ request.urlgen('mediagoblin.auth.register') }}">Register</a>.
+ </p>
+
+ {% endif %}
+
+ {# temporarily, an "image gallery" that isn't one really ;) #}
+
+ <div>
+ <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>
+ </div>
+
+{% endblock %}