Skip to content

Commit 8a61ff5

Browse files
committed
Finalize blog access links and media.
1 parent ee37e25 commit 8a61ff5

File tree

11 files changed

+40
-89
lines changed

11 files changed

+40
-89
lines changed

aic_site/urls.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
1. Import the include() function: from django.conf.urls import url, include
1414
2. Add a URL to urlpatterns: url(r'^blog/', include('blog.urls'))
1515
"""
16+
from django.conf import settings
1617
from django.conf.urls import url, include
1718
from django.contrib.auth import views as auth_views
1819
from django.contrib import admin
@@ -37,3 +38,7 @@
3738
url(r'^game/', include(game_urls)),
3839
url(r'^articles/comments/', include('django_comments.urls')),
3940
]
41+
42+
if settings.DEBUG:
43+
from django.conf.urls.static import static
44+
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)

apps/accounts/locale/fa/LC_MESSAGES/django.po

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgid ""
88
msgstr ""
99
"Project-Id-Version: PACKAGE VERSION\n"
1010
"Report-Msgid-Bugs-To: \n"
11-
"POT-Creation-Date: 2018-02-01 12:49+0000\n"
11+
"POT-Creation-Date: 2018-02-01 14:06+0000\n"
1212
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1313
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
1414
"Language-Team: LANGUAGE <LL@li.org>\n"

apps/accounts/templates/email/locale/fa/LC_MESSAGES/django.po

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgid ""
88
msgstr ""
99
"Project-Id-Version: PACKAGE VERSION\n"
1010
"Report-Msgid-Bugs-To: \n"
11-
"POT-Creation-Date: 2018-02-01 12:49+0000\n"
11+
"POT-Creation-Date: 2018-02-01 14:06+0000\n"
1212
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1313
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
1414
"Language-Team: LANGUAGE <LL@li.org>\n"

apps/game/locale/fa/LC_MESSAGES/django.po

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgid ""
88
msgstr ""
99
"Project-Id-Version: PACKAGE VERSION\n"
1010
"Report-Msgid-Bugs-To: \n"
11-
"POT-Creation-Date: 2018-02-01 12:49+0000\n"
11+
"POT-Creation-Date: 2018-02-01 14:06+0000\n"
1212
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1313
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
1414
"Language-Team: LANGUAGE <LL@li.org>\n"

apps/intro/locale/fa/LC_MESSAGES/django.po

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgid ""
88
msgstr ""
99
"Project-Id-Version: PACKAGE VERSION\n"
1010
"Report-Msgid-Bugs-To: \n"
11-
"POT-Creation-Date: 2018-02-01 12:49+0000\n"
11+
"POT-Creation-Date: 2018-02-01 14:06+0000\n"
1212
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1313
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
1414
"Language-Team: LANGUAGE <LL@li.org>\n"

deploy/docker-compose.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ services:
1111
- 443:443
1212
volumes:
1313
- ./static/root:/static/root/static
14+
- ../media/root:/static/root/media
1415
- /var/log/aic_site:/var/log/aic_site
1516
- ./config/nginx/sites-enabled:/etc/nginx/sites-enabled
1617
- ./config/nginx/sites-available:/etc/nginx/sites-available
@@ -28,6 +29,7 @@ services:
2829
# cp /patches/zinnia_migrations.py /usr/local/lib/python3.5/dist-packages/zinnia/migrations/0003_publication_date.py &&
2930
volumes:
3031
- ./static/root:/root/aic_site/static/root
32+
- ../media/root:/root/aic_site/media
3133
- ./patches:/patches
3234
depends_on:
3335
- aic_db

deploy/docker-compose_test.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ services:
99
- 2016:2016
1010
volumes:
1111
- ./static/root:/static/root/static
12+
- ../media_test/root:/static/root/media
1213
- /var/log/aic_test_site:/var/log/aic_test_site
1314
- ./config/nginx/sites-enabled:/etc/nginx/sites-enabled
1415
- ./config/nginx/sites-available:/etc/nginx/sites-available
@@ -26,6 +27,7 @@ services:
2627
# cp /patches/zinnia_migrations.py /usr/local/lib/python3.5/dist-packages/zinnia/migrations/0003_publication_date.py &&
2728
volumes:
2829
- ./static/root:/root/aic_site/static/root
30+
- ../media_test/root:/root/aic_site/media
2931
depends_on:
3032
- aic_test_db
3133
expose:

locale/fa/LC_MESSAGES/django.po

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgid ""
88
msgstr ""
99
"Project-Id-Version: PACKAGE VERSION\n"
1010
"Report-Msgid-Bugs-To: \n"
11-
"POT-Creation-Date: 2018-02-01 12:49+0000\n"
11+
"POT-Creation-Date: 2018-02-01 14:06+0000\n"
1212
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1313
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
1414
"Language-Team: LANGUAGE <LL@li.org>\n"
@@ -59,7 +59,7 @@ msgstr "بلاگ"
5959
msgid "Game"
6060
msgstr "بازی"
6161

62-
#: aic_site/context_processors.py:39
62+
#: aic_site/context_processors.py:39 templates/base/navbar.html:23
6363
msgid "Panel"
6464
msgstr "پنل"
6565

@@ -140,10 +140,6 @@ msgstr ""
140140
"تمامی حقوق برای <a href=\"http://ssc.ce.sharif.edu\">انجمن علمی دانشکده "
141141
"مهندسی کامپیوتر</a> دانشگاه صنعتی شریف محفوظ است. "
142142

143-
#: templates/base/navbar.html:23
144-
msgid "Competition Area"
145-
msgstr "محیط مسابقه"
146-
147143
#: templates/base/navbar.html:47 templates/zinnia/login.html:34
148144
msgid "Login"
149145
msgstr "ورود"
@@ -640,7 +636,6 @@ msgid "RSS feed of trackbacks on %(object)s"
640636
msgstr ""
641637

642638
#: templates/zinnia/entry_detail_base.html:67
643-
#| msgid "Comment as"
644639
msgid "Comments and Q&A"
645640
msgstr "پرسش و پاسخ و نظرات"
646641

@@ -1011,6 +1006,9 @@ msgid "%(entry_count)s entry tagged by %(tag)s"
10111006
msgid_plural "%(entry_count)s entries tagged by %(tag)s"
10121007
msgstr[0] "%(entry_count)s تا پست با تگ %(tag)s"
10131008

1009+
#~ msgid "Competition Area"
1010+
#~ msgstr "محیط مسابقه"
1011+
10141012
#~| msgid ""
10151013
#~| "<a href=\"%(comment_url)s\" rel=\"external nofollow\" class=\"fn url\">"
10161014
#~| "%(comment_name)s</a> on <time class=\"comment-published\" datetime="

templates/base/navbar.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
{% if request.user.is_authenticated %}
2121
<a href="{% url 'accounts:panel' %}" class="ui centered button" id="panel-button">
2222
<i class="dashboard icon"></i>
23-
{% trans 'Competition Area' %}
23+
{% trans 'Panel' %}
2424
</a>
2525
{% endif %}
2626

templates/zinnia/_entry_detail_base.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ <h2 class="entry-title" itemprop="name">
7575
<a href="{{ object.get_absolute_url }}" title="{{ object.title }}" rel="bookmark">
7676
{% endif %}
7777
<figure itemprop="image" itemscope itemtype="http://schema.org/ImageObject">
78-
<img src="{{ object.image.url }}"
78+
<img style="max-width: 20vw; float: left;" src="{{ object.image.url }}"
7979
alt="{{ object.image_caption|default:object.title }}" itemprop="contentUrl"/>
8080
{% if object.image_caption %}
8181
<figcaption itemprop="caption">{{ object.image_caption }}</figcaption>

0 commit comments

Comments
 (0)