ezii-os 0.0.0.1.0 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (190) hide show
  1. checksums.yaml +4 -4
  2. data/Icon/r +0 -0
  3. data/app/assets/stylesheets/apis.scss +3 -0
  4. data/app/assets/stylesheets/basecamp_integrations.scss +3 -0
  5. data/app/assets/stylesheets/code_link_batches.scss +3 -0
  6. data/app/assets/stylesheets/code_link_types.scss +3 -0
  7. data/app/assets/stylesheets/code_links.scss +3 -0
  8. data/app/assets/stylesheets/codes.scss +3 -0
  9. data/app/assets/stylesheets/cookie_changes.scss +3 -0
  10. data/app/assets/stylesheets/partners/get_paids.scss +3 -0
  11. data/app/assets/stylesheets/searches.scss +3 -0
  12. data/app/assets/stylesheets/types.scss +3 -0
  13. data/app/controllers/apis_controller.rb +74 -0
  14. data/app/controllers/basecamp_integrations_controller.rb +76 -0
  15. data/app/controllers/code_link_batches_controller.rb +74 -0
  16. data/app/controllers/code_link_types_controller.rb +74 -0
  17. data/app/controllers/code_links_controller.rb +74 -0
  18. data/app/controllers/codes_controller.rb +74 -0
  19. data/app/controllers/cookie_changes_controller.rb +78 -0
  20. data/app/controllers/directories_controller.rb +14 -14
  21. data/app/controllers/ezii_os_files_controller.rb +14 -1
  22. data/app/controllers/partners/get_paids_controller.rb +74 -0
  23. data/app/controllers/searches_controller.rb +74 -0
  24. data/app/controllers/types_controller.rb +74 -0
  25. data/app/helpers/apis_helper.rb +2 -0
  26. data/app/helpers/basecamp_integrations_helper.rb +2 -0
  27. data/app/helpers/code_link_batches_helper.rb +2 -0
  28. data/app/helpers/code_link_types_helper.rb +2 -0
  29. data/app/helpers/code_links_helper.rb +2 -0
  30. data/app/helpers/codes_helper.rb +2 -0
  31. data/app/helpers/cookie_changes_helper.rb +2 -0
  32. data/app/helpers/partners/get_paids_helper.rb +2 -0
  33. data/app/helpers/searches_helper.rb +2 -0
  34. data/app/helpers/types_helper.rb +2 -0
  35. data/app/models/api.rb +3 -0
  36. data/app/models/basecamp_integration.rb +2 -0
  37. data/app/models/code.rb +3 -0
  38. data/app/models/code_link.rb +3 -0
  39. data/app/models/code_link_batch.rb +3 -0
  40. data/app/models/code_link_type.rb +3 -0
  41. data/app/models/cookie_change.rb +2 -0
  42. data/app/models/partners/get_paid.rb +2 -0
  43. data/app/models/partners.rb +5 -0
  44. data/app/models/search.rb +2 -0
  45. data/app/models/type.rb +3 -0
  46. data/app/views/apis/_api.json.jbuilder +2 -0
  47. data/app/views/apis/_form.html.erb +32 -0
  48. data/app/views/apis/edit.html.erb +6 -0
  49. data/app/views/apis/index.html.erb +31 -0
  50. data/app/views/apis/index.json.jbuilder +1 -0
  51. data/app/views/apis/new.html.erb +5 -0
  52. data/app/views/apis/show.html.erb +19 -0
  53. data/app/views/apis/show.json.jbuilder +1 -0
  54. data/app/views/basecamp_integrations/_basecamp_integration.json.jbuilder +2 -0
  55. data/app/views/basecamp_integrations/_form.html.erb +27 -0
  56. data/app/views/basecamp_integrations/edit.html.erb +6 -0
  57. data/app/views/basecamp_integrations/index.html.erb +29 -0
  58. data/app/views/basecamp_integrations/index.json.jbuilder +1 -0
  59. data/app/views/basecamp_integrations/new.html.erb +5 -0
  60. data/app/views/basecamp_integrations/show.html.erb +14 -0
  61. data/app/views/basecamp_integrations/show.json.jbuilder +1 -0
  62. data/app/views/code_link_batches/_code_link_batch.json.jbuilder +2 -0
  63. data/app/views/code_link_batches/_form.html.erb +27 -0
  64. data/app/views/code_link_batches/edit.html.erb +6 -0
  65. data/app/views/code_link_batches/index.html.erb +29 -0
  66. data/app/views/code_link_batches/index.json.jbuilder +1 -0
  67. data/app/views/code_link_batches/new.html.erb +5 -0
  68. data/app/views/code_link_batches/show.html.erb +14 -0
  69. data/app/views/code_link_batches/show.json.jbuilder +1 -0
  70. data/app/views/code_link_types/_code_link_type.json.jbuilder +2 -0
  71. data/app/views/code_link_types/_form.html.erb +27 -0
  72. data/app/views/code_link_types/edit.html.erb +6 -0
  73. data/app/views/code_link_types/index.html.erb +29 -0
  74. data/app/views/code_link_types/index.json.jbuilder +1 -0
  75. data/app/views/code_link_types/new.html.erb +5 -0
  76. data/app/views/code_link_types/show.html.erb +14 -0
  77. data/app/views/code_link_types/show.json.jbuilder +1 -0
  78. data/app/views/code_links/_code_link.json.jbuilder +2 -0
  79. data/app/views/code_links/_form.html.erb +32 -0
  80. data/app/views/code_links/edit.html.erb +6 -0
  81. data/app/views/code_links/index.html.erb +31 -0
  82. data/app/views/code_links/index.json.jbuilder +1 -0
  83. data/app/views/code_links/new.html.erb +5 -0
  84. data/app/views/code_links/show.html.erb +19 -0
  85. data/app/views/code_links/show.json.jbuilder +1 -0
  86. data/app/views/codes/_code.json.jbuilder +2 -0
  87. data/app/views/codes/_form.html.erb +32 -0
  88. data/app/views/codes/edit.html.erb +6 -0
  89. data/app/views/codes/index.html.erb +31 -0
  90. data/app/views/codes/index.json.jbuilder +1 -0
  91. data/app/views/codes/new.html.erb +5 -0
  92. data/app/views/codes/show.html.erb +19 -0
  93. data/app/views/codes/show.json.jbuilder +1 -0
  94. data/app/views/cookie_changes/_cookie_change.json.jbuilder +2 -0
  95. data/app/views/cookie_changes/_form.html.erb +27 -0
  96. data/app/views/cookie_changes/edit.html.erb +6 -0
  97. data/app/views/cookie_changes/index.html.erb +29 -0
  98. data/app/views/cookie_changes/index.json.jbuilder +1 -0
  99. data/app/views/cookie_changes/new.html.erb +5 -0
  100. data/app/views/cookie_changes/show.html.erb +14 -0
  101. data/app/views/cookie_changes/show.json.jbuilder +1 -0
  102. data/app/views/directories/show.html.erb +6 -1
  103. data/app/views/ezii_os_files/_wit_ai_widget.html.erb +203 -49
  104. data/app/views/ezii_os_files/show.html.erb +6 -9
  105. data/app/views/layouts/application.html.erb +212 -52
  106. data/app/views/partners/get_paids/_form.html.erb +27 -0
  107. data/app/views/partners/get_paids/_partners_get_paid.json.jbuilder +2 -0
  108. data/app/views/partners/get_paids/edit.html.erb +6 -0
  109. data/app/views/partners/get_paids/index.html.erb +29 -0
  110. data/app/views/partners/get_paids/index.json.jbuilder +1 -0
  111. data/app/views/partners/get_paids/new.html.erb +5 -0
  112. data/app/views/partners/get_paids/show.html.erb +14 -0
  113. data/app/views/partners/get_paids/show.json.jbuilder +1 -0
  114. data/app/views/searches/_form.html.erb +22 -0
  115. data/app/views/searches/_search.json.jbuilder +2 -0
  116. data/app/views/searches/edit.html.erb +6 -0
  117. data/app/views/searches/index.html.erb +27 -0
  118. data/app/views/searches/index.json.jbuilder +1 -0
  119. data/app/views/searches/new.html.erb +5 -0
  120. data/app/views/searches/show.html.erb +9 -0
  121. data/app/views/searches/show.json.jbuilder +1 -0
  122. data/app/views/types/_form.html.erb +22 -0
  123. data/app/views/types/_type.json.jbuilder +2 -0
  124. data/app/views/types/edit.html.erb +6 -0
  125. data/app/views/types/index.html.erb +27 -0
  126. data/app/views/types/index.json.jbuilder +1 -0
  127. data/app/views/types/new.html.erb +5 -0
  128. data/app/views/types/show.html.erb +9 -0
  129. data/app/views/types/show.json.jbuilder +1 -0
  130. data/config/credentials.yml.enc +1 -1
  131. data/config/routes.rb +12 -0
  132. data/db/development.sqlite3 +0 -0
  133. data/db/migrate/20190827060151_create_searches.rb +9 -0
  134. data/db/migrate/20190827063427_create_partners_get_paids.rb +10 -0
  135. data/db/migrate/20190827180750_create_basecamp_integrations.rb +10 -0
  136. data/db/migrate/20190827180751_create_types.rb +9 -0
  137. data/db/migrate/20190827180752_create_code_link_types.rb +10 -0
  138. data/db/migrate/20190827180753_create_code_links.rb +11 -0
  139. data/db/migrate/20190827180754_create_codes.rb +11 -0
  140. data/db/migrate/20190828104427_create_apis.rb +12 -0
  141. data/db/migrate/20190828105156_create_code_link_batches.rb +10 -0
  142. data/db/migrate/20190829174432_create_cookie_changes.rb +10 -0
  143. data/db/schema.rb +88 -1
  144. data/db/seeds.rb +4 -0
  145. data/db/test.sqlite3 +0 -0
  146. data/ezii-os-0.0.0.1.0.gem +0 -0
  147. data/ezii-os.gemspec +1 -1
  148. data/lib/tasks/task.rake +5 -0
  149. data/log/development.log +13283 -0
  150. data/test/controllers/apis_controller_test.rb +48 -0
  151. data/test/controllers/basecamp_integrations_controller_test.rb +48 -0
  152. data/test/controllers/code_link_batches_controller_test.rb +48 -0
  153. data/test/controllers/code_link_types_controller_test.rb +48 -0
  154. data/test/controllers/code_links_controller_test.rb +48 -0
  155. data/test/controllers/codes_controller_test.rb +48 -0
  156. data/test/controllers/cookie_changes_controller_test.rb +48 -0
  157. data/test/controllers/partners/get_paids_controller_test.rb +48 -0
  158. data/test/controllers/searches_controller_test.rb +48 -0
  159. data/test/controllers/types_controller_test.rb +48 -0
  160. data/test/fixtures/apis.yml +11 -0
  161. data/test/fixtures/basecamp_integrations.yml +9 -0
  162. data/test/fixtures/code_link_batches.yml +9 -0
  163. data/test/fixtures/code_link_types.yml +9 -0
  164. data/test/fixtures/code_links.yml +11 -0
  165. data/test/fixtures/codes.yml +11 -0
  166. data/test/fixtures/cookie_changes.yml +9 -0
  167. data/test/fixtures/partners/get_paids.yml +9 -0
  168. data/test/fixtures/searches.yml +7 -0
  169. data/test/fixtures/types.yml +7 -0
  170. data/test/models/api_test.rb +7 -0
  171. data/test/models/basecamp_integration_test.rb +7 -0
  172. data/test/models/code_link_batch_test.rb +7 -0
  173. data/test/models/code_link_test.rb +7 -0
  174. data/test/models/code_link_type_test.rb +7 -0
  175. data/test/models/code_test.rb +7 -0
  176. data/test/models/cookie_change_test.rb +7 -0
  177. data/test/models/partners/get_paid_test.rb +7 -0
  178. data/test/models/search_test.rb +7 -0
  179. data/test/models/type_test.rb +7 -0
  180. data/test/system/apis_test.rb +47 -0
  181. data/test/system/basecamp_integrations_test.rb +45 -0
  182. data/test/system/code_link_batches_test.rb +45 -0
  183. data/test/system/code_link_types_test.rb +45 -0
  184. data/test/system/code_links_test.rb +47 -0
  185. data/test/system/codes_test.rb +47 -0
  186. data/test/system/cookie_changes_test.rb +45 -0
  187. data/test/system/partners/get_paids_test.rb +45 -0
  188. data/test/system/searches_test.rb +43 -0
  189. data/test/system/types_test.rb +43 -0
  190. metadata +176 -1
@@ -0,0 +1,6 @@
1
+ <h1>Editing Code Link Type</h1>
2
+
3
+ <%= render 'form', code_link_type: @code_link_type %>
4
+
5
+ <%= link_to 'Show', @code_link_type %> |
6
+ <%= link_to 'Back', code_link_types_path %>
@@ -0,0 +1,29 @@
1
+ <p id="notice"><%= notice %></p>
2
+
3
+ <h1>Code Link Types</h1>
4
+
5
+ <table>
6
+ <thead>
7
+ <tr>
8
+ <th>Type description</th>
9
+ <th>Type</th>
10
+ <th colspan="3"></th>
11
+ </tr>
12
+ </thead>
13
+
14
+ <tbody>
15
+ <% @code_link_types.each do |code_link_type| %>
16
+ <tr>
17
+ <td><%= code_link_type.type_description %></td>
18
+ <td><%= code_link_type.type_id %></td>
19
+ <td><%= link_to 'Show', code_link_type %></td>
20
+ <td><%= link_to 'Edit', edit_code_link_type_path(code_link_type) %></td>
21
+ <td><%= link_to 'Destroy', code_link_type, method: :delete, data: { confirm: 'Are you sure?' } %></td>
22
+ </tr>
23
+ <% end %>
24
+ </tbody>
25
+ </table>
26
+
27
+ <br>
28
+
29
+ <%= link_to 'New Code Link Type', new_code_link_type_path %>
@@ -0,0 +1 @@
1
+ json.array! @code_link_types, partial: "code_link_types/code_link_type", as: :code_link_type
@@ -0,0 +1,5 @@
1
+ <h1>New Code Link Type</h1>
2
+
3
+ <%= render 'form', code_link_type: @code_link_type %>
4
+
5
+ <%= link_to 'Back', code_link_types_path %>
@@ -0,0 +1,14 @@
1
+ <p id="notice"><%= notice %></p>
2
+
3
+ <p>
4
+ <strong>Type description:</strong>
5
+ <%= @code_link_type.type_description %>
6
+ </p>
7
+
8
+ <p>
9
+ <strong>Type:</strong>
10
+ <%= @code_link_type.type_id %>
11
+ </p>
12
+
13
+ <%= link_to 'Edit', edit_code_link_type_path(@code_link_type) %> |
14
+ <%= link_to 'Back', code_link_types_path %>
@@ -0,0 +1 @@
1
+ json.partial! "code_link_types/code_link_type", code_link_type: @code_link_type
@@ -0,0 +1,2 @@
1
+ json.extract! code_link, :id, :link, :code_link_type_id, :description, :created_at, :updated_at
2
+ json.url code_link_url(code_link, format: :json)
@@ -0,0 +1,32 @@
1
+ <%= form_with(model: code_link, local: true) do |form| %>
2
+ <% if code_link.errors.any? %>
3
+ <div id="error_explanation">
4
+ <h2><%= pluralize(code_link.errors.count, "error") %> prohibited this code_link from being saved:</h2>
5
+
6
+ <ul>
7
+ <% code_link.errors.full_messages.each do |message| %>
8
+ <li><%= message %></li>
9
+ <% end %>
10
+ </ul>
11
+ </div>
12
+ <% end %>
13
+
14
+ <div class="field">
15
+ <%= form.label :link %>
16
+ <%= form.text_area :link %>
17
+ </div>
18
+
19
+ <div class="field">
20
+ <%= form.label :code_link_type_id %>
21
+ <%= form.text_field :code_link_type_id %>
22
+ </div>
23
+
24
+ <div class="field">
25
+ <%= form.label :description %>
26
+ <%= form.text_area :description %>
27
+ </div>
28
+
29
+ <div class="actions">
30
+ <%= form.submit %>
31
+ </div>
32
+ <% end %>
@@ -0,0 +1,6 @@
1
+ <h1>Editing Code Link</h1>
2
+
3
+ <%= render 'form', code_link: @code_link %>
4
+
5
+ <%= link_to 'Show', @code_link %> |
6
+ <%= link_to 'Back', code_links_path %>
@@ -0,0 +1,31 @@
1
+ <p id="notice"><%= notice %></p>
2
+
3
+ <h1>Code Links</h1>
4
+
5
+ <table>
6
+ <thead>
7
+ <tr>
8
+ <th>Link</th>
9
+ <th>Code link type</th>
10
+ <th>Description</th>
11
+ <th colspan="3"></th>
12
+ </tr>
13
+ </thead>
14
+
15
+ <tbody>
16
+ <% @code_links.each do |code_link| %>
17
+ <tr>
18
+ <td><%= code_link.link %></td>
19
+ <td><%= code_link.code_link_type_id %></td>
20
+ <td><%= code_link.description %></td>
21
+ <td><%= link_to 'Show', code_link %></td>
22
+ <td><%= link_to 'Edit', edit_code_link_path(code_link) %></td>
23
+ <td><%= link_to 'Destroy', code_link, method: :delete, data: { confirm: 'Are you sure?' } %></td>
24
+ </tr>
25
+ <% end %>
26
+ </tbody>
27
+ </tbody>
28
+ </table>
29
+
30
+ <br>
31
+
@@ -0,0 +1 @@
1
+ json.array! @code_links, partial: "code_links/code_link", as: :code_link
@@ -0,0 +1,5 @@
1
+ <h1>New Code Link</h1>
2
+
3
+ <%= render 'form', code_link: @code_link %>
4
+
5
+ <%= link_to 'Back', code_links_path %>
@@ -0,0 +1,19 @@
1
+ <p id="notice"><%= notice %></p>
2
+
3
+ <p>
4
+ <strong>Link:</strong>
5
+ <%= @code_link.link %>
6
+ </p>
7
+
8
+ <p>
9
+ <strong>Code link type:</strong>
10
+ <%= @code_link.code_link_type_id %>
11
+ </p>
12
+
13
+ <p>
14
+ <strong>Description:</strong>
15
+ <%= @code_link.description %>
16
+ </p>
17
+
18
+ <%= link_to 'Edit', edit_code_link_path(@code_link) %> |
19
+ <%= link_to 'Back', code_links_path %>
@@ -0,0 +1 @@
1
+ json.partial! "code_links/code_link", code_link: @code_link
@@ -0,0 +1,2 @@
1
+ json.extract! code, :id, :github_link, :gist_link, :code_links_id, :created_at, :updated_at
2
+ json.url code_url(code, format: :json)
@@ -0,0 +1,32 @@
1
+ <%= form_with(model: code, local: true) do |form| %>
2
+ <% if code.errors.any? %>
3
+ <div id="error_explanation">
4
+ <h2><%= pluralize(code.errors.count, "error") %> prohibited this code from being saved:</h2>
5
+
6
+ <ul>
7
+ <% code.errors.full_messages.each do |message| %>
8
+ <li><%= message %></li>
9
+ <% end %>
10
+ </ul>
11
+ </div>
12
+ <% end %>
13
+
14
+ <div class="field">
15
+ <%= form.label :github_link %>
16
+ <%= form.text_field :github_link %>
17
+ </div>
18
+
19
+ <div class="field">
20
+ <%= form.label :gist_link %>
21
+ <%= form.text_field :gist_link %>
22
+ </div>
23
+
24
+ <div class="field">
25
+ <%= form.label :code_links_id %>
26
+ <%= form.text_field :code_links_id %>
27
+ </div>
28
+
29
+ <div class="actions">
30
+ <%= form.submit %>
31
+ </div>
32
+ <% end %>
@@ -0,0 +1,6 @@
1
+ <h1>Editing Code</h1>
2
+
3
+ <%= render 'form', code: @code %>
4
+
5
+ <%= link_to 'Show', @code %> |
6
+ <%= link_to 'Back', codes_path %>
@@ -0,0 +1,31 @@
1
+ <p id="notice"><%= notice %></p>
2
+
3
+ <h1>Codes</h1>
4
+
5
+ <table>
6
+ <thead>
7
+ <tr>
8
+ <th>Github link</th>
9
+ <th>Gist link</th>
10
+ <th>Code links</th>
11
+ <th colspan="3"></th>
12
+ </tr>
13
+ </thead>
14
+
15
+ <tbody>
16
+ <% @codes.each do |code| %>
17
+ <tr>
18
+ <td><%= code.github_link %></td>
19
+ <td><%= code.gist_link %></td>
20
+ <td><%= code.code_links_id %></td>
21
+ <td><%= link_to 'Show', code %></td>
22
+ <td><%= link_to 'Edit', edit_code_path(code) %></td>
23
+ <td><%= link_to 'Destroy', code, method: :delete, data: { confirm: 'Are you sure?' } %></td>
24
+ </tr>
25
+ <% end %>
26
+ </tbody>
27
+ </table>
28
+
29
+ <br>
30
+
31
+ <%= link_to 'New Code', new_code_path %>
@@ -0,0 +1 @@
1
+ json.array! @codes, partial: "codes/code", as: :code
@@ -0,0 +1,5 @@
1
+ <h1>New Code</h1>
2
+
3
+ <%= render 'form', code: @code %>
4
+
5
+ <%= link_to 'Back', codes_path %>
@@ -0,0 +1,19 @@
1
+ <p id="notice"><%= notice %></p>
2
+
3
+ <p>
4
+ <strong>Github link:</strong>
5
+ <%= @code.github_link %>
6
+ </p>
7
+
8
+ <p>
9
+ <strong>Gist link:</strong>
10
+ <%= @code.gist_link %>
11
+ </p>
12
+
13
+ <p>
14
+ <strong>Code links:</strong>
15
+ <%= @code.code_links_id %>
16
+ </p>
17
+
18
+ <%= link_to 'Edit', edit_code_path(@code) %> |
19
+ <%= link_to 'Back', codes_path %>
@@ -0,0 +1 @@
1
+ json.partial! "codes/code", code: @code
@@ -0,0 +1,2 @@
1
+ json.extract! cookie_change, :id, :identifier, :value, :created_at, :updated_at
2
+ json.url cookie_change_url(cookie_change, format: :json)
@@ -0,0 +1,27 @@
1
+ <%= form_with(model: cookie_change, local: true) do |form| %>
2
+ <% if cookie_change.errors.any? %>
3
+ <div id="error_explanation">
4
+ <h2><%= pluralize(cookie_change.errors.count, "error") %> prohibited this cookie_change from being saved:</h2>
5
+
6
+ <ul>
7
+ <% cookie_change.errors.full_messages.each do |message| %>
8
+ <li><%= message %></li>
9
+ <% end %>
10
+ </ul>
11
+ </div>
12
+ <% end %>
13
+
14
+ <div class="field">
15
+ <%= form.label :identifier %>
16
+ <%= form.text_field :identifier %>
17
+ </div>
18
+
19
+ <div class="field">
20
+ <%= form.label :value %>
21
+ <%= form.text_field :value %>
22
+ </div>
23
+
24
+ <div class="actions">
25
+ <%= form.submit %>
26
+ </div>
27
+ <% end %>
@@ -0,0 +1,6 @@
1
+ <h1>Editing Cookie Change</h1>
2
+
3
+ <%= render 'form', cookie_change: @cookie_change %>
4
+
5
+ <%= link_to 'Show', @cookie_change %> |
6
+ <%= link_to 'Back', cookie_changes_path %>
@@ -0,0 +1,29 @@
1
+ <p id="notice"><%= notice %></p>
2
+
3
+ <h1>Cookie Changes</h1>
4
+
5
+ <table>
6
+ <thead>
7
+ <tr>
8
+ <th>Identifier</th>
9
+ <th>Value</th>
10
+ <th colspan="3"></th>
11
+ </tr>
12
+ </thead>
13
+
14
+ <tbody>
15
+ <% @cookie_changes.each do |cookie_change| %>
16
+ <tr>
17
+ <td><%= cookie_change.identifier %></td>
18
+ <td><%= cookie_change.value %></td>
19
+ <td><%= link_to 'Show', cookie_change %></td>
20
+ <td><%= link_to 'Edit', edit_cookie_change_path(cookie_change) %></td>
21
+ <td><%= link_to 'Destroy', cookie_change, method: :delete, data: { confirm: 'Are you sure?' } %></td>
22
+ </tr>
23
+ <% end %>
24
+ </tbody>
25
+ </table>
26
+
27
+ <br>
28
+
29
+ <%= link_to 'New Cookie Change', new_cookie_change_path %>
@@ -0,0 +1 @@
1
+ json.array! @cookie_changes, partial: "cookie_changes/cookie_change", as: :cookie_change
@@ -0,0 +1,5 @@
1
+ <h1>New Cookie Change</h1>
2
+
3
+ <%= render 'form', cookie_change: @cookie_change %>
4
+
5
+ <%= link_to 'Back', cookie_changes_path %>
@@ -0,0 +1,14 @@
1
+ <p id="notice"><%= notice %></p>
2
+
3
+ <p>
4
+ <strong>Identifier:</strong>
5
+ <%= @cookie_change.identifier %>
6
+ </p>
7
+
8
+ <p>
9
+ <strong>Value:</strong>
10
+ <%= @cookie_change.value %>
11
+ </p>
12
+
13
+ <%= link_to 'Edit', edit_cookie_change_path(@cookie_change) %> |
14
+ <%= link_to 'Back', cookie_changes_path %>
@@ -0,0 +1 @@
1
+ json.partial! "cookie_changes/cookie_change", cookie_change: @cookie_change
@@ -11,7 +11,12 @@
11
11
  <% end %>
12
12
 
13
13
  <% if path.file? %>
14
- <% if File.extname(path.file_system_path) == '.pdf' %>
14
+ <%= link_to('Show INLINE (admin only)', ezii_os_file_path(path.global_path, admin: true)) %>
15
+
16
+ <% case File.extname(path.file_system_path) %>
17
+ <% when '.pdf' %>
18
+ <%= link_to 'View', ezii_os_file_path(path.global_path) %>
19
+ <% when '.jpg' %>
15
20
  <%= link_to 'View', ezii_os_file_path(path.global_path) %>
16
21
  <% end %>
17
22
  <% else %>