Skip to content

Commit

Permalink
Merge pull request #398 from DigitalCurationCentre/vyruss/bugfixes
Browse files Browse the repository at this point in the history
Issues #271 #333 #402
  • Loading branch information
xsrust authored Jun 6, 2017
2 parents 5f16378 + 40eaffd commit a48d50b
Show file tree
Hide file tree
Showing 11 changed files with 63 additions and 16 deletions.
6 changes: 6 additions & 0 deletions app/models/phase.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@
# [+Created:+] 03/09/2014
# [+Copyright:+] Digital Curation Centre and University of California Curation Center
class Phase < ActiveRecord::Base

##
# Sort order: Number ASC
default_scope { order(number: :asc) }


# extend FriendlyId
##
# Associations
Expand Down
5 changes: 5 additions & 0 deletions app/models/question.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
class Question < ActiveRecord::Base

##
# Sort order: Number ASC
default_scope { order(number: :asc) }

##
# Associations
has_many :answers, :dependent => :destroy
Expand Down
8 changes: 8 additions & 0 deletions app/models/user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,14 @@ def self.from_omniauth(auth)
end
end

##
# Override devise_invitable email title
# --------------------------------------------------------------
def deliver_invitation(options = {})
super(options.merge(subject: _('A Data Management Plan in %{application_name} has been shared with you') % {application_name: Rails.configuration.branding[:application][:name]}))
end


# TODO: Remove this, its never called.
# this generates a reset password link for a given user
# which can then be sent to them with the appropriate host
Expand Down
4 changes: 2 additions & 2 deletions app/views/guidance_groups/admin_edit.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

</div>
<div class="div_right_icon_g">
<%= link_to(image_tag('help_button.png'), '#', class: 'guidance_group_title_popover', rel: "popover", 'data-html' => "true", 'data-content' => _("Add an appropriate name for your guidance group e.g. Glasgow guidance. This name will be used to tell the end user where the guidance has come from e.g. 'Glasgow Guidance on Metadata'")) %>
<%= link_to(image_tag('help_button.png'), '#', class: 'guidance_group_title_popover', rel: "popover", 'data-html' => "true", 'data-content' => _('Add an appropriate name for your guidance group. This name will be used to tell the end user where the guidance has come from. It will be appended to text identifying the theme e.g. "[guidance group name]: guidance on data sharing" so we suggest you just use the institution or department name.')) %>
</div>
</td>
</tr>
Expand Down Expand Up @@ -75,4 +75,4 @@
<br/>
<% end %>
</div>
</div>
</div>
2 changes: 1 addition & 1 deletion app/views/guidance_groups/admin_new.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<%= f.text_field :name, as: :string, class: "text_field" %>
</div>
<div class="div_right_icon_g">
<%= link_to( image_tag("help_button.png"), "#", class: 'guidance_group_title_popover', rel: "popover", 'data-html' => "true", 'data-content' => _("Add an appropriate name for your guidance group e.g. Glasgow guidance. This name will be used to tell the end user where the guidance has come from e.g. 'Glasgow Guidance on Metadata'"))%>
<%= link_to( image_tag("help_button.png"), "#", class: 'guidance_group_title_popover', rel: "popover", 'data-html' => "true", 'data-content' => _('Add an appropriate name for your guidance group. This name will be used to tell the end user where the guidance has come from. It will be appended to text identifying the theme e.g. "[guidance group name]: guidance on data sharing" so we suggest you just use the institution or department name.'))%>
</div>
</td>
</tr>
Expand Down
9 changes: 6 additions & 3 deletions config/locale/app.pot
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ msgid ""
msgstr ""
"Project-Id-Version: app 1.0.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-06-02 19:14+0100\n"
"PO-Revision-Date: 2017-06-02 19:14+0100\n"
"POT-Creation-Date: 2017-06-06 12:18+0100\n"
"PO-Revision-Date: 2017-06-06 12:18+0100\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
"Language: \n"
Expand Down Expand Up @@ -207,6 +207,9 @@ msgid ""
" <p>Email <a href='mailto:%{organisation_email}?Subject=%{application_name} inquiry' target='_top'>%{organisation_email}</a></p>"
msgstr ""

msgid "A Data Management Plan in %{application_name} has been shared with you"
msgstr ""

msgid "A colleague has invited you to contribute to their Data Management Plan at "
msgstr ""

Expand Down Expand Up @@ -243,7 +246,7 @@ msgstr ""
msgid "Actions"
msgstr ""

msgid "Add an appropriate name for your guidance group e.g. Glasgow guidance. This name will be used to tell the end user where the guidance has come from e.g. 'Glasgow Guidance on Metadata'"
msgid "Add an appropriate name for your guidance group. This name will be used to tell the end user where the guidance has come from. It will be appended to text identifying the theme e.g. \"[guidance group name]: guidance on data sharing\" so we suggest you just use the institution or department name."
msgstr ""

msgid "Add collaborator"
Expand Down
9 changes: 7 additions & 2 deletions config/locale/de/app.po
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,10 @@ msgid ""
" <p>Email <a href='mailto:%{organisation_email}?Subject=%{application_name} inquiry' target='_top'>%{organisation_email}</a></p>"
msgstr "DMPonline"

#, fuzzy
msgid "A Data Management Plan in %{application_name} has been shared with you"
msgstr "DMPonline"

#, fuzzy
msgid "A colleague has invited you to contribute to their Data Management Plan at "
msgstr "A colleague has invited you to contribute to their Data Management Plan at"
Expand Down Expand Up @@ -260,8 +264,9 @@ msgstr ""
msgid "Actions"
msgstr "Aktionen"

msgid "Add an appropriate name for your guidance group e.g. Glasgow guidance. This name will be used to tell the end user where the guidance has come from e.g. 'Glasgow Guidance on Metadata'"
msgstr "Geben Sie einen geeigneten Namen für Ihre Hilfestellungsgruppe ein, wie z.B. 'CAU Hilfestellungen'. Dieser Name soll den Nutzern vermitteln, woher die Hilfestellung kommt, z.B. 'CAU Hilfestellung zu Metadaten'"
#, fuzzy
msgid "Add an appropriate name for your guidance group. This name will be used to tell the end user where the guidance has come from. It will be appended to text identifying the theme e.g. \"[guidance group name]: guidance on data sharing\" so we suggest you just use the institution or department name."
msgstr "Hilfestellungsgruppe"

msgid "Add collaborator"
msgstr "Mitarbeitende(n) hinzufügen"
Expand Down
9 changes: 7 additions & 2 deletions config/locale/en_GB/app.po
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,10 @@ msgid ""
" <p>Email <a href='mailto:%{organisation_email}?Subject=%{application_name} inquiry' target='_top'>%{organisation_email}</a></p>"
msgstr "%{application_name}"

#, fuzzy
msgid "A Data Management Plan in %{application_name} has been shared with you"
msgstr "%{application_name}"

msgid "A colleague has invited you to contribute to their Data Management Plan at "
msgstr "A colleague has invited you to contribute to their Data Management Plan at "

Expand Down Expand Up @@ -252,8 +256,9 @@ msgstr "Access removed"
msgid "Actions"
msgstr "Actions"

msgid "Add an appropriate name for your guidance group e.g. Glasgow guidance. This name will be used to tell the end user where the guidance has come from e.g. 'Glasgow Guidance on Metadata'"
msgstr "Add an appropriate name for your guidance group e.g. Glasgow guidance. This name will be used to tell the end user where the guidance has come from e.g. 'Glasgow Guidance on Metadata'"
#, fuzzy
msgid "Add an appropriate name for your guidance group. This name will be used to tell the end user where the guidance has come from. It will be appended to text identifying the theme e.g. \"[guidance group name]: guidance on data sharing\" so we suggest you just use the institution or department name."
msgstr "guidance group"

msgid "Add collaborator"
msgstr "Add collaborator"
Expand Down
9 changes: 7 additions & 2 deletions config/locale/en_US/app.po
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,10 @@ msgid ""
" <p>Email <a href='mailto:%{organisation_email}?Subject=%{application_name} inquiry' target='_top'>%{organisation_email}</a></p>"
msgstr "%{application_name}"

#, fuzzy
msgid "A Data Management Plan in %{application_name} has been shared with you"
msgstr "%{application_name}"

msgid "A colleague has invited you to contribute to their Data Management Plan at "
msgstr "A colleague has invited you to contribute to their Data Management Plan at "

Expand Down Expand Up @@ -252,8 +256,9 @@ msgstr "Access removed"
msgid "Actions"
msgstr "Actions"

msgid "Add an appropriate name for your guidance group e.g. Glasgow guidance. This name will be used to tell the end user where the guidance has come from e.g. 'Glasgow Guidance on Metadata'"
msgstr "Add an appropriate name for your guidance group e.g. Glasgow guidance. This name will be used to tell the end user where the guidance has come from e.g. 'Glasgow Guidance on Metadata'"
#, fuzzy
msgid "Add an appropriate name for your guidance group. This name will be used to tell the end user where the guidance has come from. It will be appended to text identifying the theme e.g. \"[guidance group name]: guidance on data sharing\" so we suggest you just use the institution or department name."
msgstr "guidance group"

msgid "Add collaborator"
msgstr "Add collaborator"
Expand Down
9 changes: 7 additions & 2 deletions config/locale/es/app.po
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,10 @@ msgid ""
" <p>Email <a href='mailto:%{organisation_email}?Subject=%{application_name} inquiry' target='_top'>%{organisation_email}</a></p>"
msgstr "DMPonline"

#, fuzzy
msgid "A Data Management Plan in %{application_name} has been shared with you"
msgstr "DMPonline"

msgid "A colleague has invited you to contribute to their Data Management Plan at "
msgstr ""

Expand Down Expand Up @@ -256,8 +260,9 @@ msgstr ""
msgid "Actions"
msgstr "Acciones"

msgid "Add an appropriate name for your guidance group e.g. Glasgow guidance. This name will be used to tell the end user where the guidance has come from e.g. 'Glasgow Guidance on Metadata'"
msgstr "Añada un nombre adecuado para el grupo de su guía (Ej: Guía de Glasgow). Este nombre se usará para indicar a los usuarios finales la procedencia de la guía (Ej: 'Guía de metadatos de Glasgow')"
#, fuzzy
msgid "Add an appropriate name for your guidance group. This name will be used to tell the end user where the guidance has come from. It will be appended to text identifying the theme e.g. \"[guidance group name]: guidance on data sharing\" so we suggest you just use the institution or department name."
msgstr "Grupo de orientación"

msgid "Add collaborator"
msgstr "Añadir colaborador"
Expand Down
9 changes: 7 additions & 2 deletions config/locale/fr/app.po
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,10 @@ msgid ""
" <p>Email <a href='mailto:%{organisation_email}?Subject=%{application_name} inquiry' target='_top'>%{organisation_email}</a></p>"
msgstr "DMPonline"

#, fuzzy
msgid "A Data Management Plan in %{application_name} has been shared with you"
msgstr "DMPonline"

msgid "A colleague has invited you to contribute to their Data Management Plan at "
msgstr ""

Expand Down Expand Up @@ -255,8 +259,9 @@ msgstr ""
msgid "Actions"
msgstr "Actions"

msgid "Add an appropriate name for your guidance group e.g. Glasgow guidance. This name will be used to tell the end user where the guidance has come from e.g. 'Glasgow Guidance on Metadata'"
msgstr "Ajoutez un nom adéquat à votre groupe de conseils, par ex. : Conseils de Glasgow. Ce nom sera utilié pour indiquer à lutilisateur final lorigine des conseils, par ex. : Glasgow Guidance on Metadata"
#, fuzzy
msgid "Add an appropriate name for your guidance group. This name will be used to tell the end user where the guidance has come from. It will be appended to text identifying the theme e.g. \"[guidance group name]: guidance on data sharing\" so we suggest you just use the institution or department name."
msgstr "Groupe de conseils"

msgid "Add collaborator"
msgstr "Ajouter le collaborateur"
Expand Down

0 comments on commit a48d50b

Please sign in to comment.