th_simple_admin_panel 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ODYxYjQyOTM5NGY3NzBlMGRmZGRlYTFkMGNlOGI0YTU1Y2VkYTczNg==
4
+ MDVkZTQzMjlkNzg4MTg0ZmJiZjY1ZWNkYjJmNjIyOTM1NjkwOWY5Mw==
5
5
  data.tar.gz: !binary |-
6
- MDMzMGI0OGEyMTM2NDczYmI2NDQzMzAyNTA4MTBjY2JhYjIxYTg5YQ==
6
+ Mjg2ZmRkMzFhNTBlYzFmM2NjNzVmNTg4YWNhZjQ5YzZiNzk2MGY1MQ==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- ODMyN2JmNTgyMGNjMjIzZTM0MDRmNjE4ZmYyMzA0N2Q0NTI4ODM3YzlhZDIz
10
- MjZmM2U1NmFkZTZhNTc2N2JjNTczMDRiNGJmYTU0MGI4Y2IxZTg3NjdlNjI0
11
- MmNlNzA4OGRkYTU4MDU5ZjAxZDZjYmM5MzM5M2FiYWE0NGUyZjk=
9
+ ZjQ1NzljODJjZmNhNWRjMjU1ZWZhNWEwOWQyNjVmMzk3ZWRmNWMyYWNhMzg0
10
+ ZGQwODdmODA1NTEyZGMyZjYyYmFkMGJlOTkwZjkzY2RiMDYxZWRiOGQzNTUw
11
+ NmU0MjdiNDQ1MjczMjBmYzMyMmZiMWFjZmVkMDRiNjc1Y2JiNGQ=
12
12
  data.tar.gz: !binary |-
13
- ZmQ5OGQ3Mjc5MTg3NzM5ZjQ3MTA0YTliNmMxZDBhYjYxNzM1OGRiM2UyNzlh
14
- MDdkNjVjNzVmNDQyOTA5NDEyMTc0N2NhMmYzYTliMDM1NGE5MzEyYmQ5N2Iz
15
- YTU5M2ExOWY0ZjYzYjU5YjVlNDJlYWVjZmU4NWFmNDgxZTBhYWU=
13
+ YTllZWQyN2E2OTJmZTU4ZThiODU1MmUzYjVkMThhNDQ2NjJmMTI4NTY0ZDIw
14
+ NDdjMjZmMjQ5ZGFlMDBhZmU5ODZlZTU0MjQwNmY4MTM0NTc5MjMxZWNjY2U2
15
+ NjhiNDI1M2QzOTQwNjk2OWFmZjc2YzliNzVhYWY4OWNkNWZhYWQ=
@@ -26,7 +26,9 @@
26
26
  <% end %>
27
27
  <% else %>
28
28
  <li><%= link_to resource_class.model_name.human(count: 2), collection_path %> <span class="divider">/</span></li>
29
- <li><%= link_to_if controller.respond_to?(:show) && can?(:show, resource), resource.name, resource_path %> <span class="divider">/</span></li>
29
+ <% if params[:id].present? %>
30
+ <li><%= link_to_if controller.respond_to?(:show) && can?(:show, resource), resource.name, resource_path %> <span class="divider">/</span></li>
31
+ <% end %>
30
32
  <li class="active"><%= t(".actions.#{resource_class.model_name.underscore}.#{params[:action]}", default: t(".actions.#{params[:action]}")) %></li>
31
33
  <% end %>
32
34
  <% else %>
@@ -1,3 +1,3 @@
1
1
  module SimpleAdminPanel
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: th_simple_admin_panel
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Toby Hinloopen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-05-09 00:00:00.000000000 Z
11
+ date: 2013-05-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -61,7 +61,6 @@ extra_rdoc_files: []
61
61
  files:
62
62
  - app/assets/javascripts/simple_admin_panel.js
63
63
  - app/assets/stylesheets/admin/layout.css.scss
64
- - app/assets/stylesheets/admin/simple_pages.css.scss
65
64
  - app/assets/stylesheets/shared/layout.css.scss
66
65
  - app/assets/stylesheets/shared.css.scss
67
66
  - app/controllers/simple_admin_panel/application_controller.rb
@@ -1,14 +0,0 @@
1
- @import "bootstrap-tagmanager";
2
-
3
- .simple-routes-list span.myTag span {
4
- font-family: monospace;
5
-
6
- &:before {
7
- content: "/";
8
- color: #aaa;
9
- }
10
- &:after {
11
- content: ".html";
12
- color: #aaa;
13
- }
14
- }