diff --git a/app/views/home/_welcome.html.erb b/app/views/home/_welcome.html.erb new file mode 100644 index 0000000..6348ccd --- /dev/null +++ b/app/views/home/_welcome.html.erb @@ -0,0 +1,12 @@ +
+

<%= _('Welcome.')%>

+

+ <%= raw _('

%{application_name} has been developed by the %{organisation_name} to help you write data management plans.

') % {:application_name => Rails.configuration.branding[:application][:name], :organisation_name => Rails.configuration.branding[:organisation][:name]} %> + + +

+
diff --git a/app/views/home/index.html.erb b/app/views/home/index.html.erb index 4a19104..b8cda22 100644 --- a/app/views/home/index.html.erb +++ b/app/views/home/index.html.erb @@ -1,31 +1,9 @@
-

<%= _('Welcome.')%>

+ <%= render partial: 'home/welcome' %>
-
-
-
- <%= raw _('

%{application_name} has been jointly developed by the %{organisation_name} to help you write data management plans.

') % {:application_name => Rails.configuration.branding[:application][:name], :organisation_name => Rails.configuration.branding[:organisation][:name]} %> -
-

<%= _('Screencast on how to use %{application_name}') % {:application_name => Rails.configuration.branding[:application][:name]} %>

-
- -
-
-
<%= render partial: 'shared/access_controls' %>
-
\ No newline at end of file + diff --git a/config/branding_example.yml b/config/branding_example.yml index a6a9683..882f6fe 100644 --- a/config/branding_example.yml +++ b/config/branding_example.yml @@ -9,6 +9,22 @@ copywrite_name: 'Curation Centre (CC)' email: 'tester@cc_curation_centre.org' helpdesk_email: 'someone@somewhere.com' + welcome_links: + - link1: + title: 'Digital Curation Centre' + url: 'https://dcc.ac.uk/' + - link2: + title: 'UC3: University of California Curation Center' + url: 'https://www.cdlib.org/uc3/' + - link3: + title: 'UK funder requirements for Data Management Plans' + url: 'http://www.dcc.ac.uk/resources/data-management-plans/funders-requirements' + - link4: + title: 'US funder requirements for Data Management Plans' + url: 'https://dmptool.org/guidance' + - link5: + title: 'DCC Checklist for a Data Management Plan' + url: 'https://dmponline.dcc.ac.uk/files/DMP_Checklist_2013.pdf' # Warning: this value will be used to override the URl of the application's built-in contact form. It will # replace the link in all email communications as well as the contact link in the page footer! @@ -38,6 +54,7 @@ template_unpublished: true feedback_requested: true + development: <<: *defaults