pages_core 3.12.0 → 3.12.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (100) hide show
  1. checksums.yaml +4 -4
  2. data/VERSION +1 -1
  3. data/app/assets/builds/fonts/661557ef.ttf +0 -0
  4. data/app/assets/builds/fonts/a18fc2d2.woff2 +0 -0
  5. data/app/assets/builds/fonts/b2c7b78f.woff2 +0 -0
  6. data/app/assets/builds/fonts/ceddc204.ttf +0 -0
  7. data/app/assets/builds/pages_core/admin-dist.js +2 -1
  8. data/app/assets/builds/pages_core/admin.css +9233 -0
  9. data/app/assets/images/pages/admin/angle-down-solid.svg +1 -0
  10. data/app/assets/images/pages/admin/icon.svg +1 -0
  11. data/app/assets/stylesheets/pages_core/admin/components/archive.css +6 -0
  12. data/app/assets/stylesheets/{pages/admin/components/attachments.scss → pages_core/admin/components/attachments.css} +35 -28
  13. data/app/assets/stylesheets/{pages/admin.scss → pages_core/admin/components/base.css} +125 -123
  14. data/app/assets/stylesheets/pages_core/admin/components/forms.css +223 -0
  15. data/app/assets/stylesheets/{pages/admin/components/header.scss → pages_core/admin/components/header.css} +76 -46
  16. data/app/assets/stylesheets/{pages/admin/components/image_editor.scss → pages_core/admin/components/image_editor.css} +42 -31
  17. data/app/assets/stylesheets/{pages/admin/components/image_grid.scss → pages_core/admin/components/image_grid.css} +76 -64
  18. data/app/assets/stylesheets/{pages/admin/components/image_uploader.scss → pages_core/admin/components/image_uploader.css} +12 -12
  19. data/app/assets/stylesheets/{pages/admin/components/layout.scss → pages_core/admin/components/layout.css} +13 -9
  20. data/app/assets/stylesheets/pages_core/admin/components/links.css +40 -0
  21. data/app/assets/stylesheets/pages_core/admin/components/list_table.css +66 -0
  22. data/app/assets/stylesheets/{pages/admin/components/login.scss → pages_core/admin/components/login.css} +6 -5
  23. data/app/assets/stylesheets/{pages/admin/components/modal.scss → pages_core/admin/components/modal.css} +10 -12
  24. data/app/assets/stylesheets/{pages/admin/components/page_tree.scss → pages_core/admin/components/page_tree.css} +54 -55
  25. data/app/assets/stylesheets/{pages/admin/components/pagination.scss → pages_core/admin/components/pagination.css} +17 -17
  26. data/app/assets/stylesheets/{pages/admin/components/sidebar.scss → pages_core/admin/components/sidebar.css} +8 -7
  27. data/app/assets/stylesheets/{pages/admin/components/tag_editor.scss → pages_core/admin/components/tag_editor.css} +10 -15
  28. data/app/assets/stylesheets/{pages/admin/components/textarea.scss → pages_core/admin/components/textarea.css} +1 -1
  29. data/app/assets/stylesheets/{pages/admin/components/toast.scss → pages_core/admin/components/toast.css} +5 -3
  30. data/app/assets/stylesheets/{pages/admin/components/toolbar.scss → pages_core/admin/components/toolbar.css} +56 -29
  31. data/app/assets/stylesheets/{pages/admin/controllers/pages.scss → pages_core/admin/controllers/pages.css} +63 -52
  32. data/app/assets/stylesheets/pages_core/admin/controllers/users.css +3 -0
  33. data/app/assets/stylesheets/pages_core/admin/vars.css +34 -0
  34. data/app/assets/stylesheets/pages_core/admin.postcss.css +9 -0
  35. data/app/formatters/pages_core/image_embedder.rb +5 -27
  36. data/app/helpers/admin/calendars_helper.rb +8 -0
  37. data/app/helpers/admin/news_helper.rb +13 -0
  38. data/app/helpers/pages_core/admin/admin_helper.rb +11 -54
  39. data/app/helpers/pages_core/admin/deprecated_admin_helper.rb +40 -0
  40. data/app/helpers/pages_core/images_helper.rb +37 -0
  41. data/app/javascript/components/Attachments/Attachment.jsx +2 -2
  42. data/app/javascript/components/EditableImage.jsx +1 -1
  43. data/app/javascript/components/ImageCropper/Toolbar.jsx +3 -3
  44. data/app/javascript/components/PageTreeNode.jsx +9 -9
  45. data/app/javascript/components/RichTextToolbarButton.jsx +1 -1
  46. data/app/mailers/admin_mailer.rb +1 -0
  47. data/app/models/invite.rb +8 -0
  48. data/app/views/admin/calendars/_sidebar.html.erb +47 -0
  49. data/app/views/admin/calendars/show.html.erb +15 -53
  50. data/app/views/admin/invites/new.html.erb +2 -8
  51. data/app/views/admin/invites/show.html.erb +2 -4
  52. data/app/views/admin/news/_sidebar.html.erb +48 -0
  53. data/app/views/admin/news/index.html.erb +21 -56
  54. data/app/views/admin/pages/deleted.html.erb +10 -8
  55. data/app/views/admin/pages/edit.html.erb +20 -11
  56. data/app/views/admin/pages/index.html.erb +7 -8
  57. data/app/views/admin/pages/new.html.erb +10 -14
  58. data/app/views/admin/password_resets/show.html.erb +3 -5
  59. data/app/views/admin/users/deactivated.html.erb +6 -7
  60. data/app/views/admin/users/edit.html.erb +7 -9
  61. data/app/views/admin/users/index.html.erb +3 -6
  62. data/app/views/admin/users/login.html.erb +4 -5
  63. data/app/views/admin/users/new.html.erb +2 -4
  64. data/app/views/admin/users/new_password.html.erb +4 -5
  65. data/app/views/admin/users/show.html.erb +11 -9
  66. data/app/views/errors/401.html.erb +2 -1
  67. data/app/views/errors/403.html.erb +2 -1
  68. data/app/views/errors/404.html.erb +1 -3
  69. data/app/views/errors/405.html.erb +2 -1
  70. data/app/views/errors/422.html.erb +2 -1
  71. data/app/views/errors/500.html.erb +2 -3
  72. data/app/views/layouts/admin/_header.html.erb +1 -2
  73. data/app/views/layouts/admin/_page_header.html.erb +4 -4
  74. data/app/views/layouts/admin.html.erb +3 -3
  75. data/app/views/layouts/errors.html.erb +127 -4
  76. data/lib/pages_core/engine.rb +4 -3
  77. data/lib/pages_core.rb +0 -1
  78. metadata +39 -196
  79. data/app/assets/images/pages/admin/icon.png +0 -0
  80. data/app/assets/images/pages/admin/image-editor-bg.png +0 -0
  81. data/app/assets/images/pages/admin/list-table-pin-blue.gif +0 -0
  82. data/app/assets/images/pages/admin/list-table-pin-disabled.gif +0 -0
  83. data/app/assets/images/pages/admin/list-table-pin-green.gif +0 -0
  84. data/app/assets/images/pages/admin/list-table-pin-red.gif +0 -0
  85. data/app/assets/images/pages/admin/list-table-pin-yellow.gif +0 -0
  86. data/app/assets/images/pages/admin/loading-modal.gif +0 -0
  87. data/app/assets/images/pages/feed-icon-14x14.png +0 -0
  88. data/app/assets/stylesheets/pages/admin/components/archive.scss +0 -6
  89. data/app/assets/stylesheets/pages/admin/components/buttons.scss +0 -23
  90. data/app/assets/stylesheets/pages/admin/components/forms.scss +0 -169
  91. data/app/assets/stylesheets/pages/admin/components/links.scss +0 -43
  92. data/app/assets/stylesheets/pages/admin/components/list_table.scss +0 -61
  93. data/app/assets/stylesheets/pages/admin/controllers/users.scss +0 -3
  94. data/app/assets/stylesheets/pages/admin/mixins/breakpoints.scss +0 -21
  95. data/app/assets/stylesheets/pages/admin/mixins/clearfix.scss +0 -7
  96. data/app/assets/stylesheets/pages/admin/mixins/gradients.scss +0 -7
  97. data/app/assets/stylesheets/pages/admin/vars.scss +0 -30
  98. data/app/assets/stylesheets/pages/errors.css +0 -128
  99. data/vendor/assets/stylesheets/ReactCrop.css +0 -167
  100. /data/app/assets/stylesheets/{pages/admin/components/tabs.scss → pages_core/admin/components/tabs.css} +0 -0
@@ -1,15 +1,24 @@
1
- <%
2
- self.page_title = "Editing “" + @page.name.to_s + "”"
3
- self.page_description = "Editing " + [@page.ancestors.reverse,@page].flatten.map{|page| link_to((page.name rescue "(Untitled)"), edit_admin_page_path(@locale, page))}.join(" &raquo; ")
1
+ <% content_for :page_title do %>
2
+ <% if @page.name? %>
3
+ Edit “<%= @page.name %>”
4
+ <% else %>
5
+ Edit page
6
+ <% end %>
7
+ <% end %>
8
+ <% content_for :page_description do %>
9
+ Editing
10
+ <% @page.ancestors.reverse.each do |page| %>
11
+ <%= link_to(page.name? ? page.name : tag.i("Untitled"),
12
+ edit_admin_page_path(@locale, page)) %>
13
+ &raquo;
14
+ <% end %>
15
+ <%= link_to(@page.name? ? @page.name : tag.i("Untitled"),
16
+ edit_admin_page_path(@locale, @page)) %>
17
+ <% end %>
4
18
 
5
- if PagesCore.config.localizations?
6
- self.page_description_links = "In " + safe_join(
7
- PagesCore.config.locales.map do |l, name|
8
- link_to_unless((l == @locale.to_sym), name, edit_admin_page_path(l, @page.localize(l)))
9
- end,
10
- link_separator)
11
- end
12
- %>
19
+ <% content_for :page_description_links do %>
20
+ <%= locale_links { |l| edit_admin_page_path(l, @page.localize(l)) } %>
21
+ <% end %>
13
22
 
14
23
  <% content_for :main_wrapper do %>
15
24
  <%= form_for(@page,
@@ -1,13 +1,12 @@
1
- <%
2
- self.page_title = "Pages"
3
- self.page_description = "All pages / " + link_to("Deleted pages", deleted_admin_pages_path(@locale))
1
+ <% content_for :page_title, "Pages" %>
4
2
 
5
- if PagesCore.config.localizations?
6
- self.page_description_links = 'In ' + PagesCore.config.locales.map{ |l, n| link_to_unless_current n, admin_pages_path(l) }.join(link_separator)
7
- end
8
- %>
3
+ <% content_for :page_description do %>
4
+ All pages /
5
+ <%= link_to("Deleted pages", deleted_admin_pages_path(@locale)) %>
6
+ <% end %>
9
7
 
10
- <% content_for :sidebar do %>
8
+ <% content_for :page_description_links do %>
9
+ <%= locale_links { |l| admin_pages_path(l) } %>
11
10
  <% end %>
12
11
 
13
12
  <div class="content">
@@ -1,15 +1,11 @@
1
- <%
2
- if @page.parent
3
- self.page_title = "New page"
4
- self.page_description = "<em>#{@page.parent.name}</em> &raquo; New Page"
5
- else
6
- self.page_title = "Create new page"
7
- self.page_description = "You are creating a new root page"
8
- end
9
-
10
- @url_options = { action: :new }
11
- @url_options[:parent] = @page.parent if @page.parent
12
- %>
1
+ <% content_for :page_title, "New page" %>
2
+ <% content_for :page_description do %>
3
+ <% if @page.parent %>
4
+ <em><%= @page.parent.name %></em> &raquo; New Page
5
+ <% else %>
6
+ You are creating a new root page
7
+ <% end %>
8
+ <% end %>
13
9
 
14
10
  <% content_for :main_wrapper do %>
15
11
  <%= form_for(@page,
@@ -25,7 +21,7 @@
25
21
 
26
22
  <% content_for :main do %>
27
23
  <div class="content">
28
- <%= f.hidden_field 'parent_page_id' if @page.parent %>
24
+ <%= f.hidden_field "parent_page_id" if @page.parent %>
29
25
 
30
26
  <%= render(partial: "form", locals: { f: f }) %>
31
27
 
@@ -43,7 +39,7 @@
43
39
  </main>
44
40
 
45
41
  <aside class="sidebar" id="page-form-sidebar">
46
- <%= render partial: 'edit_options', locals: { f: f } %>
42
+ <%= render partial: "edit_options", locals: { f: f } %>
47
43
  </aside>
48
44
  <% end %>
49
45
  <% end %>
@@ -1,8 +1,6 @@
1
- <%
2
- self.page_title = "Reset password"
3
- self.page_description = "Please choose a new password to proceed"
4
- add_body_class "login"
5
- -%>
1
+ <% content_for :page_title, "Reset password" %>
2
+ <% content_for :page_description, "Please choose a new password to proceed" %>
3
+ <% content_for :body_class, "login" %>
6
4
 
7
5
  <div class="login-form">
8
6
  <%= form_for(@user,
@@ -1,12 +1,11 @@
1
- <%
2
- self.page_title = "Deactivated users"
3
- self.page_description = "Viewing deactivated users"
4
- self.page_description_links = link_to("View active users", admin_users_path)
5
- %>
1
+ <% content_for :page_title, "Deactivated users" %>
2
+ <% content_for :page_description, "Viewing deactivated users" %>
6
3
 
4
+ <% content_for(:page_description_links) do %>
5
+ <%= link_to("View active users", admin_users_path) %>
6
+ <% end %>
7
7
 
8
8
  <% content_for :sidebar do %>
9
9
  <% end %>
10
10
 
11
-
12
- <%= render partial: 'list', locals: {users: @users} %>
11
+ <%= render partial: "list", locals: { users: @users } %>
@@ -1,12 +1,10 @@
1
- <%
2
- self.page_title = "Editing user: #{@user.name}"
3
- if @user == current_user
4
- self.page_description = "You are editing " + link_to("your own", [:admin, @user]) + " profile."
5
- else
6
- self.page_description = "You are editing " + link_to("#{@user.name}", [:admin, @user]) + "'s profile."
7
- end
8
- self.page_description_links = link_to("View all users", admin_users_path)
9
- %>
1
+ <% content_for :page_title, "Editing user: #{@user.name}" %>
2
+
3
+ <% content_for :page_description do %>
4
+ You are editing
5
+ <%= link_to((@user == current_user ? "your own profile" : "#{@user.name}"),
6
+ [:admin, @user]) %>
7
+ <% end %>
10
8
 
11
9
  <% content_for :sidebar do %>
12
10
  <% if @user != current_user %>
@@ -1,8 +1,5 @@
1
- <%
2
- self.page_title = "Users"
3
- self.page_description = "Viewing active users"
4
- %>
5
-
1
+ <% content_for :page_title, "Users" %>
2
+ <% content_for :page_description, "Viewing active users" %>
6
3
 
7
4
  <% content_for :sidebar do %>
8
5
  <% if policy(User).new? %>
@@ -24,4 +21,4 @@
24
21
  <% end %>
25
22
 
26
23
 
27
- <%= render partial: 'list', locals: {users: @users} %>
24
+ <%= render partial: "list", locals: { users: @users } %>
@@ -1,8 +1,7 @@
1
- <%
2
- self.page_title = "Sign in"
3
- self.page_description = "Please enter your email address and password to sign in"
4
- add_body_class "login"
5
- -%>
1
+ <% content_for :page_title, "Sign in" %>
2
+ <% content_for(:page_description,
3
+ "Please enter your email address and password to sign in") %>
4
+ <% content_for :body_class, "login" %>
6
5
 
7
6
  <% content_for :sidebar do %>
8
7
  <h2>Please note</h2>
@@ -1,7 +1,5 @@
1
- <%
2
- self.page_title = "Welcome"
3
- self.page_description = "Welcome to Pages"
4
- %>
1
+ <% content_for :page_title, "Welcome" %>
2
+ <% content_for :page_description, "Welcome to Pages" %>
5
3
 
6
4
  <div class="content">
7
5
  <p>Welcome to Pages! Before you can log on, we need to create the first user account.</p>
@@ -1,8 +1,7 @@
1
- <%
2
- self.page_title = "Log in &raquo; Forgotten password"
3
- self.page_description = "Creating a new password"
4
- add_body_class = "login"
5
- %>
1
+ <% content_for :page_title, "Log in &raquo; Forgotten password" %>
2
+ <% content_for :page_description, "Creating a new password" %>
3
+ <% content_for :body_class, "login" -%>
4
+
6
5
  <div class="content">
7
6
  <p>
8
7
  Did you lose your password? Don't worry, it happens.
@@ -1,12 +1,14 @@
1
- <%
2
- self.page_title = "#{@user.name}"
3
- if @user == current_user
4
- self.page_description = "You are viewing " + link_to( "your own", admin_user_path( @user ) ) + " profile."
5
- else
6
- self.page_description = "You are viewing " + link_to( "#{@user.name}", admin_user_path( @user ) ) + "'s profile."
7
- end
8
- self.page_description_links = [ ( link_to( "Edit", edit_admin_user_path( @user ) ) if policy(@user).edit? ), link_to( "View all users", admin_users_path ) ].compact.join( link_separator )
9
- %>
1
+ <% content_for :page_title, @user.name %>
2
+
3
+ <% content_for :page_description do %>
4
+ You are viewing
5
+ <%= link_to((@user == current_user ? "your own profile" : "#{@user.name}"),
6
+ [:admin, @user]) %>
7
+ <% end %>
8
+
9
+ <% content_for(:page_description_links) do %>
10
+ <%= link_to("Edit", edit_admin_user_path(@user)) if policy(@user).edit? %>
11
+ <% end %>
10
12
 
11
13
  <% content_for :sidebar do %>
12
14
  <h2>People</h2>
@@ -1,4 +1,5 @@
1
- <% @page_title = "Unauthorized" %>
1
+ <% content_for :page_title, "Unauthorized" %>
2
+
2
3
  <p>
3
4
  You are not authorized to access this resource.
4
5
  </p>
@@ -1,4 +1,5 @@
1
- <% @page_title = "Forbidden" %>
1
+ <% content_for :page_title, "Forbidden" %>
2
+
2
3
  <p>
3
4
  You are not authorized to access this resource.
4
5
  </p>
@@ -1,6 +1,4 @@
1
- <%
2
- @page_title = "Page not found"
3
- %>
1
+ <% content_for :page_title, "Page not found" %>
4
2
 
5
3
  <p>
6
4
  The page you were looking for could not be found. It might have been removed,
@@ -1,4 +1,5 @@
1
- <% @page_title = "405: Method Not Allowed" %>
1
+ <% content_for :page_title, "405: Method Not Allowed" %>
2
+
2
3
  <p>This method has not been implemented.</p>
3
4
 
4
5
  <%= render partial: 'errors/generic_help' %>
@@ -1,4 +1,5 @@
1
- <% @page_title = "422: Unacceptable" %>
1
+ <% content_for :page_title, "422: Unacceptable" %>
2
+
2
3
  <p>
3
4
  The change you wanted was rejected.
4
5
  Maybe you tried to change something you didn't have access to.
@@ -1,6 +1,5 @@
1
- <%
2
- @page_title = "500 Internal Server Error"
3
- %>
1
+ <% content_for :page_title, "500 Internal Server Error" %>
2
+
4
3
  <p>
5
4
  We're experiencing an internal server problem. Please try again later.
6
5
  </p>
@@ -1,6 +1,6 @@
1
1
  <header>
2
2
  <div class="logo">
3
- <%= link_to image_tag("pages/admin/icon.png"), '/admin' %>
3
+ <%= link_to image_tag("pages/admin/icon.svg"), '/admin' %>
4
4
  </div>
5
5
  <div class="site-name">
6
6
  <h1>
@@ -10,7 +10,6 @@
10
10
  <% if logged_in? %>
11
11
  <div class="user">
12
12
  Hello, <%= link_to(current_user.name, admin_user_url(current_user)) %>
13
- <%= link_separator %>
14
13
  <%= link_to("Log out", session_path, method: "delete") %>
15
14
  </div>
16
15
  <% end %>
@@ -1,12 +1,12 @@
1
- <% if @page_description || @content_tabs %>
1
+ <% if content_for?(:page_description) || @content_tabs %>
2
2
  <div class="page-description"<% if @content_tabs %> class="with_content_tabs"<% end %>>
3
- <% if @page_description_links -%>
3
+ <% if content_for?(:page_description_links) %>
4
4
  <div class="links">
5
- <%= @page_description_links.html_safe %>
5
+ <%= content_for(:page_description_links) %>
6
6
  </div>
7
7
  <% end %>
8
8
  <h3>
9
- <%= (@page_description || @page_title).html_safe %>
9
+ <%= content_for(:page_description) || content_for(:page_title) %>
10
10
  </h3>
11
11
  <% if @content_tabs %>
12
12
  <ul class="content-tabs"
@@ -3,7 +3,7 @@
3
3
  <head>
4
4
  <meta charset="utf-8">
5
5
  <title>
6
- <%= [@page_title, "Pages"].reject(&:blank?).uniq.join(" - ") %>
6
+ <%= [content_for(:page_title), "Pages"].reject(&:blank?).uniq.join(" - ") %>
7
7
  </title>
8
8
 
9
9
  <link rel="shortcut icon"
@@ -13,7 +13,7 @@
13
13
  href="<%= asset_path 'pages/favicon.gif' %>"
14
14
  type="image/gif" />
15
15
 
16
- <%= stylesheet_link_tag "pages/admin" %>
16
+ <%= stylesheet_link_tag "pages_core/admin" %>
17
17
 
18
18
  <% if Dir.glob(Rails.root.join("app/assets/stylesheets/admin.*")).any? %>
19
19
  <%= stylesheet_link_tag "admin" %>
@@ -34,7 +34,7 @@
34
34
  <%= google_analytics_tags "UA-5468672-21" %>
35
35
  </head>
36
36
 
37
- <body class="<%= body_classes.join(" ") %>"
37
+ <body class="<%= content_for(:body_class) %>"
38
38
  data-controller="<%= controller.class.to_s %>"
39
39
  data-action="<%= controller.action_name %>"
40
40
  data-locale="<%= @locale %>">
@@ -5,13 +5,136 @@
5
5
  <head>
6
6
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
7
7
  <meta name="viewport" content="width=device-width, initial-scale=1">
8
- <title><%= @page_title || "We're sorry" %></title>
9
- <%= stylesheet_link_tag "pages/errors" %>
8
+ <title><%= content_for(:page_title) || "We're sorry" %></title>
9
+ <style>
10
+ body {
11
+ background: #fff;
12
+ background: linear-gradient(180deg, rgba(236, 236, 236, 1) 0%, rgba(255, 255, 255, 1) 50%);
13
+ background-repeat: no-repeat;
14
+ margin: 0;
15
+ padding: 0;
16
+ border: 0;
17
+ font-family: Helvetica, Arial, sans-serif;
18
+ font-size: 16px;
19
+ color: #111;
20
+ line-height: 1.5;
21
+ }
22
+
23
+ main {
24
+ width: 600px;
25
+ margin: 150px auto;
26
+ }
27
+
28
+ h1, h2, h3, h4, h5, h6, p, ul, form {
29
+ margin: 0 0 16px 0;
30
+ }
31
+
32
+ h4 {
33
+ margin-bottom: 0;
34
+ font-size: 1em;
35
+ font-weight: bold;
36
+ }
37
+
38
+ h4 em {
39
+ font-weight: normal;
40
+ font-style: normal;
41
+ }
42
+
43
+ ul {
44
+ list-style-type: disc;
45
+ list-style-position: inside;
46
+ padding: 0;
47
+ }
48
+
49
+ ul li {
50
+ margin: 0;
51
+ padding: 0;
52
+ }
53
+
54
+ h1 {
55
+ font-weight: bold;
56
+ color: #111;
57
+ font-size: 36px;
58
+ }
59
+
60
+ p.footer {
61
+ margin-top: 64px;
62
+ font-size: 12px;
63
+ color: #868686;
64
+ }
65
+
66
+ p.error_id {
67
+ margin-top: 64px;
68
+ font-size: 12px;
69
+ color: #dcdbd2;
70
+ }
71
+
72
+ input[type=text],
73
+ textarea {
74
+ vertical-align: top;
75
+ border: 1px solid #c4c2bb;
76
+ color: #444;
77
+ font-family: Helvetica, Arial, sans-serif;
78
+ font-size: 18px;
79
+ padding: 6px 8px 6px 8px;
80
+ width: 490px;
81
+ border-radius: 3px;
82
+ }
83
+
84
+ input.with_button {
85
+ width: 400px;
86
+ margin-right: 4px;
87
+ }
88
+
89
+ a,
90
+ a:visited {
91
+ color: #0751b6;
92
+ text-decoration: underline;
93
+ }
94
+
95
+ a:hover {
96
+ color: #042d65;
97
+ }
98
+
99
+ form {
100
+ vertical-align: top;
101
+ }
102
+
103
+ button.clean-gray {
104
+ background-color: #eeeeee;
105
+ background-image: linear-gradient(top, #f8f8f8, #e0e0e0);
106
+ border: 1px solid #ccc;
107
+ border-bottom: 1px solid #bbb;
108
+ border-radius: 3px;
109
+ color: #333;
110
+ font: bold 15px Helvetica, Arial, sans-serif;
111
+ line-height: 1;
112
+ padding: 9px 0;
113
+ text-align: center;
114
+ text-shadow: 0 1px 0 #eee;
115
+ width: 150px;
116
+ }
117
+
118
+ button.clean-gray:hover {
119
+ background-color: #dddddd;
120
+ background-image: linear-gradient(top, #f0f0f0, #dddddd);
121
+ border: 1px solid #bbb;
122
+ border-bottom: 1px solid #aaa;
123
+ cursor: pointer;
124
+ text-shadow: 0 1px 0 #ddd;
125
+ }
126
+
127
+ button.clean-gray:active {
128
+ border: 1px solid #aaa;
129
+ border-bottom: 1px solid #888;
130
+ box-shadow: inset 0 0 5px 2px #aaaaaa, 0 1px 0 0 #eeeeee;
131
+ }
132
+ </style>
10
133
  </head>
11
134
  <body>
12
135
  <main>
13
- <% if @page_title %>
14
- <h1><%= @page_title %></h1>
136
+ <% if content_for?(:page_title) %>
137
+ <h1><%= content_for(:page_title) %></h1>
15
138
  <% end %>
16
139
  <%= yield %>
17
140
  </main>
@@ -28,10 +28,11 @@ module PagesCore
28
28
  initializer :assets do |_config|
29
29
  Rails.application.config.assets.precompile += %w[
30
30
  pages_core/admin-dist.js
31
- pages/admin.css
32
- pages/errors.css
31
+ pages_core/admin.css
32
+ pages_core/fonts/*.ttf
33
+ pages_core/fonts/*.woff2
33
34
  pages/favicon.gif
34
- pages/admin/icon.png
35
+ pages/admin/icon.svg
35
36
  pages/*.gif
36
37
  pages/*.png
37
38
  pages/*.jpg
data/lib/pages_core.rb CHANGED
@@ -41,7 +41,6 @@ require "will_paginate"
41
41
  require "will_paginate/view_helpers/action_view"
42
42
 
43
43
  # Assets
44
- require "font-awesome-rails"
45
44
  require "react-rails"
46
45
 
47
46
  # Pages