Skip to content

Commit 06afc78

Browse files
authored
Merge pull request #386 from DigitalCurationCentre/xsrust/bugfixes
Xsrust/bugfixes
2 parents 3994fc8 + c6ebcb1 commit 06afc78

File tree

7 files changed

+10
-10
lines changed

7 files changed

+10
-10
lines changed

app/views/annotations/_edit_annotation.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
<table class="dmp_details_table phase">
66
<tr>
7-
<td class="first_template"><%= _('Example of Answer')%></td>
7+
<td class="first_template"><%= _('example answer')%></td>
88
<td>
99
<ul>
1010
<li><%= f.text_area :text, rows: 5 %></li>

app/views/annotations/_show_annotation.html.erb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<table class="dmp_details_table phase">
33
<tr>
44
<td class="first_template">
5-
<%= _('Example of answer')%>
5+
<%= _('Example Answer')%>
66
</td>
77
<td><%= raw annotation.text %></td>
88
</tr>
@@ -11,5 +11,5 @@
1111

1212
<div class="move_2_right">
1313
<%= hidden_field_tag :question_id, question.id, class: "question_id" %>
14-
<%= link_to _('Edit Example of Answer'), '# ', class: "btn btn-primary edit_form_for_suggested_answer"%>
14+
<%= link_to _('Edit Example Answer'), '# ', class: "btn btn-primary edit_form_for_suggested_answer"%>
1515
</div>

app/views/guidances/_edit_guidance.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<td class="first_template"><%= _('Suggested answer/ Example')%></td>
88
<td>
99
<ul>
10-
<li><%= f.select :is_example, {_('Example of answer') => true, _('Suggested answer') => false} %></li>
10+
<li><%= f.select :is_example, {_('Example Answer') => true, _('Suggested answer') => false} %></li>
1111
<li><%= f.text_area :text, rows: 5 %></li>
1212
</ul>
1313
</td>

app/views/phases/_answer_form.html.erb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
<% if annotation.text.present? %> <!-- could be present but empty -->
3838
<div class="suggested-answer-div">
3939
<span class="suggested-answer-intro">
40-
<%="#{annotation.org.abbreviation} "%> <%=_('Example of answer')%>
40+
<%="#{annotation.org.abbreviation} "%> <%=_('example answer')%>
4141
</span>
4242

4343
<div class="suggested-answer-border">
@@ -132,7 +132,7 @@
132132
<% comments = answer.notes.all %>
133133
<%= hidden_field_tag :question_id, question_id, class: "question_id" %>
134134
<ul class="question_right_column_ul">
135-
<% annotations = question.annotations.where("type <> ?", Annotation.types[:guidance]) %>
135+
<% annotations = question.annotations.where(type: Annotation.types[:guidance]) %>
136136
<% if annotations.present? || question_guidances[question_id] %>
137137
<!-- add css to comment div-->
138138
<% css_style_comment_div = "display: none;"%>

app/views/questions/_preview_question.html.erb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
<% annotation = question.annotations.where(type: Annotation.types[:example_answer]).order(:created_at).first %>
6262
<div class="suggested-answer-div">
6363
<span class="suggested-answer-intro">
64-
<%= _('Example of answer')%>
64+
<%= _('example answer')%>
6565
</span>
6666
<div class="suggested-answer-border">
6767
<p class="suggested-answer">
@@ -80,7 +80,7 @@
8080
<% if !annotations.blank? %>
8181
<div class="suggested-answer-div">
8282
<span class="suggested-answer-intro">
83-
<%= _('Example of answer')%>
83+
<%= _('example answer')%>
8484
</span>
8585
<div class="suggested-answer-border">
8686
<p class="suggested-answer">

app/views/questions/_show_question.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
<% if example_answer.present? && example_answer.text.present? %>
6868
<tr>
6969
<td class="first_template">
70-
<%= _('Example of answer')%>
70+
<%= _('example answer')%>
7171
</td>
7272
<td><%= raw example_answer.text %></td>
7373
</tr>

app/views/templates/_edit_annotations.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ in the admin interface.
4444

4545
<!-- Suggested answer or Example-->
4646
<tr>
47-
<td class="first_template"><%= _('Example of Answer')%></td>
47+
<td class="first_template"><%= _('example answer')%></td>
4848
<td>
4949
<div class="div_left_icon">
5050
<% annotations = question.annotations.where(org_id: current_user.org_id).where(type: Annotation.types[:example_answer]).order(:created_at).first %>

0 commit comments

Comments
 (0)