Created
January 7, 2016 19:18
-
-
Save andreas-it-dev/7811bf3032ca269fb0b9 to your computer and use it in GitHub Desktop.
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
# Place all the behaviors and hooks related to the matching controller here. | |
# All this logic will automatically be available in application.js. | |
# You can use CoffeeScript in this file: http://coffeescript.org/ | |
lightbox.option({ | |
'fadeDuration': 20, | |
'maxWidth' : 50 | |
}); |
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 is a manifest file that'll be compiled into application.js, which will include all the files | |
// listed below. | |
// | |
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts, | |
// or any plugin's vendor/assets/javascripts directory can be referenced here using a relative path. | |
// | |
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the | |
// compiled file. | |
// | |
// Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details | |
// about supported directives. | |
// | |
//= require jquery | |
//= require jquery.turbolinks | |
//= require jquery_ujs | |
//= require jquery-ui/datepicker | |
//= require dataTables/jquery.dataTables | |
//= require turbolinks | |
//= require cookies_eu | |
//= require lightbox | |
//= require_tree . |
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
@import "reset"; | |
@import 'navigation'; | |
@import 'layout'; | |
@import 'font-awesome-sprockets'; | |
@import 'font-awesome'; | |
@import 'users'; | |
@import 'forms'; | |
@import 'cookies_eu'; | |
@import 'tables'; | |
@import 'jquery-ui/core'; | |
@import 'jquery-ui/theme'; | |
@import 'static_pages'; | |
@import 'lightbox'; |
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
<% provide(:title, "Show Analysis") %> | |
<article> | |
<fieldset> | |
<h2><%= @analysis.title %></h2> | |
<p><%= @analysis.body %></p> | |
<p><%= @analysis.trend %></p> | |
<p> | |
<% @analysis.images.each do |i| %> | |
<%= link_to(image_tag(i.url(:thumb).to_s), i.url, { :'data-lightbox' => 'analysis' }) %> | |
<% end %> | |
</p> | |
</fieldset> | |
</article> | |
<footer> | |
<nav> | |
<% if current_user.admin? || current_user?(@analysis) %> | |
<%= link_to 'Edit Analysis', edit_analysis_path(@analysis), class: 'button' %> | |
<% end %> | |
<% if current_user.admin? %> | |
<%= link_to 'Delete Analysis', @analysis, | |
method: :delete, | |
data: {confirm: 'Are you sure you want to permanently delete this tradeplan?'}, | |
class: 'button' %> | |
<% end %> | |
</nav> | |
</footer> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment