--
cgit v1.2.3
From 2b7aa99d3c221e713a95b664491f35612f9023cc Mon Sep 17 00:00:00 2001
From: Christopher Allan Webber
Date: Sun, 13 Nov 2011 20:39:42 -0600
Subject: Only show "post a comment" link if comments already exist
The purpose of the link is to help you jump past comments to the
comment box, and so...
Even with this new conditional, I'm not entirely sure I like that link ;)
---
mediagoblin/templates/mediagoblin/user_pages/media.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
(limited to 'mediagoblin/templates')
diff --git a/mediagoblin/templates/mediagoblin/user_pages/media.html b/mediagoblin/templates/mediagoblin/user_pages/media.html
index 2441ec1b..1e495b98 100644
--- a/mediagoblin/templates/mediagoblin/user_pages/media.html
+++ b/mediagoblin/templates/mediagoblin/user_pages/media.html
@@ -62,7 +62,7 @@
{%- endtrans %}
- {% if request.user %}
+ {% if request.user and comments.count() %}
{% endif %}
{% if comments %}
--
cgit v1.2.3
From eabe6b678a98fd06d9cd8463935a3b842f41485c Mon Sep 17 00:00:00 2001
From: Elrond
Date: Sun, 13 Nov 2011 19:25:06 +0100
Subject: Dot-Notation for "_id"
Note: Migrations can't use "Dot Notation"!
Migrations run on pymongo, not mongokit.
So they can't use the "Dot Notation".
This isn't really a big issue, as migrations are anyway
quite mongo specific.
---
mediagoblin/templates/mediagoblin/user_pages/media.html | 10 +++++-----
mediagoblin/templates/mediagoblin/user_pages/user.html | 6 +++---
2 files changed, 8 insertions(+), 8 deletions(-)
(limited to 'mediagoblin/templates')
diff --git a/mediagoblin/templates/mediagoblin/user_pages/media.html b/mediagoblin/templates/mediagoblin/user_pages/media.html
index 1e495b98..4b02b684 100644
--- a/mediagoblin/templates/mediagoblin/user_pages/media.html
+++ b/mediagoblin/templates/mediagoblin/user_pages/media.html
@@ -69,10 +69,10 @@
{% for comment in comments %}
{% set comment_author = comment.author() %}
{% if pagination.active_id == comment._id %}
-
{% else %}
- {% if request.user['_id'] == user['_id'] %}
+ {% if request.user._id == user._id %}
{% trans -%}
--
cgit v1.2.3
From 76c6c806caec7af20a3fe11c04bb783baacc3934 Mon Sep 17 00:00:00 2001
From: Christopher Allan Webber
Date: Wed, 16 Nov 2011 17:53:46 -0600
Subject: Accidentally had user['profile'] where it shoulda been user['bio']
---
mediagoblin/templates/mediagoblin/user_pages/user.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
(limited to 'mediagoblin/templates')
diff --git a/mediagoblin/templates/mediagoblin/user_pages/user.html b/mediagoblin/templates/mediagoblin/user_pages/user.html
index c5beeaaa..6d938262 100644
--- a/mediagoblin/templates/mediagoblin/user_pages/user.html
+++ b/mediagoblin/templates/mediagoblin/user_pages/user.html
@@ -78,7 +78,7 @@
{%- trans username=user.username %}{{ username }}'s profile{% endtrans -%}
- {% if not user['url'] and not user['profile'] %}
+ {% if not user['url'] and not user['bio'] %}
{% if request.user['_id'] == user['_id'] %}
--
cgit v1.2.3
From 3c0411f51f43ade8c7d47df4f3843fd79d4709b5 Mon Sep 17 00:00:00 2001
From: "Pablo J. Urbano Santos"
Date: Sat, 19 Nov 2011 17:07:41 +0100
Subject: Allow instance owners to customize html titles of page: Added
html_title config option. Made base.html template use html_title option
as page title.
---
mediagoblin/templates/mediagoblin/base.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
(limited to 'mediagoblin/templates')
diff --git a/mediagoblin/templates/mediagoblin/base.html b/mediagoblin/templates/mediagoblin/base.html
index 925386e5..0d6b9e40 100644
--- a/mediagoblin/templates/mediagoblin/base.html
+++ b/mediagoblin/templates/mediagoblin/base.html
@@ -19,7 +19,7 @@
- {% block title %}{% trans %}GNU MediaGoblin{% endtrans %}{% endblock title %}
+ {{ app_config['html_title'] }}
Date: Sat, 19 Nov 2011 14:06:48 -0600
Subject: Added back the title block
---
mediagoblin/templates/mediagoblin/base.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
(limited to 'mediagoblin/templates')
diff --git a/mediagoblin/templates/mediagoblin/base.html b/mediagoblin/templates/mediagoblin/base.html
index 0d6b9e40..64fafb73 100644
--- a/mediagoblin/templates/mediagoblin/base.html
+++ b/mediagoblin/templates/mediagoblin/base.html
@@ -19,7 +19,7 @@
- {{ app_config['html_title'] }}
+ {% block title %}{{ app_config['html_title'] }}{% endblock %}
Date: Sat, 19 Nov 2011 23:46:42 +0100
Subject: Change form structure and add relevant CSS rules
---
mediagoblin/templates/mediagoblin/utils/wtforms.html | 12 +++++-------
1 file changed, 5 insertions(+), 7 deletions(-)
(limited to 'mediagoblin/templates')
diff --git a/mediagoblin/templates/mediagoblin/utils/wtforms.html b/mediagoblin/templates/mediagoblin/utils/wtforms.html
index 6a86fd24..39dca7cc 100644
--- a/mediagoblin/templates/mediagoblin/utils/wtforms.html
+++ b/mediagoblin/templates/mediagoblin/utils/wtforms.html
@@ -18,18 +18,16 @@
{# Generically render a field #}
{% macro render_field_div(field) %}
-
-
{{ _(field.label.text) }}
-
{{ field }}
+
+
+ {{ field }}
{%- if field.errors -%}
{% for error in field.errors %}
-
@@ -147,7 +147,7 @@
This is where your media will appear, but you don't seem to have added anything yet.
{%- endtrans %}
-
{%- trans %}Add media{% endtrans -%}
--
cgit v1.2.3
From c6c08a2f296be16dbde4a5041bd6adc0d215d29d Mon Sep 17 00:00:00 2001
From: Jef van Schendel
Date: Sun, 20 Nov 2011 01:57:02 +0100
Subject: Small correction, this button should be button_action, not
button_form
---
mediagoblin/templates/mediagoblin/user_pages/user.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
(limited to 'mediagoblin/templates')
diff --git a/mediagoblin/templates/mediagoblin/user_pages/user.html b/mediagoblin/templates/mediagoblin/user_pages/user.html
index 91dd2369..5a39aaa5 100644
--- a/mediagoblin/templates/mediagoblin/user_pages/user.html
+++ b/mediagoblin/templates/mediagoblin/user_pages/user.html
@@ -62,7 +62,7 @@
{% else %}
{# if the user is not you, but still needs to verify their email #}
--
cgit v1.2.3
From 16a444444ab42f88f1654054050b7dcd64bf960e Mon Sep 17 00:00:00 2001
From: Jef van Schendel
Date: Sun, 20 Nov 2011 16:18:27 +0100
Subject: Change tag list from a list to a paragraph. Wrap text for
translation.
---
mediagoblin/templates/mediagoblin/utils/tags.html | 19 +++++++++++++------
1 file changed, 13 insertions(+), 6 deletions(-)
(limited to 'mediagoblin/templates')
diff --git a/mediagoblin/templates/mediagoblin/utils/tags.html b/mediagoblin/templates/mediagoblin/utils/tags.html
index b3211bd9..19ca8d2a 100644
--- a/mediagoblin/templates/mediagoblin/utils/tags.html
+++ b/mediagoblin/templates/mediagoblin/utils/tags.html
@@ -17,13 +17,20 @@
#}
{% block tags_content -%}
-
Tags
-
+
{% trans %}Tagged with{% endtrans %}
{% for tag in media.tags %}
-
{% endif %}
--
cgit v1.2.3
From 0b3cdd6a25f8aaa74beecb7fed32a20cc13587a8 Mon Sep 17 00:00:00 2001
From: Jef van Schendel
Date: Sun, 20 Nov 2011 17:01:23 +0100
Subject: Navigation buttons edits. Removed images as they are no longer
needed. Related: bug #504
---
mediagoblin/templates/mediagoblin/utils/prev_next.html | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
(limited to 'mediagoblin/templates')
diff --git a/mediagoblin/templates/mediagoblin/utils/prev_next.html b/mediagoblin/templates/mediagoblin/utils/prev_next.html
index 75903076..3363891b 100644
--- a/mediagoblin/templates/mediagoblin/utils/prev_next.html
+++ b/mediagoblin/templates/mediagoblin/utils/prev_next.html
@@ -25,23 +25,23 @@
{# There are no previous entries for the very first media entry #}
{% if prev_entry_url %}
-
+ ← newer
{% else %}
{# This is the first entry. display greyed-out 'previous' image #}
-
+ ← newer
{% endif %}
{# Likewise, this could be the very last media entry #}
{% if next_entry_url %}
-
+ older →
{% else %}
{# This is the last entry. display greyed-out 'next' image #}
-
+ older →
{% endif %}
--
cgit v1.2.3
From 9404a9fed23bfe27144da4f8e692df1f692a25b5 Mon Sep 17 00:00:00 2001
From: Jakob Kramer
Date: Sun, 20 Nov 2011 21:15:07 +0100
Subject: don't use 'and' anymore, if there is only one tag
---
mediagoblin/templates/mediagoblin/utils/tags.html | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
(limited to 'mediagoblin/templates')
diff --git a/mediagoblin/templates/mediagoblin/utils/tags.html b/mediagoblin/templates/mediagoblin/utils/tags.html
index 19ca8d2a..20c50f6e 100644
--- a/mediagoblin/templates/mediagoblin/utils/tags.html
+++ b/mediagoblin/templates/mediagoblin/utils/tags.html
@@ -20,7 +20,10 @@
{% trans %}Tagged with{% endtrans %}
{% for tag in media.tags %}
{% if loop.last %}
- {% trans %}and{% endtrans %} {{ tag['name'] }}.
{% elif loop.revindex==2 %}
--
cgit v1.2.3
From a00f1c1e1cecb8f127b6a064e2cd90c8f613660d Mon Sep 17 00:00:00 2001
From: Jakob Kramer
Date: Sun, 20 Nov 2011 21:30:46 +0100
Subject: eyecandy for programmers
---
mediagoblin/templates/mediagoblin/utils/tags.html | 24 ++++++++++++-----------
1 file changed, 13 insertions(+), 11 deletions(-)
(limited to 'mediagoblin/templates')
diff --git a/mediagoblin/templates/mediagoblin/utils/tags.html b/mediagoblin/templates/mediagoblin/utils/tags.html
index 20c50f6e..49bc3cee 100644
--- a/mediagoblin/templates/mediagoblin/utils/tags.html
+++ b/mediagoblin/templates/mediagoblin/utils/tags.html
@@ -20,19 +20,21 @@
{% trans %}Tagged with{% endtrans %}
{% for tag in media.tags %}
{% if loop.last %}
+ {# the 'and' should only appear if there is more than one tag #}
{% if media.tags|length > 1 %}
- {% trans %}and{% endtrans %}
+ {% trans %}and{% endtrans %}
{% endif %}
- {{ tag['name'] }}.
- {% elif loop.revindex==2 %}
- {{ tag['name'] }}
- {% else %}{{ tag['name'] }},
+
+ {{ tag['name'] }}.
+ {% elif loop.revindex==2 %}
+ {{ tag['name'] }}
+ {% else %}{{ tag['name'] }},
{% endif %}
{% endfor %}
{% trans %}Actions{% endtrans %}
@@ -151,7 +151,7 @@ {% endif %} {% if app_config['allow_attachments'] - and (media['uploader'] == request.user['_id'] + and (media['uploader'] == request.user._id or request.user['is_admin']) %}
{% trans %}Here's a spot to tell others about yourself.{% endtrans %} @@ -113,7 +113,7 @@ {% else %}
{% trans -%} -- cgit v1.2.3 From 76c6c806caec7af20a3fe11c04bb783baacc3934 Mon Sep 17 00:00:00 2001 From: Christopher Allan Webber
Date: Wed, 16 Nov 2011 17:53:46 -0600
Subject: Accidentally had user['profile'] where it shoulda been user['bio']
---
mediagoblin/templates/mediagoblin/user_pages/user.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
(limited to 'mediagoblin/templates')
diff --git a/mediagoblin/templates/mediagoblin/user_pages/user.html b/mediagoblin/templates/mediagoblin/user_pages/user.html
index c5beeaaa..6d938262 100644
--- a/mediagoblin/templates/mediagoblin/user_pages/user.html
+++ b/mediagoblin/templates/mediagoblin/user_pages/user.html
@@ -78,7 +78,7 @@
{%- trans username=user.username %}{{ username }}'s profile{% endtrans -%}
- {% if not user['url'] and not user['profile'] %}
+ {% if not user['url'] and not user['bio'] %}
{% if request.user['_id'] == user['_id'] %}
-
+
{% if next %}
-
{% endif %}
diff --git a/mediagoblin/templates/mediagoblin/auth/register.html b/mediagoblin/templates/mediagoblin/auth/register.html
index 25b68058..a0d0a277 100644
--- a/mediagoblin/templates/mediagoblin/auth/register.html
+++ b/mediagoblin/templates/mediagoblin/auth/register.html
@@ -29,7 +29,7 @@
{{ csrf_token }}
+ class="button_form" />
-- cgit v1.2.3 From 3c0411f51f43ade8c7d47df4f3843fd79d4709b5 Mon Sep 17 00:00:00 2001 From: "Pablo J. Urbano Santos"
Date: Sat, 19 Nov 2011 17:07:41 +0100
Subject: Allow instance owners to customize html titles of page: Added
html_title config option. Made base.html template use html_title option
as page title.
---
mediagoblin/templates/mediagoblin/base.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
(limited to 'mediagoblin/templates')
diff --git a/mediagoblin/templates/mediagoblin/base.html b/mediagoblin/templates/mediagoblin/base.html
index 925386e5..0d6b9e40 100644
--- a/mediagoblin/templates/mediagoblin/base.html
+++ b/mediagoblin/templates/mediagoblin/base.html
@@ -19,7 +19,7 @@
- {% block title %}{% trans %}GNU MediaGoblin{% endtrans %}{% endblock title %}
+ {{ app_config['html_title'] }}
Date: Sat, 19 Nov 2011 14:06:48 -0600
Subject: Added back the title block
---
mediagoblin/templates/mediagoblin/base.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
(limited to 'mediagoblin/templates')
diff --git a/mediagoblin/templates/mediagoblin/base.html b/mediagoblin/templates/mediagoblin/base.html
index 0d6b9e40..64fafb73 100644
--- a/mediagoblin/templates/mediagoblin/base.html
+++ b/mediagoblin/templates/mediagoblin/base.html
@@ -19,7 +19,7 @@
- {{ app_config['html_title'] }}
+ {% block title %}{{ app_config['html_title'] }}{% endblock %}
Date: Sat, 19 Nov 2011 23:46:42 +0100
Subject: Change form structure and add relevant CSS rules
---
mediagoblin/templates/mediagoblin/utils/wtforms.html | 12 +++++-------
1 file changed, 5 insertions(+), 7 deletions(-)
(limited to 'mediagoblin/templates')
diff --git a/mediagoblin/templates/mediagoblin/utils/wtforms.html b/mediagoblin/templates/mediagoblin/utils/wtforms.html
index 6a86fd24..39dca7cc 100644
--- a/mediagoblin/templates/mediagoblin/utils/wtforms.html
+++ b/mediagoblin/templates/mediagoblin/utils/wtforms.html
@@ -18,18 +18,16 @@
{# Generically render a field #}
{% macro render_field_div(field) %}
-
- {{ _(field.label.text) }}
- {{ field }}
+
+
+ {{ field }}
{%- if field.errors -%}
{% for error in field.errors %}
-
- {{ error }}
-
+ {{ _(field.description) }}
+
{%- endmacro %}
--
cgit v1.2.3
From 2d62e9efd210becd30982e65e06a6ef97029b391 Mon Sep 17 00:00:00 2001
From: lora
Date: Sat, 19 Nov 2011 17:00:25 -0600
Subject: issue 582: use media.slug instead of media.id
---
mediagoblin/templates/mediagoblin/user_pages/media.html | 4 ++--
.../templates/mediagoblin/user_pages/media_confirm_delete.html | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
(limited to 'mediagoblin/templates')
diff --git a/mediagoblin/templates/mediagoblin/user_pages/media.html b/mediagoblin/templates/mediagoblin/user_pages/media.html
index 433f74dc..5e1b73de 100644
--- a/mediagoblin/templates/mediagoblin/user_pages/media.html
+++ b/mediagoblin/templates/mediagoblin/user_pages/media.html
@@ -124,7 +124,7 @@
diff --git a/mediagoblin/templates/mediagoblin/auth/login.html b/mediagoblin/templates/mediagoblin/auth/login.html
index 756f67c0..c3807e5f 100644
--- a/mediagoblin/templates/mediagoblin/auth/login.html
+++ b/mediagoblin/templates/mediagoblin/auth/login.html
@@ -42,10 +42,10 @@
{% trans %}Forgot your password?{% endtrans %}
{{ error }}
{% endfor %} {%- endif %} {% if field.description -%} -{{ _(field.description) }}
{%- endif %}{% set edit_url = request.urlgen('mediagoblin.edit.edit_media', user= media.uploader().username, - media= media._id) %} + media= media.slug) %}
@@ -133,7 +133,7 @@
{% set delete_url = request.urlgen('mediagoblin.user_pages.media_confirm_delete', user= media.uploader().username, - media= media._id) %} + media= media.slug) %}
diff --git a/mediagoblin/templates/mediagoblin/user_pages/media_confirm_delete.html b/mediagoblin/templates/mediagoblin/user_pages/media_confirm_delete.html
index dd6923a9..f62082bd 100644
--- a/mediagoblin/templates/mediagoblin/user_pages/media_confirm_delete.html
+++ b/mediagoblin/templates/mediagoblin/user_pages/media_confirm_delete.html
@@ -23,7 +23,7 @@
{% trans %}Don't have one yet? It's easy!{% endtrans %}
{% trans register_url=request.urlgen('mediagoblin.auth.register') -%} - Create an account at this site + Create an account at this site or - Set up MediaGoblin on your own server + Set up MediaGoblin on your own server {%- endtrans %} {% endif %}