Commit e3cdad6a94f926454e8f0514554701e6e79a3cb6
1 parent
39426db3
Exists in
master
and in
2 other branches
colocando a tradução do tipo de ação realizada em links
Showing
2 changed files
with
4 additions
and
3 deletions
Show diff stats
links/templates/links/relatorios.html
@@ -11,7 +11,7 @@ | @@ -11,7 +11,7 @@ | ||
11 | 11 | ||
12 | var array_history = []; | 12 | var array_history = []; |
13 | {%for data_json in json_history.data %} | 13 | {%for data_json in json_history.data %} |
14 | - array_history.push(["{{data_json.0}}","{{data_json.1}}","{{data_json.2}}",{% if data_json.3 is not None %}new Date('{{data_json.3.isoformat}}'){% else%}null{% endif %}]); | 14 | + array_history.push(["{{data_json.0}}","{{data_json.1}}","{{view}}",{% if data_json.3 is not None %}new Date('{{data_json.3.isoformat}}'){% else%}null{% endif %}]); |
15 | {% endfor%} | 15 | {% endfor%} |
16 | var json_history = {"data":array_history}; | 16 | var json_history = {"data":array_history}; |
17 | var column_history = [{"string":'{% trans "User" %}'},{"string":'{% trans "Group" %}'},{"string":'{% trans "Action" %}'},{"date":'{% trans "Date of Action" %}'}]; | 17 | var column_history = [{"string":'{% trans "User" %}'},{"string":'{% trans "Group" %}'},{"string":'{% trans "Action" %}'},{"date":'{% trans "Date of Action" %}'}]; |
links/views.py
@@ -419,14 +419,15 @@ class StatisticsView(LoginRequiredMixin, LogMixin, generic.DetailView): | @@ -419,14 +419,15 @@ class StatisticsView(LoginRequiredMixin, LogMixin, generic.DetailView): | ||
419 | context["json_n_did"] = json_n_did | 419 | context["json_n_did"] = json_n_did |
420 | context["json_history"] = json_history | 420 | context["json_history"] = json_history |
421 | c_visualizou = vis_ou.distinct("user_email").count() | 421 | c_visualizou = vis_ou.distinct("user_email").count() |
422 | + column_view = str(_('View')) | ||
422 | re.append([str(_('Links')),did,n_did]) | 423 | re.append([str(_('Links')),did,n_did]) |
423 | - re.append([str(_('View')),c_visualizou, alunos.count() - c_visualizou]) | 424 | + re.append([column_view,c_visualizou, alunos.count() - c_visualizou]) |
424 | context['topic'] = link.topic | 425 | context['topic'] = link.topic |
425 | context['subject'] = link.topic.subject | 426 | context['subject'] = link.topic.subject |
426 | context['db_data'] = re | 427 | context['db_data'] = re |
427 | context['title_chart'] = _('Actions about resource') | 428 | context['title_chart'] = _('Actions about resource') |
428 | context['title_vAxis'] = _('Quantity') | 429 | context['title_vAxis'] = _('Quantity') |
429 | - | 430 | + context['view'] = column_view |
430 | context["n_did_table"] = n_did | 431 | context["n_did_table"] = n_did |
431 | context["did_table"] = did | 432 | context["did_table"] = did |
432 | context["history_table"] = history | 433 | context["history_table"] = history |