Browse Source

Tables in content should display better

remotes/origin/master
echarp 2 years ago
parent
commit
6138156eb6
  1. 8
      app/assets/javascripts/list.js.coffee
  2. 1
      app/assets/stylesheets/list.sass
  3. 9
      app/views/versions/index.haml
  4. 2
      public/assets/.sprockets-manifest-1ecf1692b9cfa13c0271559a479b9688.json
  5. 4
      public/assets/active_admin-955847d711d68a8234b0311555aaabe8ce79d0b0138207a10eb43b8715bfbc6f.css
  6. BIN
      public/assets/active_admin-955847d711d68a8234b0311555aaabe8ce79d0b0138207a10eb43b8715bfbc6f.css.gz
  7. 53466
      public/assets/application-9779c21d0fae3f6f9cfe4f4f15227545423187e274d4a95009bdab5dd75c9706.js
  8. BIN
      public/assets/application-9779c21d0fae3f6f9cfe4f4f15227545423187e274d4a95009bdab5dd75c9706.js.gz
  9. 34
      public/assets/application-fffac4f8dc2466271b1e210e8c876b665a819c7d6b3b3ef39f9efd570298dc2e.css
  10. BIN
      public/assets/application-fffac4f8dc2466271b1e210e8c876b665a819c7d6b3b3ef39f9efd570298dc2e.css.gz
  11. 1
      public/assets/list-efff25153e0f94f2af353b02e239c51da65e3a1250369a9960ca35648925d9f7.css
  12. BIN
      public/assets/list-efff25153e0f94f2af353b02e239c51da65e3a1250369a9960ca35648925d9f7.css.gz
  13. 24
      public/assets/setup_tinymce-2ee45c3c0978fadc1ccd3c7f2cc8265cb5390086545987a36dab7a924281c153.js
  14. BIN
      public/assets/setup_tinymce-2ee45c3c0978fadc1ccd3c7f2cc8265cb5390086545987a36dab7a924281c153.js.gz

8
app/assets/javascripts/list.js.coffee

@ -22,8 +22,8 @@ $(document).on 'ajax:success', '.pagination .next a', (event, data) ->
# Clicking on a table.list row
visit = (elt) =>
elt.closest('tr').addClass('view').click (event) ->
target = $(event.target)
unless target.attr('target')? or target.parents('a').attr('target')?
Turbolinks.visit elt.attr 'href'
elt.closest('tr').addClass('view').click (event) ->
target = $(event.target)
unless target.attr('target')? or target.parents('a').attr('target')?
Turbolinks.visit elt.attr 'href'

1
app/assets/stylesheets/list.sass

@ -3,7 +3,6 @@
white-space: nowrap
table
clear: both
border-spacing: 2px
th
font-weight: normal

9
app/views/versions/index.haml

@ -2,11 +2,6 @@
%em.fa.fa-history
= title t '.title'
.links
= link_to versions_path(format: :rss) do
%em.fa.fa-rss
= t '.feed'
%table.list.autopagerize_page_element
%thead
%th.event
@ -14,7 +9,9 @@
%th.object= sort_link @search, :object_id
%th.changeset= sort_link @search, :changeset
%th.created_at= sort_link @search, :created_at
%th.view/
%th.view
= link_to versions_path(format: :rss), title: t('.feed') do
%em.fa.fa-rss
%tbody
- @versions.each do |version|

2
public/assets/.sprockets-manifest-1ecf1692b9cfa13c0271559a479b9688.json

File diff suppressed because one or more lines are too long

4
public/assets/active_admin-955847d711d68a8234b0311555aaabe8ce79d0b0138207a10eb43b8715bfbc6f.css

File diff suppressed because one or more lines are too long

BIN
public/assets/active_admin-955847d711d68a8234b0311555aaabe8ce79d0b0138207a10eb43b8715bfbc6f.css.gz

Binary file not shown.

53466
public/assets/application-9779c21d0fae3f6f9cfe4f4f15227545423187e274d4a95009bdab5dd75c9706.js

File diff suppressed because one or more lines are too long

BIN
public/assets/application-9779c21d0fae3f6f9cfe4f4f15227545423187e274d4a95009bdab5dd75c9706.js.gz

Binary file not shown.

34
public/assets/application-fffac4f8dc2466271b1e210e8c876b665a819c7d6b3b3ef39f9efd570298dc2e.css

File diff suppressed because one or more lines are too long

BIN
public/assets/application-fffac4f8dc2466271b1e210e8c876b665a819c7d6b3b3ef39f9efd570298dc2e.css.gz

Binary file not shown.

1
public/assets/list-efff25153e0f94f2af353b02e239c51da65e3a1250369a9960ca35648925d9f7.css

@ -0,0 +1 @@
.quantity{text-align:right !important;white-space:nowrap}table{border-spacing:2px}table th{font-weight:normal}table th a:link,table th a:visited{color:#003;padding:0 0.6em}table.list tbody tr:nth-child(odd){background-color:#def}table.list tbody tr:nth-child(even){background-color:#eee}table.list tbody tr.view{cursor:pointer}table.list tbody tr.view:hover{background-color:lightgrey}table.list td{padding:0.2em;text-align:left}table.list td.kind,table.list td.updated_at{text-align:center}dl dt{clear:left;float:left;padding:0.2em 1em;min-width:12em;text-align:right}dl dd{padding:0.2em 1em;text-align:left}dl dd.quantity{padding-right:16em}dl dd h3{display:inline}ul.counters{text-align:center}ul.counters li{display:inline}ul.counters li a:link,ul.counters li a:visited{color:white;padding:0.4em 1em;display:inline-block;box-shadow:0 0 2px black;border-radius:0.4em;background-color:#258}.edit_link:link,.delete_link:link{display:none}

BIN
public/assets/list-efff25153e0f94f2af353b02e239c51da65e3a1250369a9960ca35648925d9f7.css.gz

Binary file not shown.

24
public/assets/setup_tinymce-2ee45c3c0978fadc1ccd3c7f2cc8265cb5390086545987a36dab7a924281c153.js

@ -0,0 +1,24 @@
(function() {
$(document).on('turbolinks:load', function() {
return tinyMCE.init({
width: '100%',
height: '40em',
menubar: false,
branding: false,
language: 'fr_FR',
selector: 'input.description',
content_css: '/assets/application-fffac4f8dc2466271b1e210e8c876b665a819c7d6b3b3ef39f9efd570298dc2e.css',
entity_encoding: 'raw',
add_unload_trigger: true,
browser_spellcheck: true,
style_formats_autohide: true,
toolbar: [' cut copy paste | undo redo | link image media charmap table | code visualblocks searchreplace', ' removeformat bold italic strikethrough superscript subscript | bullist numlist outdent indent | alignleft aligncenter alignright alignjustify alignnone'],
plugins: 'lists advlist autolink link image charmap paste print preview table fullscreen searchreplace media insertdatetime visualblocks wordcount code'
});
});
$(document).on('turbolinks:before-cache', function() {
return tinymce.remove();
});
}).call(this);

BIN
public/assets/setup_tinymce-2ee45c3c0978fadc1ccd3c7f2cc8265cb5390086545987a36dab7a924281c153.js.gz

Binary file not shown.
Loading…
Cancel
Save