From 70644e2739f5655bfb36d18e60ab936a7954a1a4 Mon Sep 17 00:00:00 2001 From: Harry Bomrah Date: Thu, 8 Jan 2015 19:00:32 +0800 Subject: [PATCH] fix for edit module and stuff --- app/views/admin/admin_modules/_index.html.erb | 10 +- app/views/admin/admin_modules/index.html.erb | 165 +++++++++++------- 2 files changed, 103 insertions(+), 72 deletions(-) diff --git a/app/views/admin/admin_modules/_index.html.erb b/app/views/admin/admin_modules/_index.html.erb index 72b1feb..b9f97d8 100644 --- a/app/views/admin/admin_modules/_index.html.erb +++ b/app/views/admin/admin_modules/_index.html.erb @@ -16,21 +16,21 @@ <% else %> <% @registered_modules.each do |rm| %> - <%= rm.name %> + <%= rm.name %> <% if rm.category.nil? %> - No category assigned. + No category assigned. <% else %> - <%= rm.category.title %> + <%= rm.category.title %> <% end %> <% user = User.find(rm.create_user_id) %> - <%= user.name rescue user.user_name %> + <%= user.name rescue user.user_name %> <% if rm.approved %> Install Uninstall Revoke Access Grant Access - Edit + Edit <% else %> diff --git a/app/views/admin/admin_modules/index.html.erb b/app/views/admin/admin_modules/index.html.erb index 758be5f..aa3ffef 100644 --- a/app/views/admin/admin_modules/index.html.erb +++ b/app/views/admin/admin_modules/index.html.erb @@ -15,6 +15,19 @@ +