added progress
This commit is contained in:
parent
9a812b3c3f
commit
ce3230f21a
|
@ -0,0 +1 @@
|
||||||
|
// site progress javascript is here
|
|
@ -0,0 +1,3 @@
|
||||||
|
body {
|
||||||
|
background-color: red;
|
||||||
|
}
|
|
@ -24,6 +24,9 @@ class Admin::RegisteredSitesController < OrbitAdminController
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def progress
|
||||||
|
end
|
||||||
|
|
||||||
def update
|
def update
|
||||||
uid = params[:id].split('-').last
|
uid = params[:id].split('-').last
|
||||||
registered_site = RegisteredSite.find_by(:uid => uid)
|
registered_site = RegisteredSite.find_by(:uid => uid)
|
||||||
|
|
|
@ -17,6 +17,7 @@
|
||||||
<% if can_edit_or_delete?(site) %>
|
<% if can_edit_or_delete?(site) %>
|
||||||
<li><a href="/admin/registered_sites/<%= site.id.to_s %>/edit"><%= t(:edit) %></a></li>
|
<li><a href="/admin/registered_sites/<%= site.id.to_s %>/edit"><%= t(:edit) %></a></li>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
<li><a href="/admin/registered_sites/<%= site.id.to_s %>/progress"><%= t("registered_sites.progress") %></a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
|
|
|
@ -0,0 +1,8 @@
|
||||||
|
<% content_for :page_specific_css do %>
|
||||||
|
<%= stylesheet_link_tag "registered_site_progress" %>
|
||||||
|
<% end %>
|
||||||
|
<% content_for :page_specific_javascript do %>
|
||||||
|
<%= javascript_include_tag "registered_site_progress" %>
|
||||||
|
<% end %>
|
||||||
|
|
||||||
|
Please replace this with actual content.
|
|
@ -11,4 +11,5 @@ en:
|
||||||
site_permission_revoked: Site permission revoked.
|
site_permission_revoked: Site permission revoked.
|
||||||
site_active: Active
|
site_active: Active
|
||||||
site_inactive: Inactive
|
site_inactive: Inactive
|
||||||
|
progress: Progress
|
||||||
|
|
||||||
|
|
|
@ -10,3 +10,4 @@ zh_tw:
|
||||||
email_not_confirmed: Email not confirmed.
|
email_not_confirmed: Email not confirmed.
|
||||||
site_permission_revoked: Site permission revoked.
|
site_permission_revoked: Site permission revoked.
|
||||||
site_active: Site Active
|
site_active: Site Active
|
||||||
|
progress: Progress
|
||||||
|
|
|
@ -6,7 +6,11 @@ Rails.application.routes.draw do
|
||||||
post "/xhr/site/re_register_url", to: 'admin/register_api#re_register_url'
|
post "/xhr/site/re_register_url", to: 'admin/register_api#re_register_url'
|
||||||
namespace :admin do
|
namespace :admin do
|
||||||
get "/registered_site/change_access/:uid" => "registered_sites#change_access_status"
|
get "/registered_site/change_access/:uid" => "registered_sites#change_access_status"
|
||||||
resources :registered_sites
|
resources :registered_sites do
|
||||||
|
member do
|
||||||
|
get "progress"
|
||||||
|
end
|
||||||
|
end
|
||||||
resources :customization_logs do
|
resources :customization_logs do
|
||||||
member do
|
member do
|
||||||
get "get_log" => "customization_logs#get_log"
|
get "get_log" => "customization_logs#get_log"
|
||||||
|
|
Loading…
Reference in New Issue