aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/templates
diff options
context:
space:
mode:
authorAditi <aditi.iitr@gmail.com>2013-08-07 20:47:42 +0530
committerAditi <aditi.iitr@gmail.com>2013-08-07 20:47:42 +0530
commit64a6e7fc4965e3a5cd81d26e29ef3a3051648482 (patch)
tree72d98ee2d32bb143c8179055e3e91ea7010967c3 /mediagoblin/templates
parent549bc3449e75291f7b379fe936ccb4762c262b68 (diff)
downloadmediagoblin-64a6e7fc4965e3a5cd81d26e29ef3a3051648482.tar.lz
mediagoblin-64a6e7fc4965e3a5cd81d26e29ef3a3051648482.tar.xz
mediagoblin-64a6e7fc4965e3a5cd81d26e29ef3a3051648482.zip
Move templates to blog plugin from all mediagoblin/templates.
Diffstat (limited to 'mediagoblin/templates')
-rw-r--r--mediagoblin/templates/mediagoblin/blog/blog_admin_dashboard.html96
-rw-r--r--mediagoblin/templates/mediagoblin/blog/blog_edit_create.html41
-rw-r--r--mediagoblin/templates/mediagoblin/blog/blog_post_edit_create.html53
-rw-r--r--mediagoblin/templates/mediagoblin/blog/blog_post_listing.html48
-rw-r--r--mediagoblin/templates/mediagoblin/blog/blogpost_draft_view.html42
5 files changed, 0 insertions, 280 deletions
diff --git a/mediagoblin/templates/mediagoblin/blog/blog_admin_dashboard.html b/mediagoblin/templates/mediagoblin/blog/blog_admin_dashboard.html
deleted file mode 100644
index 5ce838bf..00000000
--- a/mediagoblin/templates/mediagoblin/blog/blog_admin_dashboard.html
+++ /dev/null
@@ -1,96 +0,0 @@
-{#
-# GNU MediaGoblin -- federated, autonomous media hosting
-# Copyright (C) 2011, 2012 MediaGoblin contributors. See AUTHORS.
-#
-# 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 title -%}
-{{blog.title}} Dashboard &mdash; {{ super() }}
-{%- endblock title %}
-
-{% block mediagoblin_head%}
-<style type = "text/css">
- td > a { text-decoration:none; font-weight: bold; }
-</style>
-{% endblock %}
-
-
-{% block mediagoblin_content %}
-<h1> {{blog.title}}</h1>
-<p>
- {{blog.description|safe}}
-</p>
-<p>
- {% set blogpost_create_url = request.urlgen('mediagoblin.media_types.blog.blogpost.create',
- blog_slug=blog.slug,
- user=request.user.username) %}
-<a class="button_action" href="{{ blogpost_create_url }}">
-{%- trans %}Add Blog Post{% endtrans -%}
-</a>
-&middot;
- {% set blog_edit_url = request.urlgen('mediagoblin.media_types.blog.edit',
- blog_slug=blog.slug,
- user=request.user.username) %}
-<a class="button_action" href="{{ blog_edit_url }}">
-{%- trans %}Edit Blog{% endtrans -%}
-</a>
-</p>
-<h2> Blog Post Entries </h2>
- {% if blog_post_count!=0 %}
- <table class="media_panel processing">
- <tr>
- <th>Title</th>
- <th>submitted</th>
- <th></th>
- </tr>
- {% for blog_post in blog_posts_list %}
- <tr>
- {% if blog_post.state == 'processed' %}
- <td><a href="{{ blog_post.url_for_self(request.urlgen) }}">{{ blog_post.title }}</a></td>
- {% else %}
- {% set draft_url = request.urlgen('mediagoblin.media_types.blog.blogpost_draft_view',
- blog_slug=blog.slug, user=request.user.username,
- blog_post_slug=blog_post.slug) %}
- <td><a href="{{ draft_url }}">{{ blog_post.title }}</a></td>
- {% endif %}
- <td>{{ blog_post.created.strftime("%F %R") }}</td>
-
- {% if blog_post.state == 'processed' %}
- <td><h6><em>Published</em></h6></td>
- {% else %}
- <td><h6><em>Draft</em></h6></td>
- {% endif %}
- {% set blogpost_edit_url = request.urlgen('mediagoblin.media_types.blog.blogpost.edit',
- blog_slug=blog.slug, user=request.user.username,
- blog_post_slug=blog_post.slug) %}
- {% set blogpost_delete_url = request.urlgen('mediagoblin.user_pages.media_confirm_delete',
- user= blog_post.get_uploader.username,
- media_id=blog_post.id) %}
- <td>
- <a class="button_action" href="{{ blogpost_edit_url }}">{% trans %}Edit{% endtrans %}</a>
- <a class="button_action" href="{{ blogpost_delete_url }}">{% trans %}Delete{% endtrans %}</a>
- </td>
- </tr>
- {% endfor %}
- </table>
- {% else %}
- {% trans %} No blog post yet. {% endtrans %}
- {% endif %}
-{% endblock %}
-
-
-
diff --git a/mediagoblin/templates/mediagoblin/blog/blog_edit_create.html b/mediagoblin/templates/mediagoblin/blog/blog_edit_create.html
deleted file mode 100644
index f4bbcb8f..00000000
--- a/mediagoblin/templates/mediagoblin/blog/blog_edit_create.html
+++ /dev/null
@@ -1,41 +0,0 @@
-{#
-# GNU MediaGoblin -- federated, autonomous media hosting
-# Copyright (C) 2011, 2012 MediaGoblin contributors. See AUTHORS.
-#
-# 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" %}
-
-{% import "/mediagoblin/utils/wtforms.html" as wtforms_util %}
-
-{% block mediagoblin_content %}
- <form action=""
- method="POST" enctype="multipart/form-data">
- <div class="blog_form_box_xl">
- <h1>{% trans %}Create/Edit a Blog{% endtrans %}</h1>
- <b>Title</b>
- <div class="blog_form_field_input input">
- <h3>{{ form.title}}</h3>
- </div>
- <b>Description</b>
- <div class="blog_form_field_input textarea">
- <h3>{{form.description|safe}}</h3>
- </div>
- <div class="form_submit_buttons">
- {{ csrf_token }}
- <input type="submit" value="{% trans %}Add{% endtrans %}" class="button_form" />
- </div>
- </div>
- </form>
-{% endblock %}
diff --git a/mediagoblin/templates/mediagoblin/blog/blog_post_edit_create.html b/mediagoblin/templates/mediagoblin/blog/blog_post_edit_create.html
deleted file mode 100644
index 8a5fbcb8..00000000
--- a/mediagoblin/templates/mediagoblin/blog/blog_post_edit_create.html
+++ /dev/null
@@ -1,53 +0,0 @@
-{#
-# GNU MediaGoblin -- federated, autonomous media hosting
-# Copyright (C) 2011, 2012 MediaGoblin contributors. See AUTHORS.
-#
-# 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" %}
-
-{% import "/mediagoblin/utils/wtforms.html" as wtforms_util %}
-
-{% block title -%}
- {% trans %}Create/Edit a blog post.{% endtrans %} &mdash; {{ super() }}
-{%- endblock %}
-
-{% block mediagoblin_content %}
- <form action="" method="POST">
- <div class="blog_form_box_xl">
- <h1>{% trans %}Create/Edit a Blog Post.{% endtrans %}</h1>
- <b>Title</b>
- <div class="blog_form_field_input input">
- <h3>{{ form.title}}</h3>
- </div>
- <b>Description</b>
- <div class="blog_form_field_input textarea">
- <h3>{{form.description|safe}}</h3>
- </div>
- <b>Tags</b>
- <div class="blog_form_field_input input">
- <h3>{{form.tags}}</h3>
- </div>
- <b>License</b>
- <div class="blog_form_field_input input">
- <h3>{{form.license}}</h3>
- </div>
- <div class="form_submit_buttons">
- {{ csrf_token }}
- <input type="submit" name="status" value="Publish" class="button_form">
- <input type="submit" name="status" value="Draft" class="button_form">
- </div>
- </div>
- </form>
-{% endblock %}
diff --git a/mediagoblin/templates/mediagoblin/blog/blog_post_listing.html b/mediagoblin/templates/mediagoblin/blog/blog_post_listing.html
deleted file mode 100644
index ea712bb0..00000000
--- a/mediagoblin/templates/mediagoblin/blog/blog_post_listing.html
+++ /dev/null
@@ -1,48 +0,0 @@
-{#
-# GNU MediaGoblin -- federated, autonomous media hosting
-# Copyright (C) 2011, 2012 MediaGoblin contributors. See AUTHORS.
-#
-# 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" %}
-
-{% import "/mediagoblin/utils/wtforms.html" as wtforms_util %}
-
-{% block title -%}
- {% trans %}{{ blog_owner }} 's Blog{% endtrans %} &mdash; {{ super() }}
-{%- endblock %}
-
-{% block mediagoblin_head -%}
- <style type="text/css">
- h3 {margin = 0; padding = 0;
- font-size=.7 em;}
-
- </style>
-{%- endblock %}
-
-{% block mediagoblin_content %}
- <div class="b_list_owner"> <h1><font color="black"> {{ blog_owner }} 's Blog</font></h1></div>
- <div>
- {% for post in blog_posts %}
- <div class="b_listing_title"><a href="{{ post.url_for_self(request.urlgen) }}">
- <h2><font color="black">{{ post.title }}</font></h2></a>
- </div>
- <h3>{{ post.created.strftime("%d %b, %Y") }}</h3>
-
- <div class="b_list_des"> <p>{{ post.description|safe }} </p></div>
- </br>
- </br>
- {% endfor %}
- </div>
-{% endblock %}
diff --git a/mediagoblin/templates/mediagoblin/blog/blogpost_draft_view.html b/mediagoblin/templates/mediagoblin/blog/blogpost_draft_view.html
deleted file mode 100644
index 7c634877..00000000
--- a/mediagoblin/templates/mediagoblin/blog/blogpost_draft_view.html
+++ /dev/null
@@ -1,42 +0,0 @@
-{#
-# GNU MediaGoblin -- federated, autonomous media hosting
-# Copyright (C) 2011, 2012 MediaGoblin contributors. See AUTHORS.
-#
-# 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_head %}
- {{ super() }}
-{% endblock %}
-
-{% block mediagoblin_content %}
-<h1> {{ blogpost.title}}</h1>
-<p>{{ blogpost.description|safe}}</p>
-
-{% set blogpost_edit_url = request.urlgen('mediagoblin.media_types.blog.blogpost.edit',
- blog_slug=blog.slug, user=request.user.username,
- blog_post_slug=blogpost.slug) %}
-{% set blogpost_delete_url = request.urlgen('mediagoblin.user_pages.media_confirm_delete',
- user= blogpost.get_uploader.username,
- media_id=blogpost.id) %}
- <a class="button_action" href="{{ blogpost_edit_url }}">{% trans %}Edit{% endtrans %}</a>
- <a class="button_action" href="{{ blogpost_delete_url }}">{% trans %}Delete{% endtrans %}</a>
-
-{% endblock %}
-
-
-
-