-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2516 from VictoriaAlbanese/victoria_tutorial_page
Tutorials up and running
- Loading branch information
Showing
28 changed files
with
353 additions
and
318 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -389,6 +389,3 @@ DEPENDENCIES | |
will_paginate | ||
will_paginate-bootstrap | ||
yaml_db! | ||
|
||
BUNDLED WITH | ||
1.12.3 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,7 @@ | ||
# Place all the behaviors and hooks related to the matching controller here. | ||
|
||
IS.onReady "tutorials/index", -> | ||
# Setup toggle buttons | ||
$('.btn').button() | ||
$('.binary-filters .btn').each () -> | ||
tmp = ($ this).children()[0] | ||
if ($ tmp).prop("checked") | ||
($ this).button('toggle') | ||
|
||
# Setup auto-submit | ||
($ '.tutorials_filter_checkbox').click -> | ||
($ '#tutorials_search').submit() | ||
|
||
($ '.tutorials_sort_select').change -> | ||
($ '#tutorials_search').submit() | ||
|
||
($ '.tutorials_order_select').change -> | ||
($ '#tutorials_search').submit() | ||
|
||
($ '.binary-filters .btn').on 'click', (e) -> | ||
e.preventDefault() | ||
cb = ($ ($ e.target).children()[0]) | ||
cb.prop("checked", not cb.prop("checked")) | ||
($ '#tutorials_search').submit() | ||
# Close sidenav when a link is clicked | ||
$('.mdl-navigation__link').click -> | ||
$('.mdl-layout__obfuscator').trigger('click') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,59 @@ | ||
// Place all the styles related to the Tutorials controller here. | ||
// They will automatically be included in application.css. | ||
// You can use Sass (SCSS) here: http://sass-lang.com/ | ||
.tutorials-controller { | ||
.mainContent { | ||
padding: 0 !important; // Removes all the extra padding | ||
margin: 0 !important; // flushes border | ||
width: 100% !important; // makes page body fill the screen | ||
// instead of having a fixed width | ||
.tutorialsContainer { | ||
margin-left: auto; | ||
margin-right: auto; | ||
padding: 100px; | ||
} | ||
@media (min-width: 768px) { | ||
.tutorialsContainer { | ||
width: 750px; | ||
} | ||
} | ||
@media (min-width: 992px) { | ||
.tutorialsContainer { | ||
width: 970px; | ||
} | ||
} | ||
@media (min-width: 1200px) { | ||
.tutorialsContainer { | ||
width: 1400px; | ||
} | ||
} | ||
.mdl-layout__drawer-button { | ||
color: white !important; | ||
} | ||
.mdl-layout__header{ | ||
background-color: #0D47A1; | ||
color: white; | ||
} | ||
.mdl-card__title { | ||
height: 300px !important; | ||
} | ||
.mdl-card { | ||
height:420px !important; | ||
} | ||
} | ||
|
||
.back_to_top { | ||
background-color: transparent; | ||
border-color: transparent; | ||
text-decoration: underline; | ||
color: #0645AD; | ||
} | ||
.mdl-layout__container { | ||
position: relative; | ||
} | ||
|
||
.mdl-card__supporting-text{ | ||
font-size: 1.5rem; | ||
width: 100%;; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
<div class="row"> | ||
<%= form_for(@tutorial) do |f| %> | ||
<div class="col-md-12"> | ||
<div class="form-group"> | ||
<div class="form-group col-xs-12"> | ||
<strong>Title: </strong><%= f.text_field :title, class: "form-control" %> | ||
</div> | ||
<div class="checkbox"> | ||
<div class="checkbox-inner"> | ||
<%= f.check_box :featured %> <strong>Featured</strong> | ||
</div> | ||
<span class="help-block">Featuring a tutorial makes it possible to be in the drop-down for tutorials on the navbar. The first five featured (alphabetically sorted) tutorials are shown in the list.</span> | ||
</div> | ||
<div class="col-xs-12" style="margin-top: 10px; margin-bottom: 30px;"> | ||
<%= f.label ':category', 'Categories:'%> | ||
<br/> | ||
<%= f.select(:category, options_for_select([['Getting Started','Getting Started'], ['Working With Data', 'Working With Data'], ['Visualizations', 'Visualizations']]), class: "form-control") %> | ||
</div> | ||
<div class="clear"><br></div> | ||
<div class="actions"> | ||
<div class="actions col-xs-12"> | ||
<%= f.submit "Submit",class: "btn btn-default" %> | ||
<br/> | ||
</div> | ||
</div> | ||
<% end %> | ||
</div> | ||
</div> |
Oops, something went wrong.