Commit 39426db33a0f17043b717ee9847c7c5c9062a625
1 parent
abe904f6
Exists in
master
and in
2 other branches
colocando a tradução do tipo de ação realizada em file_link
Showing
2 changed files
with
4 additions
and
3 deletions
Show diff stats
file_link/templates/file_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" %}'}]; |
file_link/views.py
@@ -439,14 +439,15 @@ class StatisticsView(LoginRequiredMixin, LogMixin, generic.DetailView): | @@ -439,14 +439,15 @@ class StatisticsView(LoginRequiredMixin, LogMixin, generic.DetailView): | ||
439 | context["json_n_did"] = json_n_did | 439 | context["json_n_did"] = json_n_did |
440 | context["json_history"] = json_history | 440 | context["json_history"] = json_history |
441 | c_visualizou = vis_ou.distinct("user_email").count() | 441 | c_visualizou = vis_ou.distinct("user_email").count() |
442 | + column_view = str(_('View')) | ||
442 | re.append([str(_('File link')),did,n_did]) | 443 | re.append([str(_('File link')),did,n_did]) |
443 | - re.append([str(_('View')),c_visualizou, alunos.count() - c_visualizou]) | 444 | + re.append([column_view,c_visualizou, alunos.count() - c_visualizou]) |
444 | context['topic'] = filelink.topic | 445 | context['topic'] = filelink.topic |
445 | context['subject'] = filelink.topic.subject | 446 | context['subject'] = filelink.topic.subject |
446 | context['db_data'] = re | 447 | context['db_data'] = re |
447 | context['title_chart'] = _('Actions about resource') | 448 | context['title_chart'] = _('Actions about resource') |
448 | context['title_vAxis'] = _('Quantity') | 449 | context['title_vAxis'] = _('Quantity') |
449 | - | 450 | + context['view'] = column_view |
450 | context["n_did_table"] = n_did | 451 | context["n_did_table"] = n_did |
451 | context["did_table"] = did | 452 | context["did_table"] = did |
452 | context["history_table"] = history | 453 | context["history_table"] = history |