Skip to content
This repository has been archived by the owner on Jul 19, 2021. It is now read-only.

Commit

Permalink
Merge pull request #184 from Marchino/master
Browse files Browse the repository at this point in the history
Adds data hooks for plugins to inject contents
  • Loading branch information
a-barbieri authored Apr 5, 2018
2 parents ea285c0 + 6828030 commit dd2082c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
14 changes: 7 additions & 7 deletions app/views/layouts/binda/_sidebar.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
%>
<% unless is_devise_controller %>
<div id="main-sidebar">
<div data-hook="main-sidebar" id="main-sidebar">
<ul class="main-sidebar--nav">
<li class= "main-sidebar--brand">
<li data-hook="main-sidebar-head" class= "main-sidebar--brand">
<a href="/" target="_blank">
<p class="main-sidebar--website-name"><%= get_website_name %></p>
<p class= "main-sidebar--view-website">
Expand Down Expand Up @@ -41,25 +41,25 @@
<% end %>
<% end %>
<% if current_user.is_superadmin %>
<li>
<li data-hook="main-sidebar-structures">
<a href="<%= structures_path %>">
<i class="fas fa-sitemap"></i> Structures
</a>
</li>
<% end %>
<li>
<li data-hook="main-sidebar-manage-users">
<a href="<%= manage_users_path %>">
<i class="fas fa-user"></i> Users
</a>
</li>
<li>
<li data-hook="main-sidebar-log-out">
<a href="<%= destroy_user_session_path %>" data-method="delete">
<i class="fas fa-sign-out-alt"></i> Log out
</a>
</li>
</ul>
<div class="main-sidebar--footer">
<div data-hook="main-sidebar-foot" class="main-sidebar--footer">
<small><a href="https://github.com/lacolonia/binda" target="_blank"><%= t('binda.login_credit', { arg1: Binda::VERSION.dup}) %></a></small>
</div>
</div>
<% end %>
<% end %>
4 changes: 2 additions & 2 deletions spec/dummy/db/seeds.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
puts "Setting up maintenance mode"

# Use radio field_type untill truefalse isn't available
maintenance_mode = field_settings.create!( name: 'Maintenance Mode', field_type: 'radio', allow_null: false)
maintenance_mode = field_settings.create!( name: 'Maintenance Mode', field_type: 'radio', allow_null: false, slug: 'maintenance-mode')
disabled = maintenance_mode.choices.create!( label: 'disabled', value: 'false' )
maintenance_mode.choices.create!( label: 'active', value: 'true' )
@dashboard.reload
Expand Down Expand Up @@ -41,4 +41,4 @@
subtitle_setting = page_structure.field_groups.first.field_settings.create!( name: 'subtitle', slug: 'page-subtitle', field_type: 'string' )
description_setting = page_structure.field_groups.first.field_settings.create!( name: 'description', slug: 'page-description', field_type: 'text' )
credits_setting = page_structure.field_groups.first.field_settings.create!( name: 'credits', slug: 'page-credits', field_type: 'repeater' )
credits_name_setting = credits_setting.children.create!( name: 'name', slug: 'page-credits-name', field_type: 'string', field_group_id: page_structure.field_groups.first.id )
credits_name_setting = credits_setting.children.create!( name: 'name', slug: 'page-credits-name', field_type: 'string', field_group_id: page_structure.field_groups.first.id )

0 comments on commit dd2082c

Please sign in to comment.