From 7da4d294d93a246e1d3cf6a18d159587b1c79226 Mon Sep 17 00:00:00 2001 From: Lee Lawlor Date: Tue, 18 Feb 2014 12:47:54 -0500 Subject: [PATCH] fix plugins actions; fix public channels CSS --- app/views/channels/_list.html.erb | 2 +- app/views/plugins/edit.html.erb | 2 +- app/views/plugins/index.html.erb | 8 ++++++-- config/locales/en.yml | 3 ++- 4 files changed, 10 insertions(+), 5 deletions(-) diff --git a/app/views/channels/_list.html.erb b/app/views/channels/_list.html.erb index e9d94da..f190fba 100644 --- a/app/views/channels/_list.html.erb +++ b/app/views/channels/_list.html.erb @@ -1,4 +1,4 @@ -
+
<% @channels.each do |channel| %> <% channel.ranking = channel.calc_ranking if channel.ranking.blank? %> diff --git a/app/views/plugins/edit.html.erb b/app/views/plugins/edit.html.erb index a3fd2f9..a08db2b 100644 --- a/app/views/plugins/edit.html.erb +++ b/app/views/plugins/edit.html.erb @@ -43,7 +43,7 @@
-

<%= c.submit t(:plugin_edit), :class => 'btn btn-primary' %>

+

<%= c.submit t(:plugin_save), :class => 'btn btn-primary' %>

<% end %> diff --git a/app/views/plugins/index.html.erb b/app/views/plugins/index.html.erb index e51e6ba..ae8a6cc 100644 --- a/app/views/plugins/index.html.erb +++ b/app/views/plugins/index.html.erb @@ -12,8 +12,12 @@ <% @plugins.each do |p| %> - <%= link_to p.name, plugin_path(p.id) %> - <%= link_to t(:edit), edit_plugin_path(p.id) %> + <%= p.name %> + + <%= link_to t(:view).downcase, plugin_path(p.id), :target => '_blank' %> +   + <%= link_to t(:edit).downcase, edit_plugin_path(p.id) %> + <% end %> diff --git a/config/locales/en.yml b/config/locales/en.yml index 4e040dd..dddbabd 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -192,11 +192,11 @@ en: plugin_default_name: "Plugin" plugin_delete: "Delete Plugin" plugin_delete_message: "Want to delete this Plugin?" - plugin_edit: "Save Data" plugin_html: "HTML" plugin_js: "JavaScript" plugin_name: "Name" plugin_permission: "You don't have permission to access this plugin!" + plugin_save: "Save Plugin" plugins: "Plugins" plugin_private_flag: "Private?" profile_bio: "Bio" @@ -401,6 +401,7 @@ en: user_public_channels: "Public channels for" userid: "User ID" video_id: "Video ID" + view: "view" vimeo: "Vimeo" watch_channel: "Watch this channel" watched_channels: "Watched Channels"