Christopher Allan Webber
f4703ae9cd
Don't fail transcoding if we fail to generate a thumbnail.
...
This patch by Sergio Durigan Junior. Thank you, Sergio!
2014-01-02 11:17:59 -06:00
Alon Levy
7c6646a01a
media_types/sniff_media: reset file back to 0 offset for actual copy. Required when not using celery
2013-12-26 19:00:02 -06:00
Alon Levy
0021c06886
pdf/processing: fix non pdf regression, copy correct file
2013-12-26 18:35:27 -06:00
Alon Levy
690f50de1c
pdf/processing: avoid possible dead goblin if pdfinfo failed
2013-12-26 18:34:40 -06:00
Sebastian Spaeth
eebd8fe3ed
Rename a few files and minor cleanup
...
Within the blog plugin, rename a few files and clean up a few things
that can be cleaned up.
2013-12-12 18:56:36 +01:00
Sebastian Spaeth
0a97e5e16f
Remove "Create blog" from admin top bar
...
This is such a rare event that we do not need a "Create blog" button
in the top navbar. It suffices to have the link on the "blog dashboard"
page. Also, this saves us a hook to run on all pages that we render, basically.
2013-12-12 18:25:29 +01:00
Sebastian Spaeth
461cd7c10d
Force evaluation of Query() through count()
...
Otherwise "blogs" is a query that evaluates to true, even if the user
has no blogs. This fixes the bug that the blog link is shown on a user's
profile page even if she has no blogs at all.
2013-12-12 18:03:47 +01:00
Sebastian Spaeth
c518d5421d
Fix "middot" when blog plugin is disabled
...
The blog plugin accidentally introduced two "middots in the admin bar,
which were visible when the blog plugin was disabled. Fixing this by
moving the second dot in the blog template.
2013-12-12 17:50:34 +01:00
Sebastian Spaeth
52a0387fc6
Use MEDIA_TYPE, not hardcoded variable of same value
2013-12-12 17:29:48 +01:00
Sebastian Spaeth
39fbb83490
Convert blog plugin to use new privileges system
...
there is no user.is_admin anymore. Adapt to use the new privileges
system.
2013-12-12 17:13:48 +01:00
Sebastian Spaeth
14103077e9
Revert "Replace hardcoded URL by variable for the same."
...
This reverts commit e0e02e98bcd4664b1c0a57e422ea4c0e5b6ba059.
There is absolutely no need for this.
2013-12-12 16:51:18 +01:00
Sebastian Spaeth
a42dda21f9
Merge branch 'master' into upstream-master
...
Conflicts:
mediagoblin/templates/mediagoblin/base.html
mediagoblin/templates/mediagoblin/user_pages/user.html
2013-12-12 16:24:34 +01:00
Christopher Allan Webber
301da9caba
Generic'ifying the submit code to not rely on the werkzeug FileStorage datastructure
...
Important, because that only makes sense for wsgi! :)
This commit sponsored by Geoff Lehr. Thank you!
2013-11-13 19:40:13 -06:00
Christopher Allan Webber
7ec0a978e0
Fixing the ascii art media type. There was an ordering issue in the code.
...
Moved set_file_metadata till after the thumb file was created!
This commit sponsored by Samat Jain. Thank you!
2013-11-08 11:22:48 -06:00
Aditi Mittal
afff1492f8
Write docstringg for view functions.
2013-09-24 21:48:47 +05:30
Aditi Mittal
8189f6c766
some fixes
2013-09-21 10:16:13 +05:30
Rodney Ewing
4c617543c5
skip video processing if necessary
2013-09-19 08:12:10 -07:00
Rodney Ewing
b08d2c3643
skip stl processing if necessary
2013-09-19 08:12:10 -07:00
Rodney Ewing
be49edba05
skip pdf processing if necessary
2013-09-19 08:12:10 -07:00
Rodney Ewing
2e22cefdd9
skip audio reprocessing if necessary
2013-09-19 08:12:10 -07:00
Rodney Ewing
755b6a86b6
skip ascii thumb resizing if necessary
2013-09-19 08:12:09 -07:00
Christopher Allan Webber
529eb17b38
Merge remote-tracking branch 'refs/remotes/rodney757/reprocessing'
...
Conflicts:
mediagoblin/db/migrations.py
2013-09-18 14:45:23 -05:00
Aditi Mittal
4346331c2a
Write template to render blog about page.
2013-09-18 22:20:58 +05:30
Aditi Mittal
9d0627e068
Change the text of url to blogs on user profile page.
2013-09-18 22:19:58 +05:30
Aditi Mittal
c3218c0574
Url mapping for blog about page.
2013-09-18 21:05:41 +05:30
Aditi Mittal
52042905e2
Add view button and create blog button on blogs dashboard.
2013-09-18 21:04:16 +05:30
Aditi Mittal
f793af647a
Add url to blog post listing page on blog dashboard of a blog.
2013-09-18 21:02:30 +05:30
Aditi Mittal
310c3073b8
Write view for blog about page.
2013-09-18 20:59:27 +05:30
Aditi Mittal
5e055893ba
Separate Create Blog and Blog Dashboard links on the home page.
2013-09-15 18:00:13 +05:30
Aditi Mittal
bb96b7d4a3
Replace tabs with spaces in blog.__init__.
2013-09-15 17:23:06 +05:30
Aditi Mittal
0b7c64c8c8
Change blogs query object to list object by .all() function in blog_dashboard view.
2013-09-15 14:49:56 +05:30
Aditi Mittal
a46c23e042
Capitalize blog title.
2013-09-15 14:48:56 +05:30
Aditi Mittal
291ae79833
Add buton to create a blog.
2013-09-15 14:24:44 +05:30
Aditi Mittal
728516261a
Merge branch 'master' of git://gitorious.org/mediagoblin/mediagoblin
2013-09-09 21:53:56 +05:30
Aditi Mittal
5d9ecb05dd
Add ConfirmDeleteForm and URL mapping for blog_delete view
2013-09-09 21:52:00 +05:30
Aditi Mittal
4aa7058e48
Write view function for blog deletion
2013-09-09 21:49:44 +05:30
Aditi Mittal
caeab88f88
Write code for deleting a blog
2013-09-09 21:48:02 +05:30
Aditi Mittal
3357b8a3b5
Write template for confirmation for blog deletion and add blog delete button on blog dashboard.
2013-09-09 21:46:23 +05:30
Aditi Mittal
125d7d1a85
Get max_blog_count variable from config_spec.ini file using pluginapi config.
2013-09-08 02:28:48 +05:30
Aditi Mittal
ae71a3a1d6
Reindentation
2013-09-07 13:45:27 +05:30
Aditi Mittal
414c25c5a4
Add user to invidual blog dashboard context.
2013-09-07 13:44:27 +05:30
Aditi Mittal
5278c6dd80
Correct template syntax error.
2013-09-07 13:13:08 +05:30
Aditi Mittal
a6a7d785b2
Put buttons for blog create and blog dashboard on view using template_hooks for blog plugin not to be interfering with original code.
2013-09-07 13:11:14 +05:30
Aditi Mittal
4226743ad6
Capitalize first letter of tags
2013-09-07 12:08:36 +05:30
Aditi Mittal
1ff86c03a6
Write on the template when there is no blog for the user.
2013-09-07 12:06:35 +05:30
Aditi Mittal
cc37c8f8f9
Amend blog_dashboard view for accomodating all conditions.
2013-09-07 12:01:27 +05:30
Aditi Mittal
5961431097
Remove condition of being logged in to view blog dashboard.
2013-09-07 11:35:05 +05:30
Aditi Mittal
9ad6454e17
Insert URL to blog in a user's profile page by spaetz
2013-09-07 11:33:10 +05:30
Rodney Ewing
0485e9c892
typo. conversions not convirsions
...
thanks to saul for pointing this out.
2013-09-06 14:28:40 -07:00
Aditi Mittal
dffff64a26
Add tags for every post on blog post listing page.
2013-09-06 18:54:29 +05:30