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
#flash_container | |
- flash.each do |name, msg| | |
- if msg.class == String | |
= content_tag :div, :id => "flash_#{name}" do | |
%span.message= msg | |
%span.dismiss{:onclick => "hideFlash();"}= link_to "Dismiss [x]", "#" |
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
.request | |
- if can? :manage, @contract | |
- if @contract.can_offer_contract? | |
= link_to 'Send Signature Request', offer_contract_signatures_url(@contract, tokenize), :method => :post | |
- elsif @contract.contract_signing? | |
= link_to 'send a signature reminder', send_reminder_contract_signatures_url(@contract, tokenize), :method => :post | |
%br | |
to #{@contract.signers.where("users.id !=?", current_user.id).first.name.strip} | |
.add | |
- if (@contract.last_transition(:sign) && @contract.last_transition(:sign).accepted_by.include?(current_user.id)) |
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
today: | |
1. basic markup - 1p | |
2. add user drop-down menu at top - 1.5p | |
3. add sign in drop-down menu at top - 0,5p | |
4. user avatar: gravatar and paperlip - 1p | |
5. add fully-ajax user edit form - 3p | |
6. all links automatically opened via ajax - 4p | |
7. Installments, Boxes, Elements managment pages - 2p | |
8. Implement ajax Installments page - 2p | |
9. add user profile info page - 1p |
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
%ul | |
- if can? :read, contract | |
%li= link_to_unless_current 'View Contract Summary', contract_url(contract), &:blank? | |
%li= link_to_unless_current 'View Full Contract', full_contract_url(contract), &:blank? | |
%li= link_to 'Download PDF', download_contract_url(contract) | |
%li= link_to 'Email PDF', '#', :class => 'mail-pdf' | |
= render 'mail_pdf_form', :contract => contract | |
%ul | |
- if can?(:edit, contract) && contract.can_revise_contract? | |
%li= link_to 'Edit Contract', edit_contract_url(contract) |
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
# FIRST RUN | |
gvalmon-pc:paperlex-fs iskanderhaziev$ cucumber features/contracts --require features | |
Using the default profile... | |
................................F---.............................................................................F--........ | |
(::) failed steps (::) | |
expected false to be true (RSpec::Expectations::ExpectationNotMetError) | |
./features/step_definitions/common/app_steps.rb:11 | |
./features/step_definitions/common/web_steps.rb:18:in `with_scope' |
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
%h1.post_title{:class => post.user.role?(:company) ? 'company' : ''} | |
- if post.blog.present? && !controller?(:blogs) | |
%span.blog_title | |
= link_to blog_path(post.blog) do | |
- if post.user.role?(:company) | |
Блог компании | |
= post.blog.title | |
→ | |
= link_to post.title, post_path(post) |
OlderNewer