Skip to content

Commit 4c8c62f

Browse files
committed
OSIS-3197 : Resolve conflicts
2 parents 634ca3b + 98c0fff commit 4c8c62f

File tree

158 files changed

+4090
-1836
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

158 files changed

+4090
-1836
lines changed

.githooks/prepare-commit-msg

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
#!/usr/bin/env python3
2+
import re
3+
import sys
4+
from subprocess import check_output
5+
6+
7+
def strip_comments(code):
8+
code = str(code)
9+
return re.sub(r'(?m)^ *#.*\n?', '', code)
10+
11+
12+
def clean_string(string, issue):
13+
string = string.replace(issue, '')
14+
string = string.strip()
15+
return strip_comments(string)
16+
17+
18+
def prefix_commit_msg_with_issue():
19+
issue_prefix = branch.index('OSIS')
20+
issue = branch[issue_prefix:]
21+
print("Issue : " + issue)
22+
with open(commit_msg_filepath, 'r+') as fh:
23+
commit_msg = fh.read()
24+
if not clean_string(commit_msg, issue):
25+
print('ERROR :: Commit message is empty !')
26+
sys.exit(1)
27+
fh.seek(0, 0)
28+
fh.write('%s %s' % (issue, commit_msg))
29+
30+
31+
commit_msg_filepath = sys.argv[1]
32+
33+
branch = check_output(['git', 'symbolic-ref', '--short', 'HEAD']).strip()
34+
branch = branch.decode("utf-8")
35+
36+
branches_to_exclude = ['dev', 'test', 'qa', 'master']
37+
38+
if branch not in branches_to_exclude:
39+
try:
40+
prefix_commit_msg_with_issue()
41+
except ValueError:
42+
print('WARNING :: commit msg not prefixed with branch name')
43+
else:
44+
print('Incorrect branch name' + branch)
45+
sys.exit(1)

assessments/locale/fr_BE/LC_MESSAGES/django.po

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ msgid "Are you sure you want to remove the following manager ?"
104104
msgstr "Êtes-vous sûr de vouloir supprimer le gestionnaire suivant ?"
105105

106106
msgid "By learning unit"
107-
msgstr "Par unité d'apprentissage"
107+
msgstr "Par unité d'enseignement"
108108

109109
msgid "By specific criteria"
110110
msgstr "Par critère spécifique"

assessments/templates/online_double_encoding_form.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ <h3 class="panel-title" style="font-size: 150%; color: #3399CC;">{{ learning_uni
116116
<table class="table table-hover">
117117
<thead>
118118
<tr>
119-
<th>{% trans 'Offer' %}</th>
119+
<th>{% trans 'Training' %}</th>
120120
<th>{% trans 'Registration number' %}</th>
121121
<th>{% trans 'Lastname' %}</th>
122122
<th>{% trans 'Firstname' %}</th>

assessments/templates/online_double_encoding_validation.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ <h3 class="panel-title" style="font-size: 150%; color: #3399CC;">{{ learning_uni
110110
<th colspan="2">{% trans 'Final' %}</th>
111111
</tr>
112112
<tr>
113-
<th>{%trans 'Offer' %}</th>
113+
<th>{%trans 'Training' %}</th>
114114
<th>{%trans 'Registration number' %}</th>
115115
<th>{% trans 'Lastname' %}</th>
116116
<th>{% trans 'Firstname' %}</th>

assessments/templates/online_encoding.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,14 +128,14 @@ <h3 class="panel-title" style="font-size: 150%; color: #3399CC;">{{ learning_uni
128128
{% endif %}><i class="fa fa-hashtag"></i><i class="fa fa-hashtag"></i> {% trans 'Double encoding' %}</a>
129129
</div>
130130
&nbsp;
131-
<a id="lnk_score_printing" class="btn btn-default"
131+
<a id="lnk_score_printing" class="btn btn-default no_spinner"
132132
href="{% url 'notes_printing' learning_unit_year_id=learning_unit_year.id %}"
133133
data-toggle="tooltip" data-placement="bottom"
134134
title="{% trans 'Print the scores' %}"
135135
role="button"><span class="glyphicon glyphicon-print" aria-hidden="true"></span> {% trans 'Print' %}</a>
136136
&nbsp;
137137
<div class="btn-group" role="group" aria-label="Excel">
138-
<a id="lnk_scores_excel" class="btn btn-default"
138+
<a id="lnk_scores_excel" class="btn btn-default no_spinner"
139139
href="{% url 'scores_encoding_download' learning_unit_year.id %}"
140140
role="button"
141141
data-toggle="tooltip" data-placement="bottom"

assessments/templates/online_encoding_form.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ <h3 class="panel-title" style="font-size: 150%; color: #3399CC;">{{ learning_uni
118118
<thead>
119119
<tr>
120120
<th>{% trans 'Status' %}</th>
121-
<th>{% trans 'Offer' %}</th>
121+
<th>{% trans 'Training' %}</th>
122122
<th>{% trans 'Registration number' %}</th>
123123
<th>{% trans 'Lastname' %}</th>
124124
<th>{% trans 'Firstname' %}</th>

assessments/templates/scores_encoding.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ <h2>{% trans 'Scores encoding' %}</h2>
6161
<form method="get" action="{% url 'scores_encoding' %}" id="form_search_scores_by_offer">
6262
<div class="col-md-10">
6363
<div class="form-group">
64-
<label>{% trans 'Offer' %}</label><br>
64+
<label>{% trans 'Training' %}</label><br>
6565
<select id="slt_offer_list_selection" name="offer" class="form-control">
6666
<option value="">{% trans 'All'%}</option>
6767
{% for offer_year in offer_year_list %}
@@ -142,7 +142,7 @@ <h2>{% trans 'Scores encoding' %}</h2>
142142
</div>
143143
<div role="tabpanel" class="tab-pane fade" id="tab_via_paper_{{forloop.counter0}}">
144144
<br>
145-
<a class="btn btn-default"
145+
<a class="btn btn-default no_spinner"
146146
href="{% url 'notes_printing_all' %}"
147147
role="button" id="lnk_notes_printing_all_{{learning_unit_year.id}}">
148148
<span class="glyphicon glyphicon-print" aria-hidden="true"></span> {% trans 'Print all courses' %}</a>
@@ -177,7 +177,7 @@ <h2>{% trans 'Scores encoding' %}</h2>
177177
</div>
178178
</td>
179179
<td>
180-
<a class="btn btn-default"
180+
<a class="btn btn-default no_spinner"
181181
href="{% url 'notes_printing' note_detail.learning_unit_year_id %}"
182182
role="button" id="lnk_notes_printing_{{note_detail.learning_unit_year_id}}"
183183
data-toggle="tooltip" data-placement="right"
@@ -219,7 +219,7 @@ <h2>{% trans 'Scores encoding' %}</h2>
219219
</div>
220220
</div>
221221
</td>
222-
<td><a class="btn btn-default"
222+
<td><a class="btn btn-default no_spinner"
223223
href="{% url 'scores_encoding_download' note_detail.learning_unit_year_id %}"
224224
role="button"
225225
id="lnk_scores_encoding_download_{{lu.id}}"

assessments/templates/scores_encoding_by_learning_unit.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
</div>
5959
<div class="row">
6060
<div class="col-md-3">
61-
<label>{% trans 'Offer' %} {{ offer_sel }}</label><br>
61+
<label>{% trans 'Training' %} {{ offer_sel }}</label><br>
6262
<select id="slt_offer_list_selection" name="offer" class="form-control">
6363
<option value="">{% trans 'All'%}</option>
6464
{% for o in offer_list %}
@@ -275,7 +275,7 @@
275275
</div>
276276
</td>
277277
<td>
278-
<a class="btn btn-default"
278+
<a class="btn btn-default no_spinner"
279279
href="{% url 'scores_encoding_download' note_detail.learning_unit_year_id %}"
280280
role="button"
281281
id="lnk_scores_encoding_download_{{note_detail.learning_unit_year_id}}"
@@ -290,7 +290,7 @@
290290
</div>
291291
<div role="tabpanel" class="tab-pane fade" id="tab_via_paper">
292292
<br>
293-
<a class="btn btn-default {% if not tutor_id or tutor_id == -1 %}disabled{%endif%}"
293+
<a class="btn btn-default no_spinner {% if not tutor_id or tutor_id == -1 %}disabled{%endif%}"
294294
href="{%if tutor_id and tutor_id != -1 and offer_year_id %}
295295
{% url 'notes_printing_all' tutor_id=tutor_id offer_id=offer_year_id %}
296296
{%else%}
@@ -362,7 +362,7 @@
362362
</div>
363363
</td>
364364
<td>
365-
<a class="btn btn-default"
365+
<a class="btn btn-default no_spinner"
366366
href="{% url 'notes_printing' note_detail.learning_unit_year_id%}"
367367
role="button" id="lnk_notes_printing_{{note_detail.learning_unit_year_id}}"
368368
data-toggle="tooltip" data-placement="right"

assessments/templates/scores_encoding_by_specific_criteria.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
</select>
6969
</div>
7070
<div class="col-md-2">
71-
<label>{% trans 'Offer' %}</label><br>
71+
<label>{% trans 'Training' %}</label><br>
7272
<select id="slt_program" name="program" class="form-control">
7373
<option value="">{% trans 'All'%}</option>
7474
{% for o in offer_list %}
@@ -100,7 +100,7 @@
100100
<thead>
101101
<tr>
102102
<th>{% trans 'Status' %}</th>
103-
<th>{% trans 'Offer' %}</th>
103+
<th>{% trans 'Training' %}</th>
104104
<th>{% trans 'Learning unit' %}</th>
105105
<th>{% trans 'Registration ID' %}</th>
106106
<th>{% trans 'Lastname' %}</th>

assessments/templates/scores_responsible/list.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ <h2>{% trans 'Scores responsibles' %} - {{ filter.academic_year }}</h2>
132132
"dataSrc": "object_list",
133133
"data": function(d) {
134134
let pageNumber = {{ page_obj.number }};
135-
return getDataAjaxTable(domTable, d, pageNumber);
135+
return getDataAjaxTable("search_form", domTable, d, pageNumber);
136136
},
137137
"traditional": true
138138
},

0 commit comments

Comments
 (0)