Changeset 1be868b
- Timestamp:
- 03/21/12 17:11:06 (14 months ago)
- Branches:
- social
- Children:
- 10a0db0
- Parents:
- 155b1b1 (diff), aa83e80 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent. - git-author:
- yomguy <yomguy@…> (03/21/12 17:11:06)
- git-committer:
- yomguy <yomguy@…> (03/21/12 17:11:06)
- Files:
-
- 7 edited
-
example/sandbox_sqlite/settings.py (modified) (2 diffs)
-
setup.py (modified) (1 diff)
-
telemeta/__init__.py (modified) (1 diff)
-
telemeta/templates/telemeta/inc/resource_related.html (modified) (2 diffs)
-
telemeta/templates/telemeta/profile_detail.html (modified) (1 diff)
-
telemeta/urls.py (modified) (2 diffs)
-
telemeta/templates/telemeta/base.html (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
example/sandbox_sqlite/settings.py
r2c08ff6 r1be868b 113 113 'socialregistration', 114 114 'socialregistration.contrib.facebook', 115 'sorl.thumbnail', 115 116 ) 116 117 … … 125 126 TELEMETA_GMAP_KEY = 'ABQIAAAArg7eSfnfTkBRma8glnGrlxRVbMrhnNNvToCbZQtWdaMbZTA_3RRGObu5PDoiBImgalVnnLU2yN4RMA' 126 127 TELEMETA_CACHE_DIR = MEDIA_ROOT + 'cache' 127 TELEMETA_EXPORT_CACHE_DIR = TELEMETA_CACHE_DIR + "/export"128 TELEMETA_EXPORT_CACHE_DIR = MEDIA_ROOT + 'export' 128 129 TELEMETA_DATA_CACHE_DIR = TELEMETA_CACHE_DIR + "/data" 129 130 -
setup.py
ra62ff5a rb6c6871 23 23 'django-postman', 24 24 'django-socialregistration', 25 'sorl-thumbnail', 25 26 ], 26 27 platforms=['OS Independent'], -
telemeta/__init__.py
rb3287a8 raa83e80 13 13 14 14 __docformat__ = 'epytext en' 15 __version__ = '1.4. 2'15 __version__ = '1.4.3' 16 16 __url__ = 'http://telemeta.org' 17 17 __copyright__ = '(C) 2007-2012 Parisson' -
telemeta/templates/telemeta/inc/resource_related.html
rea5ec32 rb6c6871 1 1 {% load i18n %} 2 2 {% load telemeta_utils %} 3 {% load thumbnail %} 3 4 4 5 <div> … … 58 59 <td style="padding-bottom: 1em;"> 59 60 {% if media.is_image %} 60 {% if media.url %} 61 <a href="{{ media.url }}"> 62 <img src="{{ media.url }}" style="max-width: 420px; max-height: 200px;" /></a> 61 {% if media.file %} 62 <a href="{% url telemeta-resource-related type resource.code media.id %}"> 63 {% thumbnail media.file "420" as im %} 64 <img src="{{ im.url }}" style="max-width: 420px; max-height: 200px;" /> 65 {% endthumbnail %} 66 </a> 63 67 {% else %} 64 <a href="{% url telemeta-resource-related type resource.code media.id %}"> 65 <img src="{% url telemeta-resource-related type resource.code media.id %}" style="max-width: 420px; max-height: 200px;" /></a> 66 {% endif %} 68 <a href="{{ media.url }}"> 69 {% thumbnail media.url "420" as im %} 70 <img src="{{ im.url }}" style="max-width: 420px; max-height: 200px;" /> 71 {% endthumbnail %} 72 </a> 73 {% endif %} 67 74 {% else %} 68 75 {% if media.url %} -
telemeta/templates/telemeta/profile_detail.html
r90599c5 rb6c6871 42 42 43 43 <dt>{% trans "Institution" %}</dt><dd>{% if profile %}{{ profile.institution }}{% endif %}</dd> 44 <dt>{% trans "Department" %}</dt><dd>{% if profile %}{{ profile.department }}{% endif %}</dd> 44 45 <dt>{% trans "Function" %}</dt><dd>{% if profile %}{{ profile.function }}{% endif %}</dd> 45 46 <dt>{% trans "Attachment" %}</dt><dd>{% if profile %}{{ profile.attachment }}{% endif %}</dd> -
telemeta/urls.py
r396801e rb6c6871 36 36 37 37 from django.conf.urls.defaults import * 38 from django.conf import settings 38 39 from django.views.generic.simple import redirect_to 39 40 from telemeta.models import MediaItem, MediaCollection, MediaItemMarker, MediaCorpus, MediaFonds … … 330 331 url(r'^rss/$', LastestRevisionsFeed(), name="telemeta-rss"), 331 332 333 # Static media 334 # FIXME:need to move export dir from the cache 335 url(r'^media/cache/(?P<path>.*)$', 'django.views.static.serve', { 336 'document_root': settings.TELEMETA_CACHE_DIR,}), 332 337 ) 333 338 -
telemeta/templates/telemeta/base.html
rfabced9 r1f3e307 64 64 <img src="{% url telemeta-images "logout.png" %}" alt="logout" style="vertical-align:middle" /></a> 65 65 {% else %} 66 <div style="float: left;"> 66 67 <a href="{% url telemeta-flatpage "help" %}">{% trans "Help" %}</a> | 67 68 <a href="{% url telemeta-login %}?next={{ request.path|urlencode }}">{% trans "Sign in" %}</a> 69 </div> 70 <div style="float: right;;"> 71 {% load facebook %} 72 {% facebook_button %} 73 </div> 68 74 {% endif %} 69 75 </div>
Note: See TracChangeset
for help on using the changeset viewer.
