diff --git a/links/locale/pt_BR/LC_MESSAGES/django.po b/links/locale/pt_BR/LC_MESSAGES/django.po index d1fc3f1..f1bc9ca 100644 --- a/links/locale/pt_BR/LC_MESSAGES/django.po +++ b/links/locale/pt_BR/LC_MESSAGES/django.po @@ -93,11 +93,11 @@ msgstr "Editar: " #: links/views.py:51 links/views.py:64 links/views.py:223 links/views.py:225 #: links/views.py:241 links/views.py:243 msgid "Visualize" -msgstr "" +msgstr "Visualizar" #: links/views.py:124 msgid "Create Webiste Link" -msgstr "" +msgstr "Criar Link de Website" #: links/views.py:135 #, python-format diff --git a/subjects/templates/subjects/resource_card.html b/subjects/templates/subjects/resource_card.html index 4d44f78..cc2f808 100644 --- a/subjects/templates/subjects/resource_card.html +++ b/subjects/templates/subjects/resource_card.html @@ -55,11 +55,9 @@
{{resource.brief_description|safe}}
{% endif %} - {% if resource.link_url %} -teste
- {% else %} - {% trans "Access Resource" %} - {% endif %} + + {% trans "Access Resource" %} + diff --git a/subjects/views.py b/subjects/views.py index aad42de..2961a4d 100644 --- a/subjects/views.py +++ b/subjects/views.py @@ -20,7 +20,7 @@ from subjects.models import Subject from log.mixins import LogMixin from log.decorators import log_decorator_ajax from log.models import Log - +from itertools import chain from .models import Tag import time import datetime @@ -608,9 +608,8 @@ class SubjectSearchView(LoginRequiredMixin, LogMixin, ListView): subjects = Subject.objects.filter(q).distinct() self.resources = Resource.objects.filter(q).distinct() - self.totals = {'resources': self.resources.count(), 'my_subjects': subjects.count()} - + option = self.kwargs.get('option') if option and option == 'resources': return self.resources diff --git a/topics/templates/resources/list.html b/topics/templates/resources/list.html index 8815e1e..bfdfd98 100644 --- a/topics/templates/resources/list.html +++ b/topics/templates/resources/list.html @@ -14,7 +14,7 @@