366 Commits

Author SHA1 Message Date
Christopher Allan Webber
6331e927e4 Padding on the header-dropdown area
This helps make it a bit clearer that things are "contained inside"
the header dropdown area.
2013-06-22 16:19:58 -05:00
Christopher Allan Webber
257b8ab62a Merge remote-tracking branch 'refs/remotes/joar/notifications'
Conflicts:
	mediagoblin/db/migrations.py
2013-06-22 16:13:41 -05:00
Alon Levy
0c6ae5ab08 pdf: remove two unused files (we use pdf.js in an iframe, no need for our own bastard copy)
Signed-off-by: Alon Levy <alevy@redhat.com>
2013-06-21 01:52:30 +03:00
Joar Wandborg
0c7fa7556c New notifications, fixed
- Remove notification-gem if notifications are null
- Move comment-susbscription next to add-comment button
- Add copyright header to notifications.js
2013-06-09 22:23:20 +02:00
Joar Wandborg
2d7b6bdef9 New notifications
- Added request.notifications
- Email configuration fixes
  - Set config_spec default SMTP port to `0` and switch to SSL/non-SSL
    default if `port == 0`
  - Added email_smtp_use_ssl configuration setting
- Added migrations for notification tables
- Added __repr__ to MediaComment(Mixin)
- Added MediaComment.get_entry => MediaEntry
- Added CommentSubscription, CommentNotification, Notification,
  ProcessingNotification tables
- Added notifications.task to celery init
- Fixed a bug in the video transcoder where pygst would hijack the
  --help argument.
- Added notifications
  - views
    - silence
    - subscribe
  - routes
  - utility methods
  - celery task
- Added half-hearted .active comment CSS style
- Added quick JS to show header_dropdown
- Added fragment template to show notifications in header_dropdown
- Added fragment template to show subscribe/unsubscribe buttons on
  media/comment pages
- Updated celery setup tests with notifications.task
- Tried to fix test_misc tests that I broke
- Added notification tests
- Added and extended tests.tools fixtures
- Integrated new notifications into media_home, media_post_comment views
- Bumped SQLAlchemy dependency to >= 0.8.0 since we need polymorphic for
  the notifications to work
2013-06-09 21:18:37 +02:00
Christopher Allan Webber
0e4d6221fa Commenting out the max-height restriction on thumbnails. 2013-05-30 10:23:50 -05:00
Joar Wandborg
14aa2eaa19 Cleaned up EXIF view
The last update made the assumption that EXIF metadata is in some way
consistent between camera models, images, manufacturers. This update
takes into account that nothing is certain whenever EXIF is involved.
2013-05-23 22:21:02 +02:00
Gabriel Saldana
420e1374d8 Modifies EXIF section with Camera Info, display toggle and template styling 2013-05-20 00:06:14 +02:00
Alon Levy
a80ebf3b64 add pdf media type
The new media type supports pdf and a subset of media recognized by libreoffice via
unoconv.

Every document added goes through:
* conversion to pdf with unoconv if not already a pdf
* creation of thumbnail and medium sized image, and pdfinfo generates
 some information (even for unoconv produces docs - should fix this)

Poppler (pdftocairo, pdfinfo) is used.  http://poppler.freedesktop.org/

A working but uglified pdf.js integration exists, which is enabled by
setting pdf.pdf_js=true mediagoblin_local.ini (disabled in mediagoblin.ini)

Adds one test to the test_submission test suite, and another separate test_pdf suite.
The tests are only run if media_types.pdf.processing.check_prerequisites passes, so
the test suite will not require any extra package.

TODO: make test suite say 'skipped' in that case instead of just 'ok'

Signed-off-by: Alon Levy <alon@pobox.com>
2013-04-15 09:51:21 +03:00
Christopher Allan Webber
50bf38b26e Text-align the headers on the media panel to the left to avoid confusion
Thanks to Tsyesika for pointing this out!
2013-04-13 14:12:25 -05:00
Christopher Allan Webber
64308aca3f Comment when/author link styling changes 2013-04-13 12:06:19 -05:00
Joar Wandborg
0151060a5b Added thingiview.js symlink, fixes webgl view 2013-03-10 23:09:52 +01:00
Christopher Allan Webber
8db7eed3bc Removing html5shiv for not complying with its own licenses and racism
Issues of racism seem to have been resolved and removed from upstream,
but make having this as a dependency somewhat uncomfortable:
  https://github.com/aFarkas/html5shiv/issues/91

Regardless, at the time of writing the project doesn't comply with its
own license... it states to be dual licensed under MIT and GPLv2 but
distributes neither of these licenses with its source.
2013-02-26 17:50:11 -06:00
Jef van Schendel
a5b9a066bf Improved dropdown styling, part deux 2013-02-24 21:09:16 +01:00
Jef van Schendel
fe253e31b3 Improved dropdown styling 2013-02-24 20:53:34 +01:00
Jef van Schendel
44004c17e3 Fix "Add to collection" button: remove icon, add text, add to collections.html 2013-02-08 22:54:16 +01:00
Christopher Allan Webber
d1d535602c Merge remote-tracking branch 'refs/remotes/origin/533-new-dropdown'
Conflicts:
	mediagoblin/templates/mediagoblin/base.html
	mediagoblin/templates/mediagoblin/root.html
2013-01-17 11:47:29 -06:00
Jef van Schendel
10d2419764 CSS edits to dropdown menu; added log out button for unverified users 2013-01-17 16:15:03 +01:00
Jef van Schendel
7d996a269c Change position of "Delete account" link, put it below the form 2013-01-17 13:35:45 +01:00
Sebastian Spaeth
565d01a09a Bump bundled video.js to v3.2.3 (#512)
There is nothing inherently wrong with the currently bundled version,
but the last one was uploaded in March 2012 and there have been
upstream releases since. So bump to the latest available release 3.2.3.

Might help with the reported issue 512 of an unresponsive video player.

Do note that the Flash fallback option is removed. If we decide
this should be added it is easy to add it back.

We still use our own customized theme.

Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
2012-12-25 19:16:03 +01:00
Jef van Schendel
98b927250e Remove collection_thumbnail styling, so collection thumbnails are styled the same as other thumbnails 2012-12-16 21:57:19 +01:00
Jef van Schendel
a04cd2e596 Small styling edits to thumbnails 2012-12-13 23:39:19 +01:00
Elrond
d2fad5c9c3 Make "add media to collection" a normal <img/>
This button used to be a css style <a href=...> </a> (note:
No contents for the <a>). Using this approach has various
drawbacks. Most notably:
- Not clickable in text mode browsers
- Possibly getting marked as a hidden (spam) link
- No alt attribute

So replaced with a real <img/>.

I have no idea what to put in the alt attribute.
2012-12-13 21:19:37 +01:00
Jef van Schendel
75a086dafa Add header_dropdown.js 2012-12-04 21:12:00 +01:00
Jef van Schendel
209bfb35cd Edit header styling (add border-bottom, remove background-color); add margin to header_dropdown 2012-12-04 21:11:42 +01:00
Christopher Allan Webber
78d932e792 Moving thingiview.js into extlib/ 2012-12-03 14:57:52 -06:00
Aeva Ntsc
171dcbe3a8 disabled auto rotate 2012-12-03 14:40:47 -06:00
Aeva Ntsc
2b19fd5135 Added the thingiview.js library. 2012-12-03 14:40:47 -06:00
Aeva Ntsc
47cd2f66b6 Added the thingiview.js library. 2012-12-03 14:40:47 -06:00
Jef van Schendel
3351e5b242 Fix header width again: this is a better approach 2012-12-02 02:34:29 +01:00
Jef van Schendel
f2578595cd Fix header width issue on small screens 2012-12-02 02:29:29 +01:00
Jef van Schendel
5a42915b68 First commit to add header dropdown 2012-12-02 02:13:22 +01:00
Sebastian Spaeth
fd79d33a87 Pop up OpenStreetMap license on demand (#410)
Only a short blurb "see map license" in the small map which will
pop up the full license text via jquery when clicked.
Adapt the license text as recommended by OpenStreetMap
http://www.openstreetmap.org/copyright and link there.

The disadvantage is that this only works when Javascript is enabled,
but as the map only works when Javascript is enabled in the first place,
this should not be too much of a limitation.

TODO: Our esteemed web designer needs to have a look at the desired color
style for this. Right now, I simply placed it in the message_warning
class. This might want fine-tuning.

Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
2012-11-16 12:59:23 +01:00
Sebastian Spaeth
2e4ad35962 Simplify/Robustify the thumbnail URL usage in templates
So far templates required a very complex blurb to simply insert a
thumbnail URL, exposing much of the internal logic to the template
designer. In addition, we would fail with an error if for some
reason the media_files['thumb'] entry was never populated.

This adds the MediaEntry.thumb_url property that template designers
can simply use. It will do the right thing, either fetching the proper
thumbnail or hand back a generic icon specified in a media's
MEDIA_MANAGER as "default_thumb".

Add an image default fallback icon (stolen from Tangos, which are
Public Domain since version 0.8.90 as I understand) since the one
we referred to was not existing. Perhaps, a "broken image" icon
would be better, but I'll leave that to our capable designers.

All templates have been modified to make use of the new thumb_url
function.

Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
2012-11-15 12:01:31 +01:00
Jef van Schendel
52aef5b445 Revert thumbnail styling and sizing; allows for 5 thumbnails per row 2012-11-01 17:10:16 +01:00
Jef van Schendel
4232c52fab Change thumbnail width to 212px 2012-11-01 16:59:27 +01:00
Jef van Schendel
8567c0479f Don't show zoom in cursor if there is no larger version 2012-10-23 15:41:46 +02:00
Jef van Schendel
294979824c Replace dropdown in top right with regular links 2012-10-21 21:49:39 +02:00
Jef van Schendel
e3f1fddf87 Fix thumbnail aspect ratios 2012-10-20 15:19:11 +02:00
Jef van Schendel
1c66750a4a Thumbnail styling edits plus edits to the object_gallery (4 columns instead of 5 by default) 2012-10-19 21:13:40 +02:00
Jef van Schendel
42d4763c7a Thumbnail styling edits to base theme and Airy theme 2012-10-19 21:01:44 +02:00
Aaron Williamson
a0fdc00fab Added new files for collections 2012-09-18 18:10:36 +02:00
Aaron Williamson
be5be1154f Added basic collection functionality 2012-09-18 18:10:36 +02:00
Joar Wandborg
089508d07b Changed <pre> margin to confirm with <p> margins 2012-08-08 00:22:52 +02:00
Jakob Kramer
cf29edcd74 allow pre+code tags in rendered HTML 2012-08-07 22:19:10 +02:00
Joar Wandborg
65a2eb6694 Added text-overflow: ellipsis to the media thumbnails 2012-07-28 21:01:56 +02:00
Jef van Schendel
36f8e350d4 Add zoom-in cursor css; small indentation fix 2012-07-21 00:27:49 +02:00
Jef van Schendel
5381b4b7a0 Insignificant edits to logo SVG 2012-07-20 21:06:41 +02:00
Jef van Schendel
47ab857fa3 Increase Description and Bio textarea height to 100px 2012-07-20 00:45:49 +02:00
Joar Wandborg
1d83cf8a81 Added html5slider to support range inputs in Firefox 2012-04-18 12:06:10 +02:00