From 2d0d234d286f97285e3317b7aadc918dbdafe303 Mon Sep 17 00:00:00 2001 From: Leandro Nunes dos Santos Date: Wed, 20 Aug 2014 01:40:14 -0300 Subject: [PATCH] adding new html.erb files --- plugins/notification/views/notification_plugin_admin/index.html.erb | 20 ++++++++++++++++++++ plugins/notification/views/notification_plugin_profile/_event.html.erb | 9 +++++++++ plugins/notification/views/notification_plugin_profile/lobby_notes.html.erb | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 83 insertions(+), 0 deletions(-) create mode 100644 plugins/notification/views/notification_plugin_admin/index.html.erb create mode 100644 plugins/notification/views/notification_plugin_profile/_event.html.erb create mode 100644 plugins/notification/views/notification_plugin_profile/lobby_notes.html.erb diff --git a/plugins/notification/views/notification_plugin_admin/index.html.erb b/plugins/notification/views/notification_plugin_admin/index.html.erb new file mode 100644 index 0000000..49124dd --- /dev/null +++ b/plugins/notification/views/notification_plugin_admin/index.html.erb @@ -0,0 +1,20 @@ +

<%= _('Notification settings')%>

+ +<% form_for(:settings) do |f| %> + +
+
+ <%= labelled_form_field _('Noitification Categories'), f.text_field(:categories) %> + <%= button_to_remote_without_text(:add, _('Add New Category'), + :update => 'notification-config-fields', + :loading => '$("notification-config-fields").addClassName("loading")', + :complete => '$("notification-config-fields").removeClassName("loading")', + :url => { :action => 'create'}) + %> + + + <% button_bar do %> + <%= submit_button(:save, _('Save'), :cancel => {:action => 'create'}) %> + <% end %> +<% end %> + diff --git a/plugins/notification/views/notification_plugin_profile/_event.html.erb b/plugins/notification/views/notification_plugin_profile/_event.html.erb new file mode 100644 index 0000000..c54baef --- /dev/null +++ b/plugins/notification/views/notification_plugin_profile/_event.html.erb @@ -0,0 +1,9 @@ +
  • +
    <%= event.title %>
    + + <%= _("%{author} on %{date}") % {:author => event.author_name, :date => show_time(event.created_at) } %> + +
    + <%= event.body %> +
    +
  • diff --git a/plugins/notification/views/notification_plugin_profile/lobby_notes.html.erb b/plugins/notification/views/notification_plugin_profile/lobby_notes.html.erb new file mode 100644 index 0000000..8e5a1f2 --- /dev/null +++ b/plugins/notification/views/notification_plugin_profile/lobby_notes.html.erb @@ -0,0 +1,54 @@ +<% extend NotificationPlugin::Helpers::ViewerHelper %> + +<%= lobby_notes_plugin_stylesheet %> + + + +
    + +
    + <%= image_tag profile.profile_custom_image(:thumb) %> +

    + <%= @profile.name %> +

    +

    <%= _("You have %s notifications (%s)") % [ @events.count, show_date(@date)] %>

    +
    + <%= +#link_to _('Before'), {:action => 'lobby_notes'} +%> +
    +
    + + + +
    -- libgit2 0.21.2