Updated application layout and data_bundle index page
diff --git a/app/views/data_bundles/index.html.slim b/app/views/data_bundles/index.html.slim
index 56016e3..107cc01 100644
--- a/app/views/data_bundles/index.html.slim
+++ b/app/views/data_bundles/index.html.slim
@@ -1,30 +1,32 @@
-.row
- - if user_signed_in?
- .col-xs-6
- .box
- .box-header
- h3.box-title Databundles
- .box-body.table-responsive.no-padding
- table.table.table-hover
- tbody
- tr
- th Name
- th Date
- th Donwload
- th Links
- - @data_bundles.each do |data_bundle|
+section.content-header
+ h1
+ | DataBundles
+section.content
+ .row
+ - if user_signed_in?
+ .col-xs-6
+ .box
+ .box-body.table-responsive.no-padding
+ table.table.table-hover
+ tbody
tr
- td
- = data_bundle.name
- td
- = data_bundle.created_at.strftime('%d-%m-%Y %H:%M')
- td
- = link_to data_bundle.file_identifier, data_bundle.file.url
- td
- = link_to 'Show', data_bundle
- = link_to 'Edit', edit_data_bundle_path(data_bundle)
- = link_to 'Destroy', data_bundle, data: {confirm: 'Are you sure?'}, method: :delete
- .col-xs-5
- = render partial: 'form'
- - else
+ th Name
+ th Date
+ th Donwload
+ th Links
+ - @data_bundles.each do |data_bundle|
+ tr
+ td
+ = data_bundle.name
+ td
+ = data_bundle.created_at.strftime('%d-%m-%Y %H:%M')
+ td
+ = link_to data_bundle.file_identifier, data_bundle.file.url
+ td
+ = link_to 'Show', data_bundle
+ = link_to 'Edit', edit_data_bundle_path(data_bundle)
+ = link_to 'Destroy', data_bundle, data: {confirm: 'Are you sure?'}, method: :delete
+ .col-xs-5
+ = render partial: 'form'
+ - else
diff --git a/app/views/layouts/application.html.slim b/app/views/layouts/application.html.slim
index b35b28c..1a44cbf 100644
--- a/app/views/layouts/application.html.slim
+++ b/app/views/layouts/application.html.slim
@@ -9,7 +9,7 @@
= csrf_meta_tags
link[href="https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css" rel="stylesheet" type="text/css"]
link[href="https://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css" rel="stylesheet" type="text/css"]
- body.skin-blue
+ body.skin-blue.layout-top-nav
.wrapper
header.main-header
= link_to 'Databundle Viewer', root_path, class: 'logo'
@@ -29,7 +29,8 @@
.pull-right
= link_to 'Sign out', destroy_user_session_path, class: 'btn btn-default btn-flat', id: 'sign_out'
.content-wrapper
- = yield
+ .container
+ = yield
footer.main-footer
.control-sidebar-bg
= javascript_include_tag 'application'