diff options
author | Jacques Erasmus <jerasmus@gitlab.com> | 2019-09-13 02:36:27 +0300 |
---|---|---|
committer | Evan Read <eread@gitlab.com> | 2019-09-13 02:36:27 +0300 |
commit | 705d9f78767e19b074d34c215c49bc20a7ba5852 (patch) | |
tree | 754657eea7eb27c98371de004788102a4c8bb484 /layouts/default.html | |
parent | 9cedf55183458e7a41d3c9d61b3090baf3c6cdb2 (diff) |
Replace JS table selectors with CSS
Replaced the JS solution for targeting tables
Diffstat (limited to 'layouts/default.html')
-rw-r--r-- | layouts/default.html | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/layouts/default.html b/layouts/default.html index 66dba48d..34bb3a09 100644 --- a/layouts/default.html +++ b/layouts/default.html @@ -58,7 +58,7 @@ Level: <%= @item[:level] %> </div> <% end %> - <div class="article-content js-article-content" role="main" itemscope itemprop="mainContentOfPage"> + <div class="article-content js-article-content <% if @item[:table_display_block] %>table-display-block<% end %>" role="main" itemscope itemprop="mainContentOfPage"> <%= yield %> </div> <% if @item[:last_updated] %> @@ -84,9 +84,6 @@ <%# Add analytics only in production %> <%= render '/analytics.*' %> <% end %> - <% if @item[:table_display_block] %> - <script type="application/javascript" src="<%= @items['/assets/javascripts/table-display-block.*'].path %>"></script> - <% end %> <%= render '/footer.*' %> <script src="<%= @items['/assets/javascripts/docs.*'].path %>"></script> <script src="<%= @items['/assets/javascripts/global-nav.*'].path %>"></script> |