the_role_management_panel 3.5 → 3.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0d2d9df7dc31de6ae3e29c6a94ba400e64f6a3b5
4
- data.tar.gz: a9e7dc76f21f05f6c0202f57f37f2d35f9064845
3
+ metadata.gz: 7fe26ce9d4e35b9f005adfa51659602d90040ef1
4
+ data.tar.gz: b60df00838bfa38fffeedbc61d17216bb0532ae0
5
5
  SHA512:
6
- metadata.gz: 3ccf9a33dd06dfa7b5920a544c11dea0088283a1c6ea1a5f6d9ad17ded9cf834b9169880d38989d84794013780644a528c95a71bc3370436a2aa99905f6d9696
7
- data.tar.gz: 1e0c53a7968a159ef3d89ef7b87d76695892d801fdd3fcffcf34e48851120e6a4f865cb48422970f3a443bd6a8ab0add7394df3ee41d443d9b810695bd0d794b
6
+ metadata.gz: 22ff2756e70f69580cf30671fe8171da4dc1b4b2f1b917213a0305ae637269f86eade3c0a6e70971545076b7288bf2c7d7047bb37cf70bfa546244a9eba8a25e
7
+ data.tar.gz: 4eae2cc755d989621483c39a9aff3de4fd18e393f90de786fd13c84b6cefeb316a79d4426d4f82a57bba709cead2fcf01cbec054decbe4ac62c663a8eecac48d
data/README.md CHANGED
@@ -12,7 +12,7 @@
12
12
  </p>
13
13
 
14
14
  <p align="center" class='center' style="text-align:center">
15
- <b>Semantic. Flexible. Lightweigh</b>
15
+ <b>Semantic. Flexible. Lightweight.</b>
16
16
  </p>
17
17
 
18
18
  <div align="center" class='center' style="text-align:center">
@@ -2,12 +2,12 @@ class Admin::RoleSectionsController < ApplicationController
2
2
  include TheRole::Controller
3
3
  layout TheRole.config.layout.to_s
4
4
 
5
- before_filter :login_required
6
- before_filter :role_required
5
+ before_action :login_required
6
+ before_action :role_required
7
7
 
8
- before_filter :section_rule_names, only: [:rule_on, :rule_off, :destroy_rule]
9
- before_filter :role_find, only: [:create, :create_rule, :rule_on, :rule_off, :destroy, :destroy_rule]
10
- before_filter :owner_required, only: [:create, :create_rule, :rule_on, :rule_off, :destroy, :destroy_rule]
8
+ before_action :section_rule_names, only: [:rule_on, :rule_off, :destroy_rule]
9
+ before_action :role_find, only: [:create, :create_rule, :rule_on, :rule_off, :destroy, :destroy_rule]
10
+ before_action :owner_required, only: [:create, :create_rule, :rule_on, :rule_off, :destroy, :destroy_rule]
11
11
 
12
12
  def create
13
13
  if @role.create_section params[:section_name]
@@ -2,11 +2,11 @@ class Admin::RolesController < ApplicationController
2
2
  include TheRole::Controller
3
3
  layout TheRole.config.layout.to_s
4
4
 
5
- before_filter :login_required
6
- before_filter :role_required
5
+ before_action :login_required
6
+ before_action :role_required
7
7
 
8
- before_filter :role_find, only: [:edit, :update, :destroy, :change, :role_export]
9
- before_filter :owner_required, only: [:edit, :update, :destroy, :change]
8
+ before_action :role_find, only: [:edit, :update, :destroy, :change, :role_export]
9
+ before_action :owner_required, only: [:edit, :update, :destroy, :change]
10
10
 
11
11
  def index
12
12
  @roles = Role.order('created_at ASC')
@@ -1,98 +1,105 @@
1
- - t_scope = [ :the_role_gui, :roles, :role ]
2
-
3
- - content_for :role_update_btn_set do
4
- .btn-group
5
- %a.btn.btn-warning
6
- %i.icon-repeat.glyphicon.glyphicon-repeat
7
- %a.btn.btn-success
8
- %i.icon-ok.glyphicon.glyphicon-ok
9
-
10
- - content_for :role_main do
11
- - hidden = 'visibility:hidden'
12
- .panel.panel-primary
13
- .panel-heading
14
- = t(:role_info, scope: t_scope)
15
- = link_to t(:role_export, scope: t_scope), role_export_admin_role_path(role), class: "btn btn-xs btn-warning pull-right"
16
- .panel-body
17
- = form_for(role, url: change_admin_role_path(role), html: { class: "form-inline" } ) do |f|
18
- .row
19
- .col-md-12
20
- %h3.holder{ style: 'margin: 3px' }
21
- = t(:role_name, scope: t_scope) + ':'
22
- %span.a= role.name
23
- %span.b{ style: hidden }
24
- .form-group= f.text_field :name, class: "form-control"
25
- = yield(:role_update_btn_set)
26
-
27
- %h5.holder{ style: 'margin: 3px' }
28
- = t(:title, scope: t_scope) + ':'
29
- %span.a= role.title
30
- %span.b{ style: hidden }
31
- .form-group= f.text_field :title, class: "form-control"
32
- = yield(:role_update_btn_set)
33
-
34
- %h5.holder{ style: 'margin: 3px' }
35
- = t(:role_description, scope: t_scope) + ':'
36
- %span.a= role.description
37
- %span.b{ style: hidden }
38
- .form-group= f.text_field :description, class: "form-control"
39
- = yield(:role_update_btn_set)
40
-
41
- .panel.panel-primary
42
- .panel-heading
43
- = t(:role_rules, scope: t_scope)
44
- .panel-body
45
- - role.to_hash.each_pair do |section, rules|
46
- .panel.panel-info
47
- .panel-heading
48
- .row
49
- .col-md-9
50
- %h5= section
51
- .col-md-3
52
- .delete
53
- .btn-group
54
- = button_to t(:delete_section, scope: t_scope), admin_role_section_path(role, section), method: :delete, class: 'btn btn-danger', data: { confirm: t(:section_delete_confirm, scope: t_scope) }
55
-
56
- .panel-body
57
- .rules
58
- - rules.each_pair do |rule, value|
59
- .row
60
- .col-md-9
61
- %h4
62
- &rarr;
63
- = rule
64
- .col-md-3
65
- .controls
66
- .btn-group
67
- - klass = value ? :success : :info
68
- - state = value ? t(:enable, scope: t_scope) : t(:disable, scope: t_scope)
69
- %button{ class: "btn btn-#{klass}" }= state
70
- %button{ class: "btn btn-#{klass} dropdown-toggle", 'data-toggle' => :dropdown }
71
- %span.caret
72
- %ul.dropdown-menu
73
- %li.success= link_to t(:enable, scope: t_scope), rule_on_admin_role_section_path(role, section, :name => rule), :method => :put
74
- %li.info= link_to t(:disable, scope: t_scope), rule_off_admin_role_section_path(role, section, :name => rule), :method => :put
75
- %li.divider
76
- %li.error= link_to t(:delete_rule, scope: t_scope), destroy_rule_admin_role_section_path(role, section, :name => rule), method: :delete, data: { confirm: t(:rule_delete_confirm, scope: t_scope) }
77
-
78
- .panel.panel-success
79
- .panel-heading
80
- = t(:create_section, scope: t_scope)
81
- .panel-body
82
- = form_tag admin_role_sections_path(role), class: "form-inline"do |f|
83
- .form-group
84
- = text_field_tag :section_name, '', class: "form-control", placeholder: t(:new_section_placeholder, scope: t_scope)
85
- = submit_tag t(:create_section, scope: t_scope), class: "btn btn-success"
86
-
87
- .panel.panel-success
88
- .panel-heading
89
- = t(:create_rule, scope: t_scope)
90
- .panel-body
91
- = form_tag create_rule_admin_role_sections_path(role), role: :form, class: "form-inline" do |f|
92
- .form-group
93
- %select.form-control{ name: :section_name }
94
- - role.to_hash.each_pair do |section, rules|
95
- %option{ value: section }= section
96
- .form-group
97
- = text_field_tag :rule_name, '', class: "form-control", placeholder: t(:new_rule_placeholder, scope: t_scope)
98
- = submit_tag t(:create_rule, scope: t_scope), class: "btn btn-success"
1
+ - t_scope = [ :the_role_gui, :roles, :role ]
2
+
3
+ - content_for :role_update_btn_set do
4
+ .btn-group
5
+ a.btn.btn-warning
6
+ i.icon-repeat.glyphicon.glyphicon-repeat
7
+ a.btn.btn-success
8
+ i.icon-ok.glyphicon.glyphicon-ok
9
+
10
+ - content_for :role_main do
11
+ ruby:
12
+ hidden = 'visibility:hidden'
13
+
14
+ .panel.panel-primary
15
+ .panel-heading
16
+ = t(:role_info, scope: t_scope)
17
+ = link_to t(:role_export, scope: t_scope), role_export_admin_role_path(role), class: "btn btn-xs btn-warning pull-right the_role-btn_export"
18
+ .panel-body
19
+ = form_for(role, url: change_admin_role_path(role), html: { class: "form-inline" } ) do |f|
20
+ .row
21
+ .col-md-12
22
+ h3.holder(style='margin: 3px')
23
+ = t(:role_name, scope: t_scope) + ':'
24
+ span.a =<> role.name
25
+ span.b(style=hidden)
26
+ .form-group<>
27
+ = f.text_field :name, class: "form-control"
28
+ = yield(:role_update_btn_set)
29
+
30
+ h5.holder style='margin: 3px'
31
+ = t(:title, scope: t_scope) + ':'
32
+ span.a =<> role.title
33
+ span.b(style=hidden)
34
+ .form-group<>
35
+ = f.text_field :title, class: "form-control"
36
+ = yield(:role_update_btn_set)
37
+
38
+ h5.holder style='margin: 3px'
39
+ = t(:role_description, scope: t_scope) + ':'
40
+ span.a =<> role.description
41
+ span.b(style=hidden)
42
+ .form-group<>
43
+ = f.text_field :description, class: "form-control"
44
+ = yield(:role_update_btn_set)
45
+
46
+ .panel.panel-primary
47
+ .panel-heading
48
+ = t(:role_rules, scope: t_scope)
49
+ .panel-body
50
+ - role.to_hash.each_pair do |section, rules|
51
+ .panel.panel-info
52
+ .panel-heading
53
+ .row
54
+ .col-md-9
55
+ h5 = section
56
+ .col-md-3
57
+ .delete
58
+ .btn-group
59
+ = button_to t(:delete_section, scope: t_scope), admin_role_section_path(role, section), method: :delete, class: 'btn btn-danger', data: { confirm: t(:section_delete_confirm, scope: t_scope) }
60
+
61
+ .panel-body
62
+ .rules
63
+ - rules.each_pair do |rule, value|
64
+ .row
65
+ .col-md-9
66
+ h4
67
+ | &rarr;
68
+ =<> rule
69
+ .col-md-3
70
+ .controls
71
+ - klass = value ? :success : :info
72
+ - state = value ? t(:enable, scope: t_scope) : t(:disable, scope: t_scope)
73
+ .btn-group
74
+ button(class="btn btn-#{klass}") = state
75
+ button(class="btn btn-#{klass} dropdown-toggle", data={toggle: :dropdown})
76
+ span &nbsp;
77
+ span.caret
78
+ span &nbsp;
79
+ ul.dropdown-menu
80
+ li.success = link_to t(:enable, scope: t_scope), rule_on_admin_role_section_path(role, section, :name => rule), :method => :put
81
+ li.info = link_to t(:disable, scope: t_scope), rule_off_admin_role_section_path(role, section, :name => rule), :method => :put
82
+ li.divider
83
+ li.error = link_to t(:delete_rule, scope: t_scope), destroy_rule_admin_role_section_path(role, section, :name => rule), method: :delete, data: { confirm: t(:rule_delete_confirm, scope: t_scope) }
84
+
85
+ .panel.panel-success
86
+ .panel-heading
87
+ = t(:create_section, scope: t_scope)
88
+ .panel-body
89
+ = form_tag admin_role_sections_path(role), class: "form-inline"do |f|
90
+ .form-group
91
+ = text_field_tag :section_name, '', class: "form-control", placeholder: t(:new_section_placeholder, scope: t_scope)
92
+ =<> submit_tag t(:create_section, scope: t_scope), class: "btn btn-success"
93
+
94
+ .panel.panel-success
95
+ .panel-heading
96
+ = t(:create_rule, scope: t_scope)
97
+ .panel-body
98
+ = form_tag create_rule_admin_role_sections_path(role), role: :form, class: "form-inline" do |f|
99
+ .form-group<>
100
+ select.form-control(name='section_name')
101
+ - role.to_hash.each_pair do |section, rules|
102
+ option(value=section)= section
103
+ .form-group
104
+ =<> text_field_tag :rule_name, '', class: "form-control", placeholder: t(:new_rule_placeholder, scope: t_scope)
105
+ =<> submit_tag t(:create_rule, scope: t_scope), class: "btn btn-success"
@@ -1,42 +1,42 @@
1
- - t_scope = [ :the_role_gui, :roles, :sidebar ]
2
-
3
- - content_for :role_sidebar do
4
- .panel.panel-primary
5
- .panel-heading
6
- = t :role_nav, scope: t_scope
7
- .panel-body
8
- %h4= link_to raw('&larr; Home'), root_path
9
-
10
- .panel.panel-primary
11
- .panel-heading
12
- = t :roles_list, scope: t_scope
13
- .panel-body
14
-
15
- - (@roles || Role.all).each do |role|
16
- %p
17
- = link_to role.title, edit_admin_role_url(role)
18
- (#{role.users.count})
19
- = link_to admin_role_url(role), method: :delete, title: role.title, data: { confirm: t(:delete_role_confirm, scope: t_scope) }, class: :delete do
20
- %i.icon-remove.glyphicon.glyphicon-remove
21
-
22
- %hr
23
-
24
- %p.new= link_to t(:new_role, scope: t_scope), new_admin_role_path, class: 'btn btn-xs btn-success'
25
-
26
- %hr
27
-
28
- .panel.panel-default
29
- .panel-heading
30
- = t(:roles_export, scope: t_scope)
31
- .panel-body
32
- = link_to t(:roles_export, scope: t_scope), export_admin_roles_path, class: "btn btn-xs btn-warning"
33
-
34
- .panel.panel-default
35
- .panel-heading
36
- =t(:roles_import, scope: t_scope)
37
- .panel-body
38
- = form_tag import_admin_roles_path, multipart: true, method: :put do
39
- .form-group
40
- = file_field_tag :roles
41
- .form-group
42
- = submit_tag t(:roles_import, scope: t_scope), class: "btn btn-xs btn-warning", data: { confirm: t(:roles_import_confirm, scope: t_scope) }
1
+ - t_scope = [ :the_role_gui, :roles, :sidebar ]
2
+
3
+ - content_for :role_sidebar do
4
+ .panel.panel-primary
5
+ .panel-heading
6
+ = t :role_nav, scope: t_scope
7
+ .panel-body
8
+ h4 = link_to raw('&larr; Home'), root_path
9
+
10
+ .panel.panel-primary
11
+ .panel-heading
12
+ = t :roles_list, scope: t_scope
13
+ .panel-body
14
+
15
+ - (@roles || Role.all).each do |role|
16
+ p
17
+ =<> link_to role.title, edit_admin_role_url(role)
18
+ =<> "(#{role.users.count})"
19
+ =<> link_to admin_role_url(role), method: :delete, title: role.title, data: { confirm: t(:delete_role_confirm, scope: t_scope) }, class: :delete do
20
+ i.icon-remove.glyphicon.glyphicon-remove
21
+
22
+ hr
23
+
24
+ p.new = link_to t(:new_role, scope: t_scope), new_admin_role_path, class: 'btn btn-xs btn-success'
25
+
26
+ hr
27
+
28
+ .panel.panel-default
29
+ .panel-heading
30
+ = t(:roles_export, scope: t_scope)
31
+ .panel-body
32
+ = link_to t(:roles_export, scope: t_scope), export_admin_roles_path, class: "btn btn-xs btn-warning"
33
+
34
+ .panel.panel-default
35
+ .panel-heading
36
+ = t(:roles_import, scope: t_scope)
37
+ .panel-body
38
+ = form_tag import_admin_roles_path, multipart: true, method: :put do
39
+ .form-group
40
+ = file_field_tag :roles
41
+ .form-group
42
+ = submit_tag t(:roles_import, scope: t_scope), class: "btn btn-xs btn-warning", data: { confirm: t(:roles_import_confirm, scope: t_scope) }
File without changes
File without changes
@@ -4,25 +4,25 @@
4
4
 
5
5
  - content_for :role_main do
6
6
  .panel.panel-success
7
- .panel-heading= raw t(:create, scope: t_scope)
7
+ .panel-heading = raw t(:create, scope: t_scope)
8
8
 
9
9
  = render partial: 'the_notification/form', locals: { object: @role }
10
10
 
11
11
  .panel-body
12
12
  = form_for(@role, url: admin_roles_path, role: :form) do |f|
13
- %label= t(:name, scope: t_scope)
14
- %p= f.text_field :name, class: "form-control"
13
+ label = t(:name, scope: t_scope)
14
+ p = f.text_field :name, class: "form-control"
15
15
 
16
- %label= t(:title, scope: t_scope)
17
- %p= f.text_field :title, class: "form-control"
16
+ label = t(:title, scope: t_scope)
17
+ p = f.text_field :title, class: "form-control"
18
18
 
19
- %label= t(:description, scope: t_scope)
20
- %p= f.text_field :description, class: "form-control"
19
+ label = t(:description, scope: t_scope)
20
+ p = f.text_field :description, class: "form-control"
21
21
 
22
22
  - opts = options_for_select Role.all.map{|role| [ role.name, role.id ] }
23
23
  - unless opts.empty?
24
24
  .form-group
25
- %label= t(:based_on_role, scope: t_scope)
25
+ label = t(:based_on_role, scope: t_scope)
26
26
  = f.select :based_on_role, opts, { include_blank: true }, class: "form-control"
27
27
 
28
28
  = f.submit t(:create, scope: t_scope), class: "btn btn-success"
@@ -0,0 +1,47 @@
1
+ html
2
+ head
3
+ title = TheRole.config.layout_title.to_s
4
+
5
+ = stylesheet_link_tag :the_role_management_panel
6
+ = javascript_include_tag :the_role_management_panel
7
+
8
+ = stylesheet_link_tag "http://netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.min.css"
9
+
10
+ = csrf_meta_tags
11
+ body
12
+ .container.the_role-container
13
+ .row
14
+ .col-md-12.header.the_role-header
15
+ p.the_role-title(style="text-align:center")
16
+ Authorization gem for Ruby on Rails with Management Panel
17
+
18
+ p.the_role-image(style='text-align:center')
19
+ = link_to "https://github.com/the-teacher/the_role" do
20
+ = image_tag "https://raw.githubusercontent.com/TheRole/docs/master/images/the_role.png", alt: 'TheRole 3.0', width: 150
21
+
22
+ p.the_role-description(style="text-align:center")
23
+ Semantic. Flexible. Lightweight.
24
+ .row
25
+ .col-md-3.manage_panel.the_role-panel
26
+ = yield :role_sidebar
27
+ .col-md-9.main_content.the_role-content
28
+ = render partial: 'the_notification/flash', locals: { format: :json }
29
+ = yield
30
+ = yield :role_main
31
+
32
+ .row
33
+ .col-md-12.center
34
+ p.the_role-locales(style="text-align:center")
35
+ =<> link_to 'en', '/?locale=en'
36
+ ||
37
+ =<> link_to 'ru', '/?locale=ru'
38
+ ||
39
+ =<> link_to 'es', '/?locale=es'
40
+ ||
41
+ =<> link_to 'zh_CN', '/?locale=zh_CN'
42
+ ||
43
+ =<> link_to 'pl', '/?locale=pl'
44
+ ||
45
+ b<>
46
+ = t '.current_locale'
47
+ = "[#{ I18n.locale }]"
data/config/routes.rb CHANGED
@@ -28,7 +28,7 @@ module TheRoleManagementPanel
28
28
 
29
29
  mapper.member do
30
30
  mapper.get :role_export
31
- mapper.put :change
31
+ mapper.patch :change
32
32
  end
33
33
 
34
34
  mapper.resources :sections, controller: :role_sections, only: :none do
@@ -1,9 +1,9 @@
1
- require_relative "the_role_management_panel/version"
2
-
3
- require 'the_notification'
4
- require 'bootstrap-sass'
5
- require 'sass-rails'
6
- require 'haml'
1
+ %w[
2
+ the_notification
3
+ bootstrap-sass
4
+ sass-rails
5
+ slim
6
+ ].each { |lib| require lib }
7
7
 
8
8
  module TheRoleManagementPanel
9
9
  class Engine < Rails::Engine; end
@@ -1,7 +1,10 @@
1
1
  # coding: utf-8
2
2
  lib = File.expand_path('../lib', __FILE__)
3
3
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
- require 'the_role_management_panel/version'
4
+
5
+ module TheRoleManagementPanel
6
+ VERSION = "3.8"
7
+ end
5
8
 
6
9
  Gem::Specification.new do |spec|
7
10
  spec.name = "the_role_management_panel"
@@ -21,7 +24,7 @@ Gem::Specification.new do |spec|
21
24
  spec.add_development_dependency "bundler", "~> 1.5"
22
25
  spec.add_development_dependency "rake"
23
26
 
24
- spec.add_dependency 'haml'
27
+ spec.add_dependency 'slim'
25
28
  spec.add_dependency 'sass-rails'
26
29
  spec.add_dependency 'coffee-rails'
27
30
  spec.add_dependency 'the_notification', '~> 0.5.1'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: the_role_management_panel
3
3
  version: !ruby/object:Gem::Version
4
- version: '3.5'
4
+ version: '3.8'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ilya N. Zykin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-08-30 00:00:00.000000000 Z
11
+ date: 2017-04-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -39,7 +39,7 @@ dependencies:
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
- name: haml
42
+ name: slim
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - ">="
@@ -152,12 +152,12 @@ files:
152
152
  - app/assets/stylesheets/the_role_management_panel.css.scss
153
153
  - app/controllers/admin/role_sections_controller.rb
154
154
  - app/controllers/admin/roles_controller.rb
155
- - app/views/admin/roles/_role.html.haml
156
- - app/views/admin/roles/_sidebar.html.haml
157
- - app/views/admin/roles/edit.html.haml
158
- - app/views/admin/roles/index.haml
159
- - app/views/admin/roles/new.html.haml
160
- - app/views/layouts/the_role_management_panel.html.haml
155
+ - app/views/admin/roles/_role.slim
156
+ - app/views/admin/roles/_sidebar.slim
157
+ - app/views/admin/roles/edit.slim
158
+ - app/views/admin/roles/index.slim
159
+ - app/views/admin/roles/new.slim
160
+ - app/views/layouts/the_role_management_panel.slim
161
161
  - config/locales/en.the_role.gui.yml
162
162
  - config/locales/es.the_role.gui.yml
163
163
  - config/locales/nl.the_role.gui.yml
@@ -166,11 +166,9 @@ files:
166
166
  - config/locales/ru.the_role.gui.yml
167
167
  - config/locales/zh_CN.the_role.gui.yml
168
168
  - config/routes.rb
169
- - gem_version.rb
170
169
  - lib/generators/the_role_management_panel/USAGE
171
170
  - lib/generators/the_role_management_panel/the_role_management_panel_generator.rb
172
171
  - lib/the_role_management_panel.rb
173
- - lib/the_role_management_panel/version.rb
174
172
  - the_role_management_panel.gemspec
175
173
  homepage: https://github.com/TheRole/the_role_management_panel
176
174
  licenses:
@@ -192,7 +190,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
192
190
  version: '0'
193
191
  requirements: []
194
192
  rubyforge_project:
195
- rubygems_version: 2.5.0
193
+ rubygems_version: 2.5.1
196
194
  signing_key:
197
195
  specification_version: 4
198
196
  summary: TheRole Management panel
@@ -1,47 +0,0 @@
1
- !!!
2
- %html
3
- %head
4
- %title TheRoleTestcase
5
- = stylesheet_link_tag :the_role_management_panel
6
- = javascript_include_tag :the_role_management_panel
7
- = stylesheet_link_tag "http://netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.min.css"
8
-
9
- = csrf_meta_tags
10
- %body
11
- .container
12
- .row
13
- .col-md-12.header
14
- %p{ style: "text-align:center" }
15
- Authorization gem for Ruby on Rails with Management Panel
16
-
17
- %p{ style: "text-align:center" }
18
- = link_to "https://github.com/the-teacher/the_role" do
19
- = image_tag "https://raw.githubusercontent.com/TheRole/docs/master/images/the_role.png", alt: 'TheRole 3.0', width: 150
20
-
21
- %p{ style: "text-align:center" }
22
- Semantic. Flexible. Lightweigh
23
- .row
24
- .col-md-3.manage_panel
25
- = yield :role_sidebar
26
- .col-md-9.main_content
27
- = render partial: 'the_notification/flash', locals: { format: :json }
28
- = yield
29
- = yield :role_main
30
-
31
- .row
32
- .col-md-12.center
33
- %p{ style: "text-align:center" }
34
- = link_to 'en', '/?locale=en'
35
- \|
36
- = link_to 'ru', '/?locale=ru'
37
- \|
38
- = link_to 'es', '/?locale=es'
39
- \|
40
- = link_to 'zh_CN', '/?locale=zh_CN'
41
- \|
42
- = link_to 'pl', '/?locale=pl'
43
- \|
44
- %b
45
- = t '.current_locale'
46
- = "[#{ I18n.locale }]"
47
-
data/gem_version.rb DELETED
@@ -1,3 +0,0 @@
1
- module TheRoleManagementPanel
2
- VERSION = "3.5"
3
- end
@@ -1 +0,0 @@
1
- require_relative "../../gem_version"