Skip to content

Instantly share code, notes, and snippets.

# See https://help.github.com/articles/ignoring-files for more about ignoring files.
#
# If you find yourself ignoring temporary files generated by your text editor
# or operating system, you probably want to add a global ignore instead:
# git config --global core.excludesfile '~/.gitignore_global'
# Ignore bundler config.
/.bundle
# Ignore the default SQLite database.
<%= stylesheet_link_tag "improvement_actions" %>
<%= form_for [@performance_indicator, @improvement_action] , remote: true do |f| %>
<link rel="stylesheet" type="text/css" href="//netdna.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css">
<div class="row edit_form_<%= @improvement_action.id %> edit_imprv" >
<link rel="stylesheet" type="text/css" href="//netdna.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css">
<div class="row">
<div class="panel panel-white post panel">
<div class="post-heading">
<div class="pull-left image">
<button type="button" class="btn btn-default stat-item" data-toggle="collapse" data-parent="#accordion" href="<%= "#collapse_#{improvement_action.id}" %>">
<span class="glyphicon glyphicon-pencil"></span> Comments (<%= improvement_action.comments.count %>)
</button>
<div id='<%= "collapse_#{improvement_action.id}" %>' class="panel-collapse collapse">
<div class="panel-body">
<div class="post-footer">
class ImprovementAction < ActiveRecord::Base
belongs_to :performance_indicator
belongs_to :user
acts_as_votable
has_many :comments
end