Commit d5654a0bc9afd699e899b0fcdd2d27f6d7e1ba64

Authored by Zambom
1 parent 5e2775d7

Subject Breadcrumbs adjusts

amadeus/locale/pt_BR/LC_MESSAGES/django.po
... ... @@ -8,7 +8,7 @@ msgid ""
8 8 msgstr ""
9 9 "Project-Id-Version: PACKAGE VERSION\n"
10 10 "Report-Msgid-Bugs-To: \n"
11   -"POT-Creation-Date: 2017-01-18 15:17-0300\n"
  11 +"POT-Creation-Date: 2017-01-18 15:35-0300\n"
12 12 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
13 13 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14 14 "Language-Team: LANGUAGE <LL@li.org>\n"
... ...
categories/locale/pt_BR/LC_MESSAGES/django.po
... ... @@ -8,7 +8,7 @@ msgid &quot;&quot;
8 8 msgstr ""
9 9 "Project-Id-Version: PACKAGE VERSION\n"
10 10 "Report-Msgid-Bugs-To: \n"
11   -"POT-Creation-Date: 2017-01-18 15:17-0300\n"
  11 +"POT-Creation-Date: 2017-01-18 15:35-0300\n"
12 12 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
13 13 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14 14 "Language-Team: LANGUAGE <LL@li.org>\n"
... ...
log/locale/pt_BR/LC_MESSAGES/django.po
... ... @@ -8,7 +8,7 @@ msgid &quot;&quot;
8 8 msgstr ""
9 9 "Project-Id-Version: PACKAGE VERSION\n"
10 10 "Report-Msgid-Bugs-To: \n"
11   -"POT-Creation-Date: 2017-01-18 15:17-0300\n"
  11 +"POT-Creation-Date: 2017-01-18 15:35-0300\n"
12 12 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
13 13 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14 14 "Language-Team: LANGUAGE <LL@li.org>\n"
... ...
mailsender/locale/pt_BR/LC_MESSAGES/django.po
... ... @@ -8,7 +8,7 @@ msgid &quot;&quot;
8 8 msgstr ""
9 9 "Project-Id-Version: PACKAGE VERSION\n"
10 10 "Report-Msgid-Bugs-To: \n"
11   -"POT-Creation-Date: 2017-01-18 15:17-0300\n"
  11 +"POT-Creation-Date: 2017-01-18 15:35-0300\n"
12 12 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
13 13 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14 14 "Language-Team: LANGUAGE <LL@li.org>\n"
... ...
security/locale/pt_BR/LC_MESSAGES/django.po
... ... @@ -8,7 +8,7 @@ msgid &quot;&quot;
8 8 msgstr ""
9 9 "Project-Id-Version: PACKAGE VERSION\n"
10 10 "Report-Msgid-Bugs-To: \n"
11   -"POT-Creation-Date: 2017-01-18 15:17-0300\n"
  11 +"POT-Creation-Date: 2017-01-18 15:35-0300\n"
12 12 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
13 13 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14 14 "Language-Team: LANGUAGE <LL@li.org>\n"
... ...
subjects/locale/pt_BR/LC_MESSAGES/django.po
... ... @@ -8,7 +8,7 @@ msgid &quot;&quot;
8 8 msgstr ""
9 9 "Project-Id-Version: PACKAGE VERSION\n"
10 10 "Report-Msgid-Bugs-To: \n"
11   -"POT-Creation-Date: 2017-01-18 15:17-0300\n"
  11 +"POT-Creation-Date: 2017-01-18 15:35-0300\n"
12 12 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
13 13 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14 14 "Language-Team: LANGUAGE <LL@li.org>\n"
... ... @@ -91,6 +91,10 @@ msgstr &quot;Atribuir professores ao assunto&quot;
91 91 msgid "Save"
92 92 msgstr "Salvar"
93 93  
  94 +#: subjects/templates/subjects/create.html:23
  95 +msgid "Replicate: "
  96 +msgstr "Replicar: "
  97 +
94 98 #: subjects/templates/subjects/delete.html:10
95 99 #: subjects/templates/subjects/subscribe.html:10
96 100 msgid "Delete Subject"
... ... @@ -158,7 +162,7 @@ msgstr &quot;Remover&quot;
158 162 #: subjects/templates/subjects/list.html:94
159 163 #: subjects/templates/subjects/list.html:159
160 164 msgid "Coordinator(s) "
161   -msgstr "Coordenador(es)"
  165 +msgstr "Coordenador(es) "
162 166  
163 167 #: subjects/templates/subjects/list.html:98
164 168 #: subjects/templates/subjects/list.html:163
... ... @@ -174,7 +178,7 @@ msgstr &quot;Criar novo assunto&quot;
174 178 #: subjects/templates/subjects/subject_card.html:99
175 179 #: subjects/templates/subjects/view.html:66
176 180 msgid "Professor(s) "
177   -msgstr "Professor(es)"
  181 +msgstr "Professor(es) "
178 182  
179 183 #: subjects/templates/subjects/subject_card.html:40
180 184 #: subjects/templates/subjects/subject_card.html:103
... ... @@ -216,6 +220,10 @@ msgstr &quot;Cancelar&quot;
216 220 msgid "Ok"
217 221 msgstr "Ok"
218 222  
  223 +#: subjects/templates/subjects/update.html:20
  224 +msgid "Update: "
  225 +msgstr "Editar: "
  226 +
219 227 #: subjects/templates/subjects/view.html:84
220 228 msgid "Create new topic"
221 229 msgstr "Criar novo tópico"
... ... @@ -236,21 +244,25 @@ msgstr &quot;Todos os assuntos&quot;
236 244 msgid "Create Subject"
237 245 msgstr "Criar Assunto"
238 246  
239   -#: subjects/views.py:188
  247 +#: subjects/views.py:167
  248 +msgid "Replicate Subject"
  249 +msgstr "Replicar Assunto"
  250 +
  251 +#: subjects/views.py:195
240 252 #, python-format
241 253 msgid "Subject \"%s\" was registered on \"%s\" successfully!"
242 254 msgstr "Assunto \"%s\" foi registrado em \"%s\" com sucesso!"
243 255  
244   -#: subjects/views.py:201
  256 +#: subjects/views.py:208
245 257 msgid "Update Subject"
246 258 msgstr "Atualizar Assunto"
247 259  
248   -#: subjects/views.py:212
  260 +#: subjects/views.py:219
249 261 #, python-format
250 262 msgid "Subject \"%s\" was updated on \"%s\" successfully!"
251 263 msgstr "Assunto \"%s\" foi atualizado em \"%s\" com sucesso!"
252 264  
253   -#: subjects/views.py:229
  265 +#: subjects/views.py:236
254 266 msgid ""
255 267 "Subject can't be removed. The subject still possess students and learning "
256 268 "objects associated"
... ... @@ -258,14 +270,14 @@ msgstr &quot;&quot;
258 270 "Assunto não pode ser removido. Ele ainda possui alunos e objetos de "
259 271 "aprendizado associados"
260 272  
261   -#: subjects/views.py:249
  273 +#: subjects/views.py:256
262 274 msgid "Subject removed successfully!"
263 275 msgstr "Assunto removido com sucesso!"
264 276  
265   -#: subjects/views.py:282
  277 +#: subjects/views.py:289
266 278 msgid "Subscription date is due!"
267 279 msgstr "O período de inscrição está encerrado!"
268 280  
269   -#: subjects/views.py:286
  281 +#: subjects/views.py:293
270 282 msgid "Subscription was successfull!"
271 283 msgstr "Inscrição feita com sucesso!"
... ...
subjects/templates/subjects/create.html
... ... @@ -13,17 +13,28 @@
13 13 {% endblock %}
14 14  
15 15 {% block breadcrumbs %}
16   - {% clear_breadcrumbs %}
17   - {% breadcrumb 'Home' 'subjects:home' %}
  16 + {% clear_breadcrumbs %}
  17 + {% breadcrumb 'Home' 'subjects:home' %}
18 18  
19   - {% breadcrumb slug 'subjects:index' %}
20   - {% breadcrumb 'Create Subject' 'subjects:create' %}
  19 + {% if subject %}
  20 + {% breadcrumb subject.category 'subjects:index' %}
  21 + {% breadcrumb subject 'subjects:view' subject.slug %}
  22 +
  23 + {% trans 'Replicate: ' as bread %}
  24 +
  25 + {% with bread|add:subject.name as bread_slug %}
  26 + {% breadcrumb bread_slug 'subjects:create' %}
  27 + {% endwith %}
  28 + {% else %}
  29 + {% breadcrumb slug 'subjects:index' %}
  30 + {% breadcrumb 'Create Subject' 'subjects:create' %}
  31 + {% endif %}
21 32 {% endblock %}
22 33  
23 34 {% block content %}
24 35 <div class="card card-content">
25 36 <div class="card-body">
26   - {% include 'subjects/_form.html' %}
  37 + {% include 'subjects/_form.html' %}
27 38 </div>
28 39 </div>
29 40 <br clear="all" />
... ...
subjects/templates/subjects/update.html
... ... @@ -15,7 +15,10 @@
15 15  
16 16 {% block breadcrumbs %}
17 17 {{ block.super }}
18   - {% with 'Update '|add:object.slug as bread_slug %}
  18 + {% breadcrumb object.category 'subjects:index' %}
  19 + {% breadcrumb object 'subjects:view' object.slug %}
  20 + {% trans 'Update: ' as bread %}
  21 + {% with bread|add:object.name as bread_slug %}
19 22 {% breadcrumb bread_slug 'subjects:update' %}
20 23 {% endwith %}
21 24 {% endblock %}
... ...
subjects/views.py
... ... @@ -159,11 +159,18 @@ class SubjectCreateView(LoginRequiredMixin, CreateView):
159 159 def get_context_data(self, **kwargs):
160 160 context = super(SubjectCreateView, self).get_context_data(**kwargs)
161 161 context['title'] = _('Create Subject')
  162 +
162 163 if self.kwargs.get('slug'):
163 164 context['slug'] = self.kwargs['slug']
  165 +
164 166 if self.kwargs.get('subject_slug'):
  167 + context['title'] = _('Replicate Subject')
  168 +
165 169 subject = get_object_or_404(Subject, slug = self.kwargs['subject_slug'])
  170 +
166 171 context['slug'] = subject.category.slug
  172 + context['subject'] = subject
  173 +
167 174 context['subjects_menu_active'] = 'subjects_menu_active'
168 175  
169 176 return context
... ...
themes/locale/pt_BR/LC_MESSAGES/django.po
... ... @@ -8,7 +8,7 @@ msgid &quot;&quot;
8 8 msgstr ""
9 9 "Project-Id-Version: PACKAGE VERSION\n"
10 10 "Report-Msgid-Bugs-To: \n"
11   -"POT-Creation-Date: 2017-01-18 15:17-0300\n"
  11 +"POT-Creation-Date: 2017-01-18 15:35-0300\n"
12 12 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
13 13 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14 14 "Language-Team: LANGUAGE <LL@li.org>\n"
... ...
topics/locale/pt_BR/LC_MESSAGES/django.po
... ... @@ -8,7 +8,7 @@ msgid &quot;&quot;
8 8 msgstr ""
9 9 "Project-Id-Version: PACKAGE VERSION\n"
10 10 "Report-Msgid-Bugs-To: \n"
11   -"POT-Creation-Date: 2017-01-18 15:17-0300\n"
  11 +"POT-Creation-Date: 2017-01-18 15:35-0300\n"
12 12 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
13 13 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14 14 "Language-Team: LANGUAGE <LL@li.org>\n"
... ...
users/locale/pt_BR/LC_MESSAGES/django.po
... ... @@ -8,7 +8,7 @@ msgid &quot;&quot;
8 8 msgstr ""
9 9 "Project-Id-Version: PACKAGE VERSION\n"
10 10 "Report-Msgid-Bugs-To: \n"
11   -"POT-Creation-Date: 2017-01-18 15:17-0300\n"
  11 +"POT-Creation-Date: 2017-01-18 15:35-0300\n"
12 12 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
13 13 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14 14 "Language-Team: LANGUAGE <LL@li.org>\n"
... ...