diff --git a/app/assets/javascripts/admin/journal_paper_intros.js b/app/assets/javascripts/admin/journal_paper_intros.js new file mode 100644 index 0000000..dee720f --- /dev/null +++ b/app/assets/javascripts/admin/journal_paper_intros.js @@ -0,0 +1,2 @@ +// Place all the behaviors and hooks related to the matching controller here. +// All this logic will automatically be available in application.js. diff --git a/app/assets/stylesheets/admin/journal_paper_intros.css b/app/assets/stylesheets/admin/journal_paper_intros.css new file mode 100644 index 0000000..afad32d --- /dev/null +++ b/app/assets/stylesheets/admin/journal_paper_intros.css @@ -0,0 +1,4 @@ +/* + Place all the styles related to the matching controller here. + They will automatically be included in application.css. +*/ diff --git a/app/controllers/admin/journal_paper_intros_controller.rb b/app/controllers/admin/journal_paper_intros_controller.rb new file mode 100644 index 0000000..f2efd52 --- /dev/null +++ b/app/controllers/admin/journal_paper_intros_controller.rb @@ -0,0 +1,8 @@ +class Admin::JournalPaperIntrosController < Admin::PersonalPluginIntrosController + def initialize + super + @app_type = 'journal_paper_intro' + @app_type_name = 'journal_paper' + @reback_name = 'JournalPaper' + end +end diff --git a/app/helpers/admin/journal_paper_intros_helper.rb b/app/helpers/admin/journal_paper_intros_helper.rb new file mode 100644 index 0000000..3dc03bf --- /dev/null +++ b/app/helpers/admin/journal_paper_intros_helper.rb @@ -0,0 +1,2 @@ +module Admin::JournalPaperIntrosHelper +end diff --git a/app/models/journal_paper_intro.rb b/app/models/journal_paper_intro.rb new file mode 100644 index 0000000..570724e --- /dev/null +++ b/app/models/journal_paper_intro.rb @@ -0,0 +1,3 @@ +class JournalPaperIntro < PersonalPluginIntro + +end diff --git a/app/views/admin/journal_papers/index.html.erb b/app/views/admin/journal_papers/index.html.erb index aab137b..5e43349 100644 --- a/app/views/admin/journal_papers/index.html.erb +++ b/app/views/admin/journal_papers/index.html.erb @@ -12,7 +12,7 @@ <%= t('personal_journal.year') %> - <%= t('module_name.personal_journal') %> + <%= t('module_name.journal_paper') %> <%= t('personal_journal.authors') %> diff --git a/app/views/plugin/journal_paper/_profile.html.erb b/app/views/plugin/journal_paper/_profile.html.erb index c5a492e..0ccd75e 100644 --- a/app/views/plugin/journal_paper/_profile.html.erb +++ b/app/views/plugin/journal_paper/_profile.html.erb @@ -47,7 +47,7 @@ <% end -%> <%= t('personal_journal.year') %> - <%= t('module_name.personal_journal') %> + <%= t('module_name.journal_paper') %> <% if not @user%> <%= t('personal_journal.authors') %> <% end %> @@ -85,7 +85,10 @@ <% if current_user.is_admin? %>
+
+ <%= link_to content_tag(:i, nil, :class => 'icon-plus') + t('personal_plugins.edit_brief_intro'),admin_journal_paper_intros_path(member_profile_id: @member.id), :class => 'btn btn-primary' %> + <%= link_to content_tag(:i, nil, :class => 'icon-plus') + t('announcement.add_new'), new_admin_journal_paper_path(member_profile_id: @member.id), :class => 'btn btn-primary' %>