diff --git a/AUTHORS b/AUTHORS
index c9fc5c8e..76e16b86 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -13,6 +13,7 @@ Thank you!
* Alex Camelio
* Bernhard Keller
* Caleb Forbes Davis V
+* Corey Farwell
* Chris Moylan
* Christopher Allan Webber
* Daniel Neel
@@ -27,6 +28,7 @@ Thank you!
* Nathan Yergler
* Odin Hørthe Omdal
* Osama Khalid
+* Pablo J. Urbano Santos
* Rasmus Larsson
* Sam Kleinman
* Sebastian Spaeth
diff --git a/MANIFEST.in b/MANIFEST.in
new file mode 100644
index 00000000..b1f93dba
--- /dev/null
+++ b/MANIFEST.in
@@ -0,0 +1,5 @@
+recursive-include mediagoblin/templates *.html
+recursive-include mediagoblin/static *.js *.css *.png *.svg
+recursive-include mediagoblin/tests *.ini
+recursive-include docs *.rst *.html
+
diff --git a/README b/README
index 0aba179b..07f9a094 100644
--- a/README
+++ b/README
@@ -8,19 +8,18 @@ What is GNU MediaGoblin?
* Initially, a place to store all your photos that’s as awesome as, if
not more awesome than, existing network services (Flickr, SmugMug,
Picasa, etc)
-* Later, a place for all sorts of media, such as video, music, etc hosting.
-* Federated with OStatus!
* Customizable!
* A place for people to collaborate and show off original and derived
- creations. Free, as in freedom. We’re a GNU project in the making,
- afterall.
+ creations. Free, as in freedom. We’re a GNU project after all.
+* Later, a place for all sorts of media, such as video, music, etc hosting.
+* Later, federated with OStatus!
Is it ready for me to use?
==========================
-Not yet! We're working on it and we hope to have a usable system by
-September / October 2011.
+Yes! But with caveats. The software is usable and there are instances
+running, but it's still in its early stages.
Can I help/hang out/participate/whisper sweet nothings in your ear?
@@ -33,9 +32,9 @@ hang out, see `our Join page
t |
{% trans %}Sorry, no such user found.{% endtrans %}
- {% endif %} + {{ object_gallery(request, media_entries, pagination) }} + + {% set feed_url = request.urlgen('mediagoblin.user_pages.atom_feed', + user=user.username) %} + {% include "mediagoblin/utils/feed_link.html" %} + {% endblock %} diff --git a/mediagoblin/templates/mediagoblin/user_pages/media.html b/mediagoblin/templates/mediagoblin/user_pages/media.html index efbd7e53..cbe26cbf 100644 --- a/mediagoblin/templates/mediagoblin/user_pages/media.html +++ b/mediagoblin/templates/mediagoblin/user_pages/media.html @@ -20,19 +20,25 @@ {% import "/mediagoblin/utils/wtforms.html" as wtforms_util %} {% from "mediagoblin/utils/pagination.html" import render_pagination %} +{% block title %}{{ media.title }} — {{ super() }}{% endblock %} + +{% block mediagoblin_head %} + +{% endblock mediagoblin_head %} + {% block mediagoblin_content %} - {% if media %} -- {% trans date=media.created.strftime("%Y-%m-%d"), - user_url=request.urlgen( - 'mediagoblin.user_pages.user_home', - user=media.uploader().username), - username=media.uploader().username -%} - Uploaded on {{ date }} by {{ username }} - {%- endtrans %} -
- - {% autoescape False %} -{{ media.description_html }}
- {% endautoescape %} - -{{ media.description_html }}
+ {% endautoescape %} ++ {% trans date=media.created.strftime("%Y-%m-%d") -%} + Added on {{ date }}. + {%- endtrans %} + {% if request.user and + (media.uploader == request.user._id or + request.user.is_admin) %} + {% set edit_url = request.urlgen('mediagoblin.edit.edit_media', + user= media.get_uploader.username, + media= media._id) %} + {% trans %}Edit{% endtrans %} + {% set delete_url = request.urlgen('mediagoblin.user_pages.media_confirm_delete', + user= media.get_uploader.username, + media= media._id) %} + {% trans %}Delete{% endtrans %} {% endif %} - - {% if comments %} - {% for comment in comments %} - {% set comment_author = comment.author() %} - {% if pagination.active_id == comment._id %} -
+ + {% if request.user %} ++ {% trans %}You can use Markdown for formatting.{% endtrans %} +
+ {{ wtforms_util.render_divs(comment_form) }} + +@@ -51,11 +62,11 @@
{% trans %}In case it doesn't:{% endtrans %}
{% trans %}Resend verification email{% endtrans %} + class="button_action_highlight">{% trans %}Resend verification email{% endtrans %}@@ -78,41 +89,46 @@ {%- trans username=user.username %}{{ username }}'s profile{% endtrans -%} - {% if not user['url'] and not user['profile'] %} - {% if request.user['_id'] == user['_id'] %} -
{% trans -%} This is where your media will appear, but you don't seem to have added anything yet. {%- endtrans %}
- {%- trans %}Add media{% endtrans -%}
{% trans -%}
There doesn't seem to be any media here yet...
diff --git a/mediagoblin/templates/mediagoblin/utils/object_gallery.html b/mediagoblin/templates/mediagoblin/utils/object_gallery.html
index e1b8cc9b..5f628dc7 100644
--- a/mediagoblin/templates/mediagoblin/utils/object_gallery.html
+++ b/mediagoblin/templates/mediagoblin/utils/object_gallery.html
@@ -31,11 +31,11 @@
{%- elif loop.last %} thumb_entry_last{% endif %}">
+ entry.media_files['thumb']) }}" />
- {% if entry['title'] %}
+ {% if entry.title %}
- {{ entry['title'] }}
+ {{ entry.title }}
{% endif %}
{% endfor %}
@@ -68,7 +68,11 @@
{% endif %}
{% else %}
- There doesn't seem to be any media here yet... + + {%- trans -%} + There doesn't seem to be any media here yet... + {%- endtrans -%} +
{% endif %} {% endmacro %} diff --git a/mediagoblin/templates/mediagoblin/utils/pagination.html b/mediagoblin/templates/mediagoblin/utils/pagination.html index 84336103..caa79fcc 100644 --- a/mediagoblin/templates/mediagoblin/utils/pagination.html +++ b/mediagoblin/templates/mediagoblin/utils/pagination.html @@ -36,18 +36,16 @@ {% set prev_url = pagination.get_page_url_explicit( base_url, get_params, pagination.page - 1) %} -{{ error }}
{% endfor %} {%- endif %} {% if field.description -%} -{{ _(field.description)|safe }}
{%- endif %}
+ {% if comments.count()==1 %} + {% trans comment_count=comments.count() -%}{{ comment_count }} comment{%- endtrans %} + {% elif comments.count()>1 %} + {% trans comment_count=comments.count() -%}{{ comment_count }} comments{%- endtrans %} + {% else %} + {% trans %}No comments yet.{% endtrans %} {% endif %} - - {{ render_pagination(request, pagination, - request.urlgen('mediagoblin.user_pages.media_home', - user = media.uploader().username, - media = media._id)) }} -