refinerycms-redirects 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,5 @@
1
+ .record .slug {
2
+ width: 100px;
3
+ font-weight: bold;
4
+ display: inline-block;
5
+ }
@@ -6,11 +6,7 @@
6
6
  <%= redirect.title %>
7
7
  </span>
8
8
  <span class='actions'>
9
-
10
- <%= link_to refinery_icon_tag("application_go.png"), refinery.redirects_redirect_path(redirect),
11
- :title => t('.view_live_html'),
12
- :target => "_blank" %>
13
-
9
+
14
10
  <%= link_to refinery_icon_tag("application_edit.png"), refinery.edit_redirects_admin_redirect_path(redirect),
15
11
  :title => t('.edit') %>
16
12
  <%= link_to refinery_icon_tag("delete.png"), refinery.redirects_admin_redirect_path(redirect),
@@ -0,0 +1,3 @@
1
+ Refinery::Core.configure do |config|
2
+ config.register_stylesheet "redirects", :media => 'screen'
3
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: refinerycms-redirects
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -33,6 +33,7 @@ executables: []
33
33
  extensions: []
34
34
  extra_rdoc_files: []
35
35
  files:
36
+ - app/assets/stylesheets/redirects.scss
36
37
  - app/controllers/refinery/redirects/admin/redirects_controller.rb
37
38
  - app/controllers/refinery/redirects/redirects_controller.rb
38
39
  - app/models/refinery/redirects/redirect.rb
@@ -45,8 +46,7 @@ files:
45
46
  - app/views/refinery/redirects/admin/redirects/edit.html.erb
46
47
  - app/views/refinery/redirects/admin/redirects/index.html.erb
47
48
  - app/views/refinery/redirects/admin/redirects/new.html.erb
48
- - app/views/refinery/redirects/redirects/index.html.erb
49
- - app/views/refinery/redirects/redirects/show.html.erb
49
+ - config/initializers/refinery/core.rb
50
50
  - config/locales/en.yml
51
51
  - config/locales/es.yml
52
52
  - config/locales/fr.yml
@@ -1,11 +0,0 @@
1
- <% content_for :body do %>
2
- <ul id="redirects">
3
- <% @redirects.each do |redirect| %>
4
- <li>
5
- <%= link_to redirect.title, refinery.redirects_redirect_path(redirect) %>
6
- </li>
7
- <% end %>
8
- </ul>
9
- <% end %>
10
-
11
- <%= render '/refinery/content_page' %>
@@ -1,39 +0,0 @@
1
- <% content_for :body_content_title do %>
2
- <%= @redirect.title %>
3
- <% end %>
4
-
5
- <% content_for :body do %>
6
- <section>
7
- <h1>Title</h1>
8
- <p>
9
- <%=raw @redirect.title %>
10
- </p>
11
- </section>
12
- <section>
13
- <h1>Slug</h1>
14
- <p>
15
- <%=raw @redirect.slug %>
16
- </p>
17
- </section>
18
- <section>
19
- <h1>Url</h1>
20
- <p>
21
- <%=raw @redirect.url %>
22
- </p>
23
- </section>
24
- <% end %>
25
-
26
- <% content_for :side_body do %>
27
- <aside>
28
- <h2><%= t('.other') %></h2>
29
- <ul id="redirects">
30
- <% @redirects.each do |redirect| %>
31
- <li>
32
- <%= link_to redirect.title, refinery.redirects_redirect_path(redirect) %>
33
- </li>
34
- <% end %>
35
- </ul>
36
- </aside>
37
- <% end %>
38
-
39
- <%= render '/refinery/content_page' %>