Skip to content
Snippets Groups Projects
Commit 8080f129 authored by Mauricio Giacomini Girardello's avatar Mauricio Giacomini Girardello
Browse files

just organize the routes code

parent fe1219a5
No related branches found
No related tags found
No related merge requests found
<nav class="navigation navbar-default "><br/>
<div class="container-fluid">
<div class="navbar-right">
<%= link_to 'http://www.fnde.gov.br/' do %>
<%= image_tag 'icons/collection-download.png', style: 'width: auto; height: 40px; margin-right: 20px;' %><span style="margin-right: 30px;"><button class="but but-shadow but-rc">Editar Coleção</button></span>
<% end %>
</div>
<div class="navbar-header">
<%= image_tag image_path("icons/collection.png"), class: "logo-image",size: "90x66" %>
<ul class="nav navbar-nav navbar-right"><h1>&nbsp;<b>Coleção 1</b></h1> <br/>
&nbsp; <%= image_tag image_path("icons/square.png"), class: "logo-image",size: "20x20" %> 200 itens</ul>
</div>
</div>
<br/></nav>
<nav class="navigation navbar-inverse ">
<div class="container-fluid">
<a class="navbar-brand" href="#"><font color="FFFFFF">x arquivo(s) selecionado(s)</font></a>
<ul class="nav navbar-nav navbar-right">
<li class="set-align"><a href="#"><span class="left-edge"><%= image_tag image_path("icons/Download_01.png"), class: "logo-image",size: "35x35" %></span><font color="FFFFFF"> Salvar no <br>computador</font></br></a></li>
<li class="set-align"><a href="#"><span class="left-edge"><%= image_tag image_path("icons/Copiar_Seleção.png"), class: "logo-image",size: "35x35" %></span><font color="FFFFFF"> Copiar <br>para</font></br></a></li>
<li class="set-align"><a href="#"><span class="left-edge"><%= image_tag image_path("icons/Mover_Seleção.png"), class: "logo-image",size: "35x35" %></span><font color="FFFFFF"> Mover <br>para</font></br></a></li>
<li class="set-align"><a href="#"><span class="left-edge"><%= image_tag image_path("icons/Remover_da_Coleção_Seleção.png"), class: "logo-image",size: "35x35" %></span><font color="FFFFFF"> Remover da <br>coleção</font></br></a></li>
</ul>
</div>
</nav>
<div class="row mainpage-subjects">
<br/>
<div class="col-md-4">
<div class="thumb">
<input type="checkbox" class="chk " checked="checked" name="" value="0" />
<%= image_tag image_path('learning-object-preview.png'), class: "logo" %>Obj1
</div><br/>
<div class="thumb">
<input type="checkbox" class="chk " checked="checked" name="" value="0" />
<%= image_tag image_path('learning-object-preview.png'), class: "logo" %>Obj4
</div><br/>
<div class="thumb">
<input type="checkbox" class="chk " checked="checked" name="" value="0" />
<%= image_tag image_path('learning-object-preview.png'), class: "logo" %>Obj7
</div>
</div>
<div class="col-md-4">
<div class="thumb">
<input type="checkbox" class="chk " checked="checked" name="" value="0" />
<%= image_tag image_path('learning-object-preview.png'), class: "logo" %>Obj2
</div><br/>
<div class="thumb">
<input type="checkbox" class="chk " checked="checked" name="" value="0" />
<%= image_tag image_path('learning-object-preview.png'), class: "logo" %>Obj5
</div><br/>
<div class="thumb">
<input type="checkbox" class="chk " checked="checked" name="" value="0" />
<%= image_tag image_path('learning-object-preview.png'), class: "logo" %>Obj8
</div>
</div>
<div class="col-md-4">
<div class="thumb">
<input type="checkbox" class="chk " checked="checked" name="" value="0" />
<%= image_tag image_path('learning-object-preview.png'), class: "logo" %>Obj3
</div><br/>
<div class="thumb">
<input type="checkbox" class="chk " checked="checked" name="" value="0" />
<%= image_tag image_path('learning-object-preview.png'), class: "logo" %>Obj6
</div><br/>
<div class="thumb">
<input type="checkbox" class="chk " checked="checked" name="" value="0" />
<%= image_tag image_path('learning-object-preview.png'), class: "logo" %>Obj9
</div>
</div>
</div>
...@@ -9,9 +9,10 @@ Rails.application.routes.draw do ...@@ -9,9 +9,10 @@ Rails.application.routes.draw do
namespace :management do namespace :management do
root 'welcome#index' root 'welcome#index'
resource :complaints resource :complaints
resources :institutions resources :institutions
resources :highlights
resources :carousels
resources :statistics do resources :statistics do
collection do collection do
...@@ -31,13 +32,13 @@ Rails.application.routes.draw do ...@@ -31,13 +32,13 @@ Rails.application.routes.draw do
get :admins get :admins
end end
end end
resources :highlights
resources :carousels
mount Sidekiq::Web, at: '/sidekiq' mount Sidekiq::Web, at: '/sidekiq'
end end
root 'welcome#index' root 'welcome#index'
resources :subjects, only: [:index, :show]
resources :institutions
resources :learning_objects do resources :learning_objects do
member do member do
...@@ -47,7 +48,6 @@ Rails.application.routes.draw do ...@@ -47,7 +48,6 @@ Rails.application.routes.draw do
end end
end end
resources :institutions
resources :collections do resources :collections do
member do member do
# add a learning object for some collection # add a learning object for some collection
...@@ -58,9 +58,6 @@ Rails.application.routes.draw do ...@@ -58,9 +58,6 @@ Rails.application.routes.draw do
end end
end end
resources :subjects, only: [:index, :show]
#resources :complaints, only: [:create, :destroy]
resources :users, only: [:show] do resources :users, only: [:show] do
collection do collection do
get :me get :me
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment