p
  ' Congratulations! Your application for the
  = award.decorate.award_type
  '  has been shortlisted.

/ if they answered D1 with complete full declaration later
/- if corp_responsibility_form == "declare_now"
.application-notice.help-notice
  p
    ' You should now complete both the audit certificate and full Declaration of Corporate Responsibility by
    = application_deadline "audit_certificates"
    ' .
p
  ' Please
  = link_to "fill out the full Declaration of Corporate Responsibility", declaration_of_corporate_responsibility_path
  ' .
/ else
  p
    ' You have already completed the full Declaration of Corporate Responsibility. You can
    = link_to "view and edit it here", declaration_of_corporate_responsibility_path
    ' .

br

h3 Audit Certificate

p
  ' Please download and complete
  = link_to "this audit certificate",
            users_form_answer_audit_certificate_url(award, format: :pdf),
            target: "_blank"
  ' . You can then upload your completed certificate below.

= render "users/audit_certificates/upload_block", award: award

Add title to post submission declaration of corporate responsibility

p
  ' Congratulations! Your application for the
  = award.decorate.award_type
  '  has been shortlisted.

br

h3 Declaration of Corporate Responsibility

/ if they answered D1 with complete full declaration later
/- if corp_responsibility_form == "declare_now"
.application-notice.help-notice
  p
    ' You should now complete both the audit certificate and full Declaration of Corporate Responsibility by
    = application_deadline "audit_certificates"
    ' .
p
  ' Please
  = link_to "fill out the full Declaration of Corporate Responsibility", declaration_of_corporate_responsibility_path
  ' .
/ else
  p
    ' You have already completed the full Declaration of Corporate Responsibility. You can
    = link_to "view and edit it here", declaration_of_corporate_responsibility_path
    ' .

br

h3 Audit Certificate

p
  ' Please download and complete
  = link_to "this audit certificate",
            users_form_answer_audit_certificate_url(award, format: :pdf),
            target: "_blank"
  ' . You can then upload your completed certificate below.

= render "users/audit_certificates/upload_block", award: award


.question-group.js-financial-year.js-financial-year-latest
  label.inline.js-fy-day
    ' Day
    ul.errors-container
    select.js-trigger-autosave name="#{question.key}_day" *possible_read_only_ops
      option value="" Day
      - (1..31).each do |day|
        option value="#{day}" selected=((answers["#{question.key}_day"] || '').to_s == day.to_s)
          = day
  label.inline.js-fy-month
    ' Month
    ul.errors-container
    select.js-trigger-autosave name="#{question.key}_month" *possible_read_only_ops
      option value="" Month
      - (1..12).each do |month|
        option value="#{month}" selected=((answers["#{question.key}_month"] || '').to_s == month.to_s)
          = Date::MONTHNAMES[month]

Fix financial year end date saving and error

.question-group.js-financial-year.js-financial-year-latest
  ul.errors-container
  label.inline.js-fy-day
    ' Day
    select.js-trigger-autosave name=question.input_name(suffix: 'day') *possible_read_only_ops
      option value="" Day
      - (1..31).each do |day|
        option value="#{day}" selected=((question.input_value(suffix: 'day') || '').to_s == day.to_s)
          = day
  label.inline.js-fy-month
    ' Month
    select.js-trigger-autosave name=question.input_name(suffix: 'month') *possible_read_only_ops
      option value="" Month
      - (1..12).each do |month|
        option value="#{month}" selected=((question.input_value(suffix: 'month') || '').to_s == month.to_s)
          = Date::MONTHNAMES[month]


.main-slider
  #rev_slider_one_wrapper.rev_slider_wrapper.fullwidthbanner-container[data-source="gallery"]
    #rev_slider_one.rev_slider.fullwidthabanner[data-version="5.4.1"]
      ul
        / TODO: User render collection or empty style
        - if @sliders.empty?
          li
            = image_tag 'sliders/slide_1.jpg'
        - @sliders.each do |slider|
          li
            = image_tag slider.image_url(:large)
= render 'pages/index/about'
/ TODO: Refactor - show ticket information only per-year sites
= render 'pages/index/ticket' unless current_site.new_record?
= render 'pages/index/news'
= render 'pages/index/partner' if Partner.any?

Remove partner display on home page


.footer-full-signature-text.fontsize-small #{t('layouts.footer.titles.contact')}
a.link-footer href="http://crowdfunding.catarse.me/paratodos?ref=ctrse_footer"
  | Como funciona
  span.badge.badge-success Novidade
a.link-footer href="#{flex_url}"  #{t('layouts.footer.links.flex')}
a.link-footer href="#{team_url}"  #{t('layouts.footer.links.team')}
a.link-footer href="#{CatarseSettings[:facebook_url]}"  #{t('layouts.footer.links.facebook')}
a.link-footer href="#{CatarseSettings[:twitter_url]}"  #{t('layouts.footer.links.twitter')}
a.link-footer href="#{CatarseSettings[:instagram_url]}"  #{t('layouts.footer.links.instagram')}
a.link-footer href="#{CatarseSettings[:github_url]}"  #{t('layouts.footer.links.github')}
a.link-footer href="#{CatarseSettings[:blog_url]}?ref=ctrse_footer"  #{t('layouts.footer.links.blog')}
a.link-footer href="#{jobs_url}"  #{t('layouts.footer.links.jobs')}

Include 2016 in footer and remove Flex from footer

.footer-full-signature-text.fontsize-small #{t('layouts.footer.titles.contact')}
a.link-footer href="http://ano.catarse.me/2016?ref=ctrse_footer"
  | 2016 no Catarse
  span.badge.badge-success Novidade
a.link-footer href="http://crowdfunding.catarse.me/paratodos?ref=ctrse_footer"
  | Como funciona
a.link-footer href="#{team_url}"  #{t('layouts.footer.links.team')}
a.link-footer href="#{CatarseSettings[:facebook_url]}"  #{t('layouts.footer.links.facebook')}
a.link-footer href="#{CatarseSettings[:twitter_url]}"  #{t('layouts.footer.links.twitter')}
a.link-footer href="#{CatarseSettings[:instagram_url]}"  #{t('layouts.footer.links.instagram')}
a.link-footer href="#{CatarseSettings[:github_url]}"  #{t('layouts.footer.links.github')}
a.link-footer href="#{CatarseSettings[:blog_url]}?ref=ctrse_footer"  #{t('layouts.footer.links.blog')}
a.link-footer href="#{jobs_url}"  #{t('layouts.footer.links.jobs')}


doctype html
html
  head
    title Manage Your Gevirtz Account
    base href==uri('/')
    link href==uri('/stylesheets/screen.css') media='screen, projection' rel='stylesheet' type='text/css'
    /[if IE]
      link href==uri('/stylesheets/ie.css') media='screen, projection' rel='stylesheet' type='text/css'
    script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery#{ENV['RACK_ENV'] == 'production' ? '.min' : ''}.js"
    script src==uri('/app.js')

  body
    #container
      #header
        h1 Manage Your Gevirtz Account
      #nav
        ul
          li
            a href==uri('/change_password') Change Password
          li
            .more title='more' more
            ul
              li
                a href==uri('/admin/reset') Admin Reset

      #content
        == yield
      #footer
        p
          | Copyright © 2012
          a href='http://www.universityofcalifornia.edu/regents/welcome.html'  The Regents
          |  of the
          a href='http://www.universityofcalifornia.edu/'  University of California

    #page_shadow

Add link for webmail login

doctype html
html
  head
    title Manage Your Gevirtz Account
    base href==uri('/')
    link href==uri('/stylesheets/screen.css') media='screen, projection' rel='stylesheet' type='text/css'
    /[if IE]
      link href==uri('/stylesheets/ie.css') media='screen, projection' rel='stylesheet' type='text/css'
    script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery#{ENV['RACK_ENV'] == 'production' ? '.min' : ''}.js"
    script src==uri('/app.js')

  body
    #container
      #header
        h1 Manage Your Gevirtz Account
      #nav
        ul
          li
            a href==uri('/change_password') Change Password
          li
            a href='http://education.ucsb.edu/itg' Webmail Login
          li
            .more title='more' more
            ul
              li
                a href==uri('/admin/reset') Admin Reset

      #content
        == yield
      #footer
        p
          | Copyright © 2012
          a href='http://www.universityofcalifornia.edu/regents/welcome.html'  The Regents
          |  of the
          a href='http://www.universityofcalifornia.edu/'  University of California

    #page_shadow


- if @form_answer.submitted_and_after_the_deadline?
  .form-group
    = simple_form_for [namespace_name, @form_answer],
                      remote: true,
                      authenticity_token: true,
                      html: { "data-type" => "html", class: "company-name-form"} do |f|

      = hidden_field_tag :section, "company_name"
      label.form-label Company name
      .form-value
        p = @form_answer.company_name
      .input.form-group.form-fields.form-block
        = f.input :company_or_nominee_name,
                  as: :string,
                  label: false,
                  input_html: { class: "form-control" }

        .form-actions.text-right
          = link_to "Cancel", "#", class: "btn btn-default form-cancel-link if-no-js-hide"
          = f.submit "Save", class: "btn btn-primary pull-right"
      .clear
      = link_to "#", class: "form-edit-link pull-right"
        span.glyphicon.glyphicon-pencil
        ' Edit
      .clear
- else
  .form-group
    label.form-label Company name
    p = @form_answer.company_name

COPY company name -> nominee name for QAEP forms

- if @form_answer.submitted_and_after_the_deadline?
  - account_name = @form_answer.award_type == "promotion" ? "Nominee name" : "Company name"

  .form-group
    = simple_form_for [namespace_name, @form_answer],
                      remote: true,
                      authenticity_token: true,
                      html: { "data-type" => "html", class: "company-name-form"} do |f|

      = hidden_field_tag :section, "company_name"
      label.form-label = account_name
      .form-value
        p = @form_answer.company_name
      .input.form-group.form-fields.form-block
        = f.input :company_or_nominee_name,
                  as: :string,
                  label: false,
                  input_html: { class: "form-control" }

        .form-actions.text-right
          = link_to "Cancel", "#", class: "btn btn-default form-cancel-link if-no-js-hide"
          = f.submit "Save", class: "btn btn-primary pull-right"
      .clear
      = link_to "#", class: "form-edit-link pull-right"
        span.glyphicon.glyphicon-pencil
        ' Edit
      .clear
- else
  .form-group
    label.form-label = account_name
    p = @form_answer.company_name


= content_tag_for(:tr, f.object, class: 'nested-fields') do
  td = f.input :name, label: false, input_html: { class: 'invitation_name' }
  td = f.input :email, required: true, label: false, input_html: { class: 'invitation_email' }
  td = f.input :role,
               as: :select,
               collection: Course::UserInvitation.invitable_roles(current_course_user.role).keys,
               label: false,
               label_method: lambda { |role_key| t("course.users.role.#{role_key}") },
               include_blank: false,
               input_html: { class: 'invitation_role' }
  td = f.input :phantom, label: false
  td = link_to_remove_association  t('.remove'), f

Fix role = nil in invite users tab

= content_tag_for(:tr, f.object, class: 'nested-fields') do
  td = f.input :name, label: false, input_html: { class: 'invitation_name' }
  td = f.input :email, required: true, label: false, input_html: { class: 'invitation_email' }
  td = f.input :role,
               as: :select,
               collection: Course::UserInvitation.invitable_roles(current_course_user&.role).keys,
               label: false,
               label_method: lambda { |role_key| t("course.users.role.#{role_key}") },
               include_blank: false,
               input_html: { class: 'invitation_role' }
  td = f.input :phantom, label: false
  td = link_to_remove_association  t('.remove'), f


h2 Interested in speaking?

p Please fill out this form, and Mike will get back to you as soon as he can.

= form_for @talk, :html => {:class => 'form-horizontal'} do |f|
  fieldset
    legend ATLRUG Talk Proposal

    .control-group
      = f.label :title, :class => 'control-label'
      .controls
        = f.text_field :title

    .control-group
      = f.label :duration, "Duration (minutes)", :class => 'control-label'
      .controls
        = f.number_field :duration, :step => 5
        p Just an estimation. Typical talks run 15-30 minutes.

    .form_actions
      = f.submit "Submit Proposal", :class => "btn btn-primary"

Fix form actions not styled correctly

h2 Interested in speaking?

p Please fill out this form, and Mike will get back to you as soon as he can.

= form_for @talk, :html => {:class => 'form-horizontal'} do |f|
  fieldset
    legend ATLRUG Talk Proposal

    .control-group
      = f.label :title, :class => 'control-label'
      .controls
        = f.text_field :title

    .control-group
      = f.label :duration, "Duration (minutes)", :class => 'control-label'
      .controls
        = f.number_field :duration, :step => 5
        p Just an estimation. Typical talks run 15-30 minutes.

    .form-actions
      = f.submit "Submit Proposal", :class => "btn btn-primary"


- content_for :canonical_url, request.url
- cache ['home_page', I18n.t] do

  = render 'layouts/partials/callout/callout'

  .Explainaition-area#explaination
    h4.Explainaition-area__headline = t '.explaination.headline'
    .Explainaition-area__wrapper
      .Explainaition-area__video
        | <iframe src="http://player.vimeo.com/video/47387431?title=0&amp
          ;byline=0&portrait=0&autoplay=0"
          width="1600" height="900" frameborder="0" webkitAllowFullScreen
          mozallowfullscreen allowFullScreen></iframe>

Fix mixed content, avoid video load for now

- content_for :canonical_url, request.url
- cache ['home_page', I18n.t] do

  = render 'layouts/partials/callout/callout'

  / .Explainaition-area#explaination
    h4.Explainaition-area__headline = t '.explaination.headline'
    .Explainaition-area__wrapper
      .Explainaition-area__video
        | <iframe src="https://player.vimeo.com/video/47387431?title=0&amp
          ;byline=0&portrait=0&autoplay=0"
          width="1600" height="900" frameborder="0" webkitAllowFullScreen
          mozallowfullscreen allowFullScreen></iframe>


header
  .photo-bg.overlay
  .noise.overlay
  .header-innner.overlay
    p.catch
      | Rubyist は、すぐそこに
    h2
      | Rubyist Connect
      span beta
    p.header-lead
      | Rubyist Connect は、あなたの身近な Rubyist や趣味の近い Rubyist を探すことができます。
      br
      | 魅力的な Rubyist とつながって一緒に勉強してみませんか。
    = link_to user_omniauth_authorize_path(:github), class: 'login-btn btn' do
      i.fa.fa-github-square
      |  Sign in with GitHub

article.about
  h2.bold about
  ul
    li
      i.fa.fa-search
      h3 Search
      p 近くの Rubyist と
    li
      i.fa.fa-share-alt
      h3 Share
      p 趣味の近い Rubyist を
    li
      i.fa.fa-pencil
      h3 Study
      p 勉強会をサポート

article.new-members
  h2.bold new members
  ul
    - @users.each do |user|
      li
        = image_tag user.image, class: 'img-circle', size: '80x80', alt: user.name_or_nickname
  a.btn
    | more...

footer
  p
    | Author by
    =  link_to '@yuji_shimoda', 'https://twitter.com/yuji_shimoda', target: '_blank'

Use helper method for fontawesome

header
  .photo-bg.overlay
  .noise.overlay
  .header-innner.overlay
    p.catch
      | Rubyist は、すぐそこに
    h2
      | Rubyist Connect
      span beta
    p.header-lead
      | Rubyist Connect は、あなたの身近な Rubyist や趣味の近い Rubyist を探すことができます。
      br
      | 魅力的な Rubyist とつながって一緒に勉強してみませんか。
    = link_to user_omniauth_authorize_path(:github), class: 'login-btn btn' do
      = fa_icon 'github-square'
      |  Sign in with GitHub

article.about
  h2.bold about
  ul
    li
      = fa_icon 'search'
      h3 Search
      p 近くの Rubyist と
    li
      = fa_icon 'share-alt'
      h3 Share
      p 趣味の近い Rubyist を
    li
      = fa_icon 'pencil'
      h3 Study
      p 勉強会をサポート

article.new-members
  h2.bold new members
  ul
    - @users.each do |user|
      li
        = image_tag user.image, class: 'img-circle', size: '80x80', alt: user.name_or_nickname
  a.btn
    | more...

footer
  p
    | Author by
    =  link_to '@yuji_shimoda', 'https://twitter.com/yuji_shimoda', target: '_blank'


- project = @notification.project
- user = @notification.user
|Howdy, #{user.display_name}.
br
br
| #{project.user.display_name} just started a new project on #{Configuration[:company_name]} and we thought you'd like to know! Check out the awesome work they're doing.
br
br

table border="0" cellpadding="3" cellspacing="0" width="220" align="center"
  tr
    td width="220" valign="top"
      = link_to project_url(project), style: 'text-decoration: none; color: #333;' do
        = image_tag(project.display_image.gsub('+', ''), size: '220x172')
        br/
        p style='font-size: 13px; padding: 5px; text-align: center'= link_to(project.name, project_url(project))

br
|High fives,
br
| The #{Configuration[:company_name]} Team

Fix notification when project does not have a image

- project = @notification.project
- user = @notification.user
|Howdy, #{user.display_name}.
br
br
| #{project.user.display_name} just started a new project on #{Configuration[:company_name]} and we thought you'd like to know! Check out the awesome work they're doing.
br
br

table border="0" cellpadding="3" cellspacing="0" width="220" align="center"
  tr
    td width="220" valign="top"
      = link_to project_url(project), style: 'text-decoration: none; color: #333;' do
        = image_tag(project.display_image.gsub('+', ''), size: '220x172') if project.display_image.present?
        br/
        p style='font-size: 13px; padding: 5px; text-align: center'= link_to(project.name, project_url(project))

br
|High fives,
br
| The #{Configuration[:company_name]} Team


= simple_form_for @project, html: { class: 'project-form w-form' } do |form|
  .w-section.section
    .w-container
      .w-row
        .w-col.w-col-10.w-col-push-1
          .w-form
              = @project.display_errors(:description)
              =  hidden_field_tag 'project_id', @project.id
              =  hidden_field_tag 'anchor', 'description'

              = form.input :about_html, as: :text,
                wrapper: :two_columns,
                wrapper_class: 'w-row u-marginbottom-30 card card-terciary padding-redactor-description',
                input_html: { class: 'redactor positive', required: true },
                validation_text: false
    .w-section.save-draft-btn-section
      .w-container
        .w-row
          .w-col.w-col-4.w-col-push-4
            = hidden_field_tag 'anchor', 'description'
            = form.button :submit, t('.submit'), class:'btn btn-medium', id: 'description-save'

Include link to description ebook on Description Dashboard

= simple_form_for @project, html: { class: 'project-form w-form' } do |form|
  .w-section.section
    .w-container
      .w-row
        .w-col.w-col-10.w-col-push-1
          .u-marginbottom-60.u-text-center
            .w-inline-block.card.fontsize-small.u-radius
              span.fa.fa-lightbulb-o
              | Saiba como
              a.alt-link href="https://catarse.attach.io/BJmQVOiR" target="_blank"  criar uma descrição cativante!

          .w-form
              = @project.display_errors(:description)
              =  hidden_field_tag 'project_id', @project.id
              =  hidden_field_tag 'anchor', 'description'

              = form.input :about_html, as: :text,
                wrapper: :two_columns,
                wrapper_class: 'w-row u-marginbottom-30 card card-terciary padding-redactor-description',
                input_html: { class: 'redactor positive', required: true },
                validation_text: false
    .w-section.save-draft-btn-section
      .w-container
        .w-row
          .w-col.w-col-4.w-col-push-4
            = hidden_field_tag 'anchor', 'description'
            = form.button :submit, t('.submit'), class:'btn btn-medium', id: 'description-save'


= form_for @nippo, class: 'form-horizontal' do |f|
  fieldset
    .form-group.label-floating
      label.control-label for="nippo_reported_for" 日付
      = f.text_field(:reported_for, class: 'form-control')
      p.help-block 指定した日付の日報として送信されます（件名にも挿入されます）
    .form-group.label-floating
      label.control-label for="nippo_body" 本文
      = f.text_area(:body, rows: 40, class: 'form-control')
    .form-group
      = f.submit '日報送信', class: 'btn btn-raised btn-info'

Move send button to top

= form_for @nippo, class: 'form-horizontal' do |f|
  fieldset
    .form-group.label-floating
      .input-group
        label.control-label for="nippo_reported_for" 日付
        = f.text_field(:reported_for, class: 'form-control', tabindex: -1)
        p.help-block 指定した日付の日報として送信されます（件名にも挿入されます）
        span.input-group-btn
          = f.submit '日報送信', class: 'btn btn-raised btn-info', tabindex: 2
    .form-group.label-floating
      label.control-label for="nippo_body" 本文
      = f.text_area(:body, rows: 40, class: 'form-control', tabindex: 1)


nav.actions
  ul.list-inline
    li = link_to 'My Team', current_student.current_team, class: 'btn btn-default btn-sm' if current_student&.current_team
    li = link_to icon('plus', 'New Team'), new_team_path, class: 'btn btn-primary btn-sm' if can? :create, Team
    = 'Sign up to create your own team!' unless current_user
  div.pull-right.dropdown
    button.btn.btn-default.dropdown-toggle data-toggle="dropdown"
      | Past Teams
      span.caret<
    ul.dropdown-menu role="menu"
      - Season.all_years.each do |year|
        li
         a data-behaviour="switch-teams-year" data-value=year =year

= render 'table', namespace: nil

Rename selector button on teams index to 'Select by Year'. Revise dropdown menu to display years in chronological order

nav.actions
  ul.list-inline
    li = link_to 'My Team', current_student.current_team, class: 'btn btn-default btn-sm' if current_student&.current_team
    li = link_to icon('plus', 'New Team'), new_team_path, class: 'btn btn-primary btn-sm' if can? :create, Team
    = 'Sign up to create your own team!' unless current_user
  div.pull-right.dropdown
    button.btn.btn-default.dropdown-toggle data-toggle="dropdown"
      | Select by Year
      span.caret<
    ul.dropdown-menu role="menu"
      - Season.all_years.sort.each do |year|
        li
         a data-behaviour="switch-teams-year" data-value=year =year

= render 'table', namespace: nil


= page_header t('.heading')
= render 'form'

Add breadcrumbs to edit timesheet entry

= page_header t('.heading')

ul.breadcrumb
  li
    => link_to @timesheet_entry.organisation.name, organisation_path(@timesheet_entry.organisation)
  li.active
    = t('.heading')

= render 'form'


- wrap_layout :layout do
  .col-md-9
    .row.template-header
      h1.text-center = talk.title
      .byline.text-center
        | A talk by
        span.speaker-name = talk.speaker
      .talk-details.text-center
        <i class="fa fa-map-marker"></i>
        | In the #{talk.room} room, at #{talk.session} on #{talk.day}
    .col-md-10.col-md-offset-1
      .talk-abstract
        == yield
      - if talk.video
        .talk-video.text-center
          iframe width="560" height="315" rel="false" src="//www.youtube.com/embed/#{talk.video}" frameborder="0" allowfullscreen
      == partial '/talk_preview', :object => talk.preview if talk.preview
      h2 Talk Notes
      == partial '/talk_notes_summary', :collection => talk.notes

Remove talk notes for the moment

- wrap_layout :layout do
  .col-md-9
    .row.template-header
      h1.text-center = talk.title
      .byline.text-center
        | A talk by
        span.speaker-name = talk.speaker
      .talk-details.text-center
        <i class="fa fa-map-marker"></i>
        | In the #{talk.room} room, at #{talk.session} on #{talk.day}
    .col-md-10.col-md-offset-1
      .talk-abstract
        == yield
      - if talk.video
        .talk-video.text-center
          iframe width="560" height="315" rel="false" src="//www.youtube.com/embed/#{talk.video}" frameborder="0" allowfullscreen
      == partial '/talk_preview', :object => talk.preview if talk.preview
      /h2 Talk Notes
      /== partial '/talk_notes_summary', :collection => talk.notes


.card.u-radius.u-marginbottom-20
  .fontsize-smaller.fontweight-semibold.u-marginbottom-20 = t('.value')
  .w-clearfix.u-marginbottom-20
    .fontsize-larger.text-success.u-left = @contribution.display_value
    = link_to t('.edit'), new_project_contribution_path(@contribution.project), class: 'fontsize-small link-hidden u-right fontweight-semibold'
  p.fontsize-smallest.choose-reward
    span=>  @contribution.display_project_value
    | irão para o projeto
    span=< @contribution.project.name
    |  e
    span=<>  @contribution.display_platform_value
    | irão para a Juntos.com.vc
  .back-payment-info-reward
    .fontsize-smaller.fontweight-semibold.u-marginbottom-10 = t('.reward')
    .fontsize-smallest
      - if @contribution.reward
        == @contribution.reward.display_description
      - else
        == t('.review_without_reward_html', value: @contribution.display_value)

Fix the project contribution value review box

.card.u-radius.u-marginbottom-20
  .fontsize-smaller.fontweight-semibold.u-marginbottom-20 = t('.value')
  .w-clearfix.u-marginbottom-20
    .fontsize-larger.text-success.u-left = @contribution.display_value
    = link_to t('.edit'), new_project_contribution_path(@contribution.project), class: 'fontsize-small link-hidden u-right fontweight-semibold'
  p.fontsize-smallest.choose-reward
    span=>  @contribution.display_project_value
    | irão para o projeto
    span=< @contribution.project.name
    - if @contribution.platform_value.present?
      |  e
      span=<>  @contribution.display_platform_value
      | irão para a Juntos.com.vc
  .back-payment-info-reward
    .fontsize-smaller.fontweight-semibold.u-marginbottom-10 = t('.reward')
    .fontsize-smallest
      - if @contribution.reward
        == @contribution.reward.display_description
      - else
        == t('.review_without_reward_html', value: @contribution.display_value)


h1 Create a New Work

=form_for(@work, { :url => { :action => 'create' }}) do |f|
  =validation_summary @work

  table.form
    tr
      th =f.label :title
      td.w100 =f.text_field :title
    tr
      th =f.label :description
      td =f.text_area :description

  =f.button 'Create Work'

Create Work - form centering and help text

section.signon
  h1 Create New Work
  p To create a new work please start from entering a title for the work. Although description is not required, it would be nice to describe the work here.

  =form_for(@work, { :url => { :action => 'create' }}) do |f|
    =validation_summary @work
    table.form
      tr.big
        th =f.label :title
        td.w100 =f.text_field :title
      tr
        th =f.label :description
        td =f.text_area :description
    p.aright
      =f.button 'Create Work'


div[ng-controller="IndexController"]
  = render 'shared/persistent_header', entity: 'brasil', year_navigation: true
  .showcase
    .container
      .row
        .span7
          h2
            | O portal que visa facilitar o acesso dos cidadãos/ãs e organizações da sociedade civil aos dados do orçamento federal.
          a.btn-large.btn[href='http://openspending.org/unidade_orcamentaria.csv' target='_blank']
            span.icon-download.icon-large>
            span.text
              | Baixar planilha com os dados
              br
              small
                | (em formato CSV - XX mb)
        .span5
          = image_tag 'logo.png'
  .home-header
    .container
      h3
        | O Orçamento Federal
  .monitor
    .container
      monitor[entity='brasil' year='year']
  .function
    .container
      h3
        | Distribuição do Orçamento Autorizado por Função e Subfunção
    funcao-graph.funcao-treemap[year='year'
      drilldowns='"funcao","subfuncao"']
  .navigation
    .container
      h3
        | Lista de Órgãos e Unidades Orçamentárias
      entity-list[class='table' entities='entities' year='year']

Remove informação de tamanho do arquivo CSV no CTA principal da página inicial.

div[ng-controller="IndexController"]
  = render 'shared/persistent_header', entity: 'brasil', year_navigation: true
  .showcase
    .container
      .row
        .span7
          h2
            | O portal que visa facilitar o acesso dos cidadãos/ãs e organizações da sociedade civil aos dados do orçamento federal.
          a.btn-large.btn[href='http://openspending.org/unidade_orcamentaria.csv' target='_blank']
            span.icon-download.icon-large>
            span.text
              | Baixar planilha com os dados
              br
              small
                | (em formato .CSV)
        .span5
          = image_tag 'logo.png'
  .home-header
    .container
      h3
        | O Orçamento Federal
  .monitor
    .container
      monitor[entity='brasil' year='year']
  .function
    .container
      h3
        | Distribuição do Orçamento Autorizado por Função e Subfunção
    funcao-graph.funcao-treemap[year='year'
      drilldowns='"funcao","subfuncao"']
  .navigation
    .container
      h3
        | Lista de Órgãos e Unidades Orçamentárias
      entity-list[class='table' entities='entities' year='year']


= render @post

.post-info
  - if @post.successor.present?
    p.light
      ' succeeded by:
      = link_to "#{@post.successor.sha}", @post.successor

  - if @post.predecessor.present?
    p.light
      ' preceeded by:
      = link_to "#{@post.predecessor.sha}", @post.predecessor

  - if can?(:edit, @post)
    p.light
      = link_to 'edit this post', [:edit, @post]

Use short SHAs for predecessors/successors

= render @post

.post-info
  - if @post.successor.present?
    p.light
      ' succeeded by:
      = link_to @post.successor.short_sha, @post.successor

  - if @post.predecessor.present?
    p.light
      ' preceeded by:
      = link_to @post.predecessor.short_sha, @post.predecessor

  - if can?(:edit, @post)
    p.light
      = link_to 'edit this post', [:edit, @post]


h1
  = @user.email
  - if @user.id == current_user.id
    '
    = link_to 'Edit', edit_user_registration_path, class: 'btn btn-mini'

p User since #{@user.created_at.to_date}

h3= pluralize @edits.count, "Edit"
= bootstrap_will_paginate @edits
table#revisions.table.table-condensed.table-striped
  thead
    tr
      th Time
      th Action
      th Object
  tbody
    - @edits.each do |v|
      - item = v.item
      tr
        td #{time_ago_in_words v.created_at} ago
        td= v.event.capitalize
        td= link_to item.name, item
      tr.description
        td{ colspan=3 }= word_diff v

Fix 500s on user show page

h1
  = @user.email
  - if current_user && @user.id == current_user.id
    '
    = link_to 'Edit', edit_user_registration_path, class: 'btn btn-mini'

p User since #{@user.created_at.to_date}

h3= pluralize @edits.count, "Edit"
= bootstrap_will_paginate @edits
table#revisions.table.table-condensed.table-striped
  thead
    tr
      th Time
      th Action
      th Object
  tbody
    - @edits.each do |v|
      / FIXME: destroy old versions on delete
      - next unless item = v.item
      tr
        td #{time_ago_in_words v.created_at} ago
        td= v.event.capitalize
        td= link_to item.name, item
      tr.description
        td{ colspan=3 }= word_diff v


| Ação necessária! Confirme informações para entrega da recompensa

Add project name to subject

| Ação necessária! Confirme informações para entrega da recompensa do #{@notification.contribution.project.name}


- content_for :title, post.page_title
- content_for :twitter_title, post.twitter_title
- content_for :url, post_url(post)
- content_for :image_url, post.author.photo_url
- content_for :description, post.description
- content_for :twitter_description, post.description
- content_for :twitter_creator, "@#{post.author.twitter_handle}"

= render 'post_hero', post: post

- cache [post, 'show']
  .u-xSmallThenSmallMargin

  .PostWidthConstrainer
    = render 'shared/tag_list', tag_list: post.tag_list
  .u-smallThenDefaultMargin

  .Post
    .Post-body = post.processed_body

  .PostWidthConstrainer
    .u-defaultThenLargeMargin
    .Separator.Separator--subvisual
    .u-defaultThenLargeMargin

    = render 'author_bio', author: post.author
    .u-defaultThenLargeMargin

= render 'related_posts', post: post
.u-largeMargin

.PostWidthConstrainer
  = render 'shared/hire_us'
.u-defaultMargin

.Separator.Separator--subvisual
.u-largeMargin

= render '/shared/newsletter'
.u-largeMargin

= render 'shared/disqus', post: post
.u-largeMargin

Disable post cache for now

- content_for :title, post.page_title
- content_for :twitter_title, post.twitter_title
- content_for :url, post_url(post)
- content_for :image_url, post.author.photo_url
- content_for :description, post.description
- content_for :twitter_description, post.description
- content_for :twitter_creator, "@#{post.author.twitter_handle}"

= render 'post_hero', post: post

/* - cache [post, 'show'] */
.u-xSmallThenSmallMargin

.PostWidthConstrainer
  = render 'shared/tag_list', tag_list: post.tag_list
.u-smallThenDefaultMargin

.Post
  .Post-body = post.processed_body

.PostWidthConstrainer
  .u-defaultThenLargeMargin
  .Separator.Separator--subvisual
  .u-defaultThenLargeMargin

  = render 'author_bio', author: post.author
  .u-defaultThenLargeMargin

= render 'related_posts', post: post
.u-largeMargin

.PostWidthConstrainer
  = render 'shared/hire_us'
.u-defaultMargin

.Separator.Separator--subvisual
.u-largeMargin

= render '/shared/newsletter'
.u-largeMargin

= render 'shared/disqus', post: post
.u-largeMargin


- filters = locals[:filters] || ["sepia-40", "vignette-90"]
- filters = filters + Array(locals[:filters_plus])
- tall = locals[:panorama] ? "" : 'chapter-divider-tall'
.intro-header.shadow-z-5.chapter-divider.snap[style="background-image: url('#{post_image_path image}')" class="#{Array(filters).join(" ")} " class="#{tall}"]
  - if locals[:video]
    = partial :video, locals: locals
  .container
    .row
      .col-lg-8.col-lg-offset-2.col-md-10.col-md-offset-1
        .chapter
          = yield

Add position attribute to divider partial.

- filters = locals[:filters] || ["sepia-40", "vignette-90"]
- filters = filters + Array(locals[:filters_plus])
- position = locals[:position] ? "background-position: #{position};"  : ""
- tall = locals[:panorama] ? "" : 'chapter-divider-tall'
.intro-header.shadow-z-5.chapter-divider.snap[style="background-image: url('#{post_image_path image}'); #{position}" class="#{Array(filters).join(" ")} " class="#{tall}"]
  - if locals[:video]
    = partial :video, locals: locals
  .container
    .row
      .col-lg-8.col-lg-offset-2.col-md-10.col-md-offset-1
        .chapter
          = yield


footer.row
  .col-md-9
    ul.footer-social.hidden-xs.hidden-sm
        li
          = link_to 'Crowd Interactive', 'http://www.crowdint.com/', class: 'sprite-c-logo', target: '_blank'
        li
          = link_to 'Facebook', 'https://www.facebook.com/CrowdInteractive', class: 'sprite-fb', target: '_blank'
        li
          = link_to 'Twitter', 'https://twitter.com/Crowdint', class: 'sprite-twt', target: '_blank'
        li
          = link_to 'Google +', 'https://plus.google.com/100816706068922064575/posts', class: 'sprite-google', target: '_blank'
        li
          = link_to 'Foursquare', 'https://foursquare.com/crowdint', class: 'sprite-foursquare', target: '_blank'
        li
          = link_to 'Instagram', 'http://instagram.com/crowdint', class: 'sprite-inst', target: '_blank'
        li
          = link_to 'Pinterest', 'http://pinterest.com/crowdint', class: 'sprite-pin', target: '_blank'
    .footer-footer
      p
        |
          Crowd Interactive © 2014, This site is protected by copyright.
          Under U.S. and international law.  All rights reserved.

Use Time.zone.now.year instead of hardcoded year

footer.row
  .col-md-9
    ul.footer-social.hidden-xs.hidden-sm
        li
          = link_to 'Crowd Interactive', 'http://www.crowdint.com/', class: 'sprite-c-logo', target: '_blank'
        li
          = link_to 'Facebook', 'https://www.facebook.com/CrowdInteractive', class: 'sprite-fb', target: '_blank'
        li
          = link_to 'Twitter', 'https://twitter.com/Crowdint', class: 'sprite-twt', target: '_blank'
        li
          = link_to 'Google +', 'https://plus.google.com/100816706068922064575/posts', class: 'sprite-google', target: '_blank'
        li
          = link_to 'Foursquare', 'https://foursquare.com/crowdint', class: 'sprite-foursquare', target: '_blank'
        li
          = link_to 'Instagram', 'http://instagram.com/crowdint', class: 'sprite-inst', target: '_blank'
        li
          = link_to 'Pinterest', 'http://pinterest.com/crowdint', class: 'sprite-pin', target: '_blank'
    .footer-footer
      p
        |
          Crowd Interactive © #{Time.zone.now.year}, This site is protected by copyright.
          Under U.S. and international law.  All rights reserved.


nav.navbar.navbar-fixed-top.header
  .col-md-12#nav-bar
    .navbar-header
      a.navbar-brand href="#" linkit
      button.navbar-toggle data-target="#navbar-collapse1" data-toggle="collapse" type="button"
        i.glyphicon.glyphicon-search
    #navbar-collapse1.collapse.navbar-collapse
      ul.nav.navbar-nav.navbar-right style="font-size: large;"
        li
          - if user_signed_in?
            = link_to "Logout", destroy_user_session_path, method: "delete",
            :"data-toggle" => "modal", :role => "button"
          - else
            a data-toggle="modal" href="#loginModal" role="button" Login
        - unless user_signed_in?
          li
            a data-toggle="modal" href="#RegisterModal" role="button" Register
        li
          a#nav-search href="#search" area-controls="navp-search" data-toggle="tab" role="tab"
            i.fa.fa-search.fa-lg
        //li
        //  a#btnToggle.iso-shuffle
        //    i.fa.fa-th.fa-lg
        li
          = link_to posts_path(format: "rss")
            i.fa.fa-rss.fa-lg
        li
          a.back-top
            i.fa.fa-arrow-up.fa-lg

Fix navbar, made css cursor: default

nav.navbar.navbar-fixed-top.header
  .col-md-12#nav-bar
    .navbar-header
      .navbar-brand style="color: #428bca; cursor: default;" linkit
      button.navbar-toggle data-target="#navbar-collapse1" data-toggle="collapse" type="button"
        i.glyphicon.glyphicon-search
    #navbar-collapse1.collapse.navbar-collapse
      ul.nav.navbar-nav.navbar-right style="font-size: large;"
        li
          - if user_signed_in?
            = link_to "Logout", destroy_user_session_path, method: "delete",
            :"data-toggle" => "modal", :role => "button"
          - else
            a data-toggle="modal" href="#loginModal" role="button" Login
        - unless user_signed_in?
          li
            a data-toggle="modal" href="#RegisterModal" role="button" Register
        li
          a#nav-search href="#search" area-controls="navp-search" data-toggle="tab" role="tab"
            i.fa.fa-search.fa-lg
        //li
        //  a#btnToggle.iso-shuffle
        //    i.fa.fa-th.fa-lg
        li
          = link_to posts_path(format: "rss")
            i.fa.fa-rss.fa-lg
        li
          a.back-top
            i.fa.fa-arrow-up.fa-lg


p
  strong Identifier (DOI or arXiv)
  | First, tell us which paper this gist is for, by providing it's identifier:
= f.simple_fields_for :paper do |p|
  = p.input :identifier, label: 'DOI or arXiv', placeholder: 'DOI (e.g. “doi: 10.1021/ac1014832”) or arXiv identifier (e.g. “arXiv:1301.7746”)'
  = p.input :title, input_html: { id: 'title'}, placeholder: 'Fill in identifier above'
  = p.simple_fields_for :metadata do |m|
    = m.input :authors, input_html: { id: 'authors', value: paper.metadata[:authors]}, required: false, placeholder: 'Fill in identifier above'
    = m.input :journal, input_html: { id: 'journal', value: paper.metadata[:journal]}, required: false, placeholder: 'Fill in identifier above'
p
  strong Gist
  | Describe in simple terms what the paper is about:
= f.input :content, label: false, placeholder: 'The Gist'
.submit
  = f.button :submit, :class => 'btn'

Fix typo. Thanks for spotting it, Melissa Lewis!

p
  strong Identifier (DOI or arXiv)
  | First, tell us which paper this gist is for, by providing its identifier:
= f.simple_fields_for :paper do |p|
  = p.input :identifier, label: 'DOI or arXiv', placeholder: 'DOI (e.g. “doi: 10.1021/ac1014832”) or arXiv identifier (e.g. “arXiv:1301.7746”)'
  = p.input :title, input_html: { id: 'title'}, placeholder: 'Fill in identifier above'
  = p.simple_fields_for :metadata do |m|
    = m.input :authors, input_html: { id: 'authors', value: paper.metadata[:authors]}, required: false, placeholder: 'Fill in identifier above'
    = m.input :journal, input_html: { id: 'journal', value: paper.metadata[:journal]}, required: false, placeholder: 'Fill in identifier above'
p
  strong Gist
  | Describe in simple terms what the paper is about:
= f.input :content, label: false, placeholder: 'The Gist'
.submit
  = f.button :submit, :class => 'btn'


h2
  ' Team #{user.email}
  - challange = user.challange(@combat)
  - if challange.pending?
    = link_to 'Accept challange', join_to_combat_combat_user_path(combat_id: @combat.id, id: user.id), class: 'btn btn-small btn-success'
  - elsif challange.surrendered?
    em.muted Gived up
  - elsif challange.rejected?
    em.muted Rejected
  - else
    - leave_combat_btn_text = @combat.in_course? ? 'Surrender' : 'Leave combat'
    = link_to leave_combat_btn_text, leave_combat_combat_user_path(combat_id: @combat.id, id: user.id), class: 'btn btn-small btn-danger', method: :delete, :data => { :confirm => t('.confirm', :default => t("helpers.links.confirm", :default => 'Are you sure?')) }
ul.unstyled.inline
  - user.units.each do |unit|
    li
      .btn-group
        - if unit.dead?
          .btn.disabled #{unit.name} ☠
        - else
          a.btn.dropdown-toggle data-toggle="dropdown" href="#"
            =' unit.name
            | (
            =' unit.current_health
            | )
            span.caret
          = render 'skills', combat: combat, unit: unit

Disable surrendered or rejected teams.

h2
  ' Team #{user.email}
  - challange = user.challange(@combat)
  - if challange.pending?
    = link_to 'Accept challange', join_to_combat_combat_user_path(combat_id: @combat.id, id: user.id), class: 'btn btn-small btn-success'
  - elsif challange.surrendered?
    em.muted Gived up
  - elsif challange.rejected?
    em.muted Rejected
  - else
    - leave_combat_btn_text = @combat.in_course? ? 'Surrender' : 'Leave combat'
    = link_to leave_combat_btn_text, leave_combat_combat_user_path(combat_id: @combat.id, id: user.id), class: 'btn btn-small btn-danger', method: :delete, :data => { :confirm => t('.confirm', :default => t("helpers.links.confirm", :default => 'Are you sure?')) }
ul.unstyled.inline
  - user.units.each do |unit|
    li
      .btn-group
        - if unit.dead?
          .btn.disabled #{unit.name} ☠
        - elsif challange.surrendered? or challange.rejected?
          .btn.disabled #{unit.name}
        - else
          a.btn.dropdown-toggle data-toggle="dropdown" href="#"
            =' unit.name
            | (
            =' unit.current_health
            | )
            span.caret
          = render 'skills', combat: combat, unit: unit


- content_for :hero_class, ' Hero--center'

- if post.hero?
  - content_for :hero_class, ' Hero--withBackgroundImage'
  - content_for :hero_image, post.hero.image.url
  - content_for :nav_class, 'Nav--transparent'
  - content_for :burger_class, 'Burger--light'
  - content_for :post_info_class, ' PostInfo--light'
  - content_for :post_heading_class, ' PostHeading--light'
- else
  - content_for :hero_class, ' Hero--large'

- content_for :hero
  .PostWidthConstrainer.PostWidthConstrainer--title
    h1.PostHeading.PostHeading--large class="#{content_for(:post_heading_class)}"
      = post.title
    .PostInfo class="#{content_for(:post_info_class)}"
      .u-smallThenDefaultMargin
      .PostInfo-author
        ' by
        span.PostInfo-authorName = post.author.name
      - if post.published?
        .PostInfo-date
          ' on
          = l(post.published_at, format: :publish_date)
      - else
        .PostInfo-date
          = '(draft)'
          br
          = link_to 'Edit', edit_admin_post_path(post), class: 'Link'

Allow the post title to have HTML markup

- content_for :hero_class, ' Hero--center'

- if post.hero?
  - content_for :hero_class, ' Hero--withBackgroundImage'
  - content_for :hero_image, post.hero.image.url
  - content_for :nav_class, 'Nav--transparent'
  - content_for :burger_class, 'Burger--light'
  - content_for :post_info_class, ' PostInfo--light'
  - content_for :post_heading_class, ' PostHeading--light'
- else
  - content_for :hero_class, ' Hero--large'

- content_for :hero
  .PostWidthConstrainer.PostWidthConstrainer--title
    h1.PostHeading.PostHeading--large class="#{content_for(:post_heading_class)}"
      = raw post.title
    .PostInfo class="#{content_for(:post_info_class)}"
      .u-smallThenDefaultMargin
      .PostInfo-author
        ' by
        span.PostInfo-authorName = post.author.name
      - if post.published?
        .PostInfo-date
          ' on
          = l(post.published_at, format: :publish_date)
      - else
        .PostInfo-date
          = '(draft)'
          br
          = link_to 'Edit', edit_admin_post_path(post), class: 'Link'


.brochure
  span.slide-span.first
    span.number-circle 1
    a ng-href='/users/sign_up' target="_self"
      span.title Create an account
      img.image src='#{asset_path("account.svg")}'
      span.content It's easy to sign up using your existing Facebook, Twitter, or PRX account.

  span.slide-span
    span.number-circle 2
    a ng-href='/imports/choose'
      span.title Archive your audio
      img.image src='#{asset_path("archive.svg")}'
      span.content You can upload individual files or batch import with a CSV.

  span.slide-span
    span.number-circle 3
    a ng-href='/collections'
      span.title Make it searchable
      img.image src='#{asset_path("search.svg")}' style='padding-bottom: 0px;'
      span.content Tags & transcripts will be automatically generated. You can also customize your own metadata.

  span.slide-span
    span.number-circle 4
    a ng-href='/search'
      span.title Explore
      img.image src='#{asset_path("explore.svg")}'
      span.content You can search & browse your own material or the entire public archive.

Revert "Change dashboard Create Account link from sign-in to sign-up"

.brochure
  span.slide-span.first
    span.number-circle 1
    a ng-href='/users/sign_in' target="_self"
      span.title Create an account
      img.image src='#{asset_path("account.svg")}'
      span.content It's easy to sign up using your existing Facebook, Twitter, or PRX account.

  span.slide-span
    span.number-circle 2
    a ng-href='/imports/choose'
      span.title Archive your audio
      img.image src='#{asset_path("archive.svg")}'
      span.content You can upload individual files or batch import with a CSV.

  span.slide-span
    span.number-circle 3
    a ng-href='/collections'
      span.title Make it searchable
      img.image src='#{asset_path("search.svg")}' style='padding-bottom: 0px;'
      span.content Tags & transcripts will be automatically generated. You can also customize your own metadata.

  span.slide-span
    span.number-circle 4
    a ng-href='/search'
      span.title Explore
      img.image src='#{asset_path("explore.svg")}'
      span.content You can search & browse your own material or the entire public archive.


/ - if locals[:title_video]
/   = partial :video, locals: {video: :title_video, image: background}
/ - else
- defaults = ["sepia-40", "vignette-90"]
- filters = data.page.intro.filters || defaults rescue defaults
- image = data.page.intro.image rescue ""

header.intro-header.snap[style="background-image: url('#{post_image_path image}')" class="#{Array(filters).join(" ")}"]
  .container
    .row
      .col-lg-8.col-lg-offset-2.col-md-10.col-md-offset-1
        .post-heading
          h1= data.page.title
          h2.subheading= data.page.summary
          span.meta= data.page.description

Make intro text override page description.

/ - if locals[:title_video]
/   = partial :video, locals: {video: :title_video, image: background}
/ - else
- defaults = ["sepia-40", "vignette-90"]
- filters = data.page.intro.filters || defaults rescue defaults
- image = data.page.intro.image rescue ""

header.intro-header.snap[style="background-image: url('#{post_image_path image}')" class="#{Array(filters).join(" ")}"]
  .container
    .row
      .col-lg-8.col-lg-offset-2.col-md-10.col-md-offset-1
        .post-heading
          h1= data.page.title
          h2.subheading= data.page.summary
          span.meta= data.page.intro.text || data.page.description


.columns
  .one-fifth.column
    nav.menu
      a.menu-item.selected href="#"
        span.octicon.octicon-paintcan
        = gettext "Styles"
  .four-fifths.column
    = if Enum.count(@styles) == 0 do
      .blankslate
        h3 = gettext "No tweaks for you to see here"
    - else
      = render_many(@styles, AtomStyleTweaks.StyleView, "table_row.html", conn: @conn)

Add New tweak button to index page

.columns
  .one-fifth.column
    nav.menu
      a.menu-item.selected href="#"
        span.octicon.octicon-paintcan
        = gettext "Styles"
    a.btn.btn-primary href="#{style_path(@conn, :new, @current_user.name)}" = gettext "New tweak"
  .four-fifths.column
    = if Enum.count(@styles) == 0 do
      .blankslate
        h3 = gettext "No tweaks for you to see here"
    - else
      = render_many(@styles, AtomStyleTweaks.StyleView, "table_row.html", conn: @conn)


- cache [cache_buster(1), @controller, @action] do

  #tabs
    ul
      li
        a href="#model"
          | Model
      li
        a href="#controller"
          | Controller
      li
        a href="#view"
          | View
      li
        a href="#server"
          | server

    #model
      h2 == @model_file
      .CodeRay == @model_script
    #controller
      h2 == @controller_file
      .CodeRay == @controller_script
    #view
      h2 == @view_file
      .CodeRay == @view_script
    #server
      h2 == "Server"
      iframe src="https://rpm.newrelic.com/public/charts/lwlmj9SL0pe" width="100%" height="33%" scrolling="no" frameborder="no"
    -#logs
    -#  h2 Logs
    -#  .CodeRay == File.read File.join(Rails.root, 'log', 'development.log')

  a href="#close"
    | X

Add more tabs to code panel

- cache [cache_buster(1), @controller, @action] do

  #tabs
    ul
      li
        a href="#model"
          | Model
      li
        a href="#controller"
          | Controller
      li
        a href="#view"
          | View
      li
        a href="#request"
          | Request
      li
        a href="#application"
          | Application
      li
        a href="#server"
          | Server

    #model
      h2 == @model_file
      .CodeRay == @model_script
    #controller
      h2 == @controller_file
      .CodeRay == @controller_script
    #view
      h2 == @view_file
      .CodeRay == @view_script
    #request
      h2 == "Request"
      -#.CodeRay == File.read File.join(Rails.root, 'log', 'url.log')
    #application
      h2 == "Application"
      iframe src="https://rpm.newrelic.com/public/charts/CjWw80It0D" width="500px" height="300px" scrolling="no" frameborder="no"
    #server
      h2 == "Server"
      iframe src="https://rpm.newrelic.com/public/charts/lwlmj9SL0pe" width="100%" height="33%" scrolling="no" frameborder="no"

  a href="#close"
    | X


.container.instructions
  .row
    .col-sm-6
      p
        strong> Update your Settings.
        ' Once you have done so, you will start to receive emails from REREAD.io based on your configured schedule. That's it!
        ' Just sit back, relax, wait for the emails to arrive, and rediscover your forgotten bookmarks again.
      br
      p
        strong> Give us a Shout-out.
        ' #{link_to 'Tell your friends on Twitter', 'https://twitter.com/intent/tweet?text=REREAD.io%20is%20awesome!%20Helps%20me%20rediscover%20saved%20and%20forgotten%20bookmarks%20in%20@Pocket.%20Check%20it%20out%20at%20https://www.reread.io', target: '_blank'} about REREAD.io.
      br
      p
        strong> We #{icon 'heart'} Feedback.
        ' Do you have a feature suggestion, or bug report? Please send us an email at #{link_to 'hello@reread.io', 'mailto:hello@reread.io'}. We read everything.
    .col-sm-6
      .well
        = simple_form_for @settings, url: settings_path do |f|
          = f.input :email
          = f.input :time_zone
          = f.input :send_at
          = f.input :schedule
          = f.input :number
          = f.input :pause
          = f.submit 'Save Setting', class: 'btn btn-danger'

Remove * from all fields on Settings page

.container.instructions
  .row
    .col-sm-6
      p
        strong> Update your Settings.
        ' Once you have done so, you will start to receive emails from REREAD.io based on your configured schedule. That's it!
        ' Just sit back, relax, wait for the emails to arrive, and rediscover your forgotten bookmarks again.
      br
      p
        strong> Give us a Shout-out.
        ' #{link_to 'Tell your friends on Twitter', 'https://twitter.com/intent/tweet?text=REREAD.io%20is%20awesome!%20Helps%20me%20rediscover%20saved%20and%20forgotten%20bookmarks%20in%20@Pocket.%20Check%20it%20out%20at%20https://www.reread.io', target: '_blank'} about REREAD.io.
      br
      p
        strong> We #{icon 'heart'} Feedback.
        ' Do you have a feature suggestion, or bug report? Please send us an email at #{link_to 'hello@reread.io', 'mailto:hello@reread.io'}. We read everything.
    .col-sm-6
      .well
        = simple_form_for @settings, url: settings_path, defaults: { required: false } do |f|
          = f.input :email
          = f.input :time_zone
          = f.input :send_at
          = f.input :schedule
          = f.input :number
          = f.input :pause
          = f.submit 'Save Setting', class: 'btn btn-danger'


div(itemprop="video" itemscope itemtype="http://schema.org/VideoObject")
  h4 itemprop="name" #{video.title}
  / TODO Add more metadata
  span itemprop="duration" content="#{video.duration_in_seconds}"
  span itemprop="thumbnail" content="#{video.thumb_url}"
  span itemprop="uploadDate" content="#{video.upload_date_iso8601}"
  .flex-video(widescreen vimeo)
    iframe(src="//player.vimeo.com/video/#{video.id}\?title=0&byline=0&portrait=0&badge=0&color=2664A2" width="500" height="313" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen)
/ TODO Add this back in once we have identity support
  - video.cast.each do |c|
    .follow-links
      span(class="title")Follow #{first_name(c.display_name)}
      a: i.icon-rss
      a: i.icon-facebook
      a: i.icon-twitter
      a: i.icon-linkedin

Fix typo in iframe src url for vimeo

div(itemprop="video" itemscope itemtype="http://schema.org/VideoObject")
  h4 itemprop="name" #{video.title}
  / TODO Add more metadata
  span itemprop="duration" content="#{video.duration_in_seconds}"
  span itemprop="thumbnail" content="#{video.thumb_url}"
  span itemprop="uploadDate" content="#{video.upload_date_iso8601}"
  .flex-video(widescreen vimeo)
    iframe(src="//player.vimeo.com/video/#{video.id}?title=0&byline=0&portrait=0&badge=0&color=2664A2" width="500" height="313" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen)
/ TODO Add this back in once we have identity support
  - video.cast.each do |c|
    .follow-links
      span(class="title")Follow #{first_name(c.display_name)}
      a: i.icon-rss
      a: i.icon-facebook
      a: i.icon-twitter
      a: i.icon-linkedin


header
  h2.heading-xlarge Public application stats

Update view to show data

header
  h2.heading-xlarge Public application stats

.grid-row.equal-heightboxes.util_mt-medium
  .column-one-half
    .util_pt-medium
      .panel.flexi
        h3.heading-medium.util_mt-0 Public applications to date
        .panel-inner
          h4.heading-xlarge =@data.submission_all_time_total

  .column-one-half
    .util_pt-medium
      .panel.flexi
        h3.heading-medium.util_mt-0 Public applications last 7 days
        .panel-inner
          h4.heading-xlarge =@data.submission_seven_day_total

.grid-row.equal-heightboxes.util_mt-medium
  .column-one-half
    .util_pt-medium
      .panel.flexi
        h3.heading-medium.util_mt-0 Court processed to date
        .panel-inner
          table
            thead
              tr
                th Court
                th Number
            tbody
              -@data.submission_all_time.each do |court|
                tr
                  td =court[0]
                  td =court[1]

  .column-one-half
    .util_pt-medium
      .panel.flexi
        h3.heading-medium.util_mt-0 Court processed last 7 days
        .panel-inner
          table
            thead
              tr
                th Court
                th Number
            tbody
              -@data.submission_seven_day.each do |court|
                tr
                  td =court[0]
                  td =court[1]


footer.footer-container#footer
  .row.footer
    .small-12.large-4.columns
      |
      == setting.newsletter(newsletter_user) if @newsletter_module.enabled?

    .small-12.large-4.columns.credentials
      == setting.credentials

    - if setting.show_social
      .small-12.large-4.columns.credentials
        = link_to fa_icon('rss 2x'), posts_rss_path(format: :atom), target: :blank if @rss_module.enabled?
        = awesome_social_share

Fix bug with footer grid position

footer.footer-container#footer
  .row.footer
    .small-12.large-4.columns
      |
      == setting.newsletter(newsletter_user) if @newsletter_module.enabled?

    .small-12.large-4.columns.credentials
      == setting.credentials

    .small-12.large-4.columns.socials
      - if setting.show_social
        = link_to fa_icon('rss 2x'), posts_rss_path(format: :atom), target: :blank if @rss_module.enabled?
        = awesome_social_share


- if current_user
  .row
    dl.sub-nav
      dd
        =link_to 'DWP check', new_dwp_checks_path
        =link_to t('descriptors.r2_calculator').to_s, calculator_income_path
      -if current_user.admin?
        dd.right
          =link_to 'Users', users_path
        dd.right
          =link_to 'Offices', offices_path

Add toolbar link for income calculator

- if current_user
  .row
    dl.sub-nav
      dd#dwp-check
        =link_to 'DWP check', new_dwp_checks_path
      dd#income-calc
        =link_to t('descriptors.r2_calculator').to_s, calculator_income_path
      -if current_user.admin?
        dd.right
          =link_to 'Users', users_path
        dd.right
          =link_to 'Offices', offices_path


- content_for :description do
  = @articles.map(&:title).join(",")
.medium-8.large-9.columns
  p.sub_nav_title
    | Recently Posts
  - @articles.each do |article|
    .post_item
      .split
      span.left_tag
        = article.category.name
      .post_item_description
        p.title
          a href=article_path(article)
            = article.title
        p.summary
          = markdown truncate(article.content, length: 640, truncate_string: "...", escape: false)
        .time
          = l(article.created_at, format: :long)
  = will_paginate @articles
.medium-4.large-3.columns.show-for-medium-up
  .categories_container
    p.sub_nav_title
      | Categories
    - Category.all.each do |category|
      = link_to articles_path( category: category.id ) do
        .category_item_container
            = category.name
  .links_container
    p.sub_nav_title
      | Links
    - Links.all.each do |link|
      = link_to link.name, link.url, :target => "_blank"

Cut the length of article preview.

- content_for :description do
  = @articles.map(&:title).join(",")
.medium-8.large-9.columns
  p.sub_nav_title
    | Recently Posts
  - @articles.each do |article|
    .post_item
      .split
      span.left_tag
        = article.category.name
      .post_item_description
        p.title
          a href=article_path(article)
            = article.title
        p.summary
          = strip_tags markdown truncate(article.content, length: 100, truncate_string: "...", escape: false)
        .time
          = l(article.created_at, format: :long)
  = will_paginate @articles
.medium-4.large-3.columns.show-for-medium-up
  .categories_container
    p.sub_nav_title
      | Categories
    - Category.all.each do |category|
      = link_to articles_path( category: category.id ) do
        .category_item_container
            = category.name
  .links_container
    p.sub_nav_title
      | Links
    - Links.all.each do |link|
      = link_to link.name, link.url, :target => "_blank"


p
  span.label.label-info プレビュー

.row
  .col-sm-3.col-sm-push-9
    = form_for @nippo do |f|
      = f.hidden_field :reported_for
      = f.text_area :body, class: 'hidden'
      .form-group.l_send
        .container
          ul.input-group-btn
            li
              = f.submit '戻る', name: 'back', class: 'btn btn-raised', tabindex: 2
            li
              = f.submit '日報送信', class: 'btn btn-info btn-raised', tabindex: 1
  .col-sm-9.col-sm-pull-3
    h3 = @nippo.dated_subject

.well= auto_link(@nippo.body).gsub(/(\r\n|\r|\n)/, '<br>').html_safe

Add save_as_draft_button to preview page

p
  span.label.label-info プレビュー

.row
  .col-sm-3.col-sm-push-9
    = form_for @nippo do |f|
      = f.hidden_field :reported_for
      = f.text_area :body, class: 'hidden'
      .form-group.l_send
        .container
          ul.input-group-btn
            li
              = f.submit '戻る', name: 'back', class: 'btn btn-raised', tabindex: 2
            li
              = f.submit '下書き保存', name: 'draft', class: 'btn btn-raised'
            li
              = f.submit '日報送信', class: 'btn btn-info btn-raised', tabindex: 1
  .col-sm-9.col-sm-pull-3
    h3 = @nippo.dated_subject

.well= auto_link(@nippo.body).gsub(/(\r\n|\r|\n)/, '<br>').html_safe


article.page
  header.page__title
    h1 events calendar
  main.page__content
    iframe src="https://calendar.google.com/calendar/embed?height=600&wkst=1&bgcolor=%23ffffff&src=brotherlyparty%40gmail.com&color=%2342104A&ctz=America%2FNew_York" style="border:solid 1px #777" width="800" height="600" frameborder="0" scrolling="no"

Fix <iframe> import and add more copy

article.page.calendar
  header.page__title
    h1 events calendar
  main.page__content
    section.calendar__about
      p Want to go out? We've got you covered. Check out the best events going on in the Philadelphia area!
    section.calendar__embed
      center
        iframe src="https://calendar.google.com/calendar/embed?src=brotherlyparty%40gmail.com&ctz=America/New_York&showTitle=0&showNav=0&showDate=0&showPrint=0&showTabs=0&showCalendars=0&showTz=0" style="border: 0" width="960" height="700" frameborder="0" scrolling="no"


.columns
  .five-fifths.column
    h1
      = gettext "About Atom Tweaks"

    p
      | Atom Tweaks is a database of simple tweaks for the
      a href="https://atom.io" Atom text editor
      | . These are simple changes to one's environment that don't merit a full
      a href="https://atom.io/packages" Atom package
      | . Atom is very customizable because you can add these
        small snippets that can radically change your editing environment. In the past, finding and
        integrating these little chunks of code was a time-consuming and error-prone process. Atom
        Tweaks seeks to solve all of that!

    p
      em Atom and the Atom logo are registered trademarks of GitHub, Inc.

Fix missing whitespace in about text

.columns
  .five-fifths.column
    h1
      = gettext "About Atom Tweaks"

    p
      ' Atom Tweaks is a database of simple tweaks for the
      a href="https://atom.io" Atom text editor
      ' . These are simple changes to one's environment that don't merit a full
      a href="https://atom.io/packages" Atom package
      ' . Atom is very customizable because you can add these
        small snippets that can radically change your editing environment. In the past, finding and
        integrating these little chunks of code was a time-consuming and error-prone process. Atom
        Tweaks seeks to solve all of that!

    p
      em Atom and the Atom logo are registered trademarks of GitHub, Inc.


div.database data-id=@database.id
  div.details
    p
      strong
        'Name:
      span.editable data-url="/databases/#{@database.id}" data-attribute='database[name]'
        = @database.name
      '
    p
      strong
        'Shareable Link:
        = link_to database_url(@database), database_url(@database), title: 'Share this URL to share access to your DB'

  div.tables
    ul.list
      li
        a#add-table = 'Add Table'
      - @database.tables.each do |table|
        li
          a data-id=table.id data-name=table.name
            = table.name

    div.table data-id=current_table.try(:id)
      p
        strong Name:
        span.editable
          = @table.name
      p
        strong ID:
        = @table.id

      == render 'tables/table'

= link_to 'Edit this Database', edit_database_path(@database)

Include column edit form on database view

div.database data-id=@database.id
  div.details
    p
      strong
        'Name:
      span.editable data-url="/databases/#{@database.id}" data-attribute='database[name]'
        = @database.name
      '
    p
      strong
        'Shareable Link:
        = link_to database_url(@database), database_url(@database), title: 'Share this URL to share access to your DB'

  div.tables
    ul.list
      li
        a#add-table = 'Add Table'
      - @database.tables.each do |table|
        li
          a data-id=table.id data-name=table.name
            = table.name

    div.table data-id=current_table.try(:id)
      p
        strong Name:
        span.editable
          = @table.name
      p
        strong ID:
        = @table.id

      == render 'tables/table'

== render 'columns/form'
= link_to 'Edit this Database', edit_database_path(@database)


= simple_form_for [parent, resource], html: { class: 'remote-form' } do |f|
  .pull-right
    a.cancel.button.secondary href="#" = t('words.cancel')
  .clearfix

  - if resource.new_record? || can?(:update, resource, :title)
    = f.input :title, as: :string, required: true

  - if resource.new_record? || can?(:update, resource, :minimum_value)
    = f.input :minimum_value, as: :integer, input_html: {pattern: "^[\\d+.]+"}

  - if resource.new_record? || can?(:update, resource, :days_to_delivery)
    = f.input :days_to_delivery

  - if resource.new_record? || can?(:update, resource, :description)
    = f.input :description

  - if resource.new_record? || can?(:update, resource, :maximum_backers)
    = f.input :maximum_backers

  = f.input :soon, as: :boolean
  = f.input :show_contact_button, as: :boolean

  = f.button :submit, disable_with: t('words.sending')
  - if resource.persisted? && can?(:destroy, resource)
    span.or = t('words.or')
    = link_to [parent, resource], class: 'button alert', method: :delete, confirm: t('words.confirm') do
      i.icon-et-trash.icon-white
      = t('words.delete')

Remove required from reward from, use model's default

= simple_form_for [parent, resource], html: { class: 'remote-form' } do |f|
  .pull-right
    a.cancel.button.secondary href="#" = t('words.cancel')
  .clearfix

  - if resource.new_record? || can?(:update, resource, :title)
    = f.input :title

  - if resource.new_record? || can?(:update, resource, :minimum_value)
    = f.input :minimum_value, as: :integer, input_html: {pattern: "^[\\d+.]+"}

  - if resource.new_record? || can?(:update, resource, :days_to_delivery)
    = f.input :days_to_delivery

  - if resource.new_record? || can?(:update, resource, :description)
    = f.input :description

  - if resource.new_record? || can?(:update, resource, :maximum_backers)
    = f.input :maximum_backers

  = f.input :soon, as: :boolean
  = f.input :show_contact_button, as: :boolean

  = f.button :submit, disable_with: t('words.sending')
  - if resource.persisted? && can?(:destroy, resource)
    span.or = t('words.or')
    = link_to [parent, resource], class: 'button alert', method: :delete, confirm: t('words.confirm') do
      i.icon-et-trash.icon-white
      = t('words.delete')


doctype 5
html.no-js lang="#{I18n.locale}"
  head
    = partial 'head'
  body class="#{@body_class}"
    = partial 'body_top'
    = yield
    = partial 'body_bottom'

Add page class variable to the html tag instead the body

doctype 5
html.no-js class="#{data.page.page_class}" lang="#{I18n.locale}"
  head
    = partial 'head'
  body
    = partial 'body_top'
    = yield
    = partial 'body_bottom'


---
pageable: true
per_page: 10
---

- if paginate && num_pages > 1
  p
    Page
    = "#{page_number} of #{num_pages}"

  - if prev_page
    p = link_to 'Previous page', prev_page

- page_articles.each_with_index do |article, i|
  h2 = link_to article.title, article
  time(pubdate datetime=article.date)
    ' Le
    = article.date.strftime('%d/%m/%Y')

  section = article.summary(250)

- if paginate
  - if next_page
    p = link_to "Next page", next_page

Add some CSS classes for the article and replace the summary by the description.

---
pageable: true
per_page: 10
---

- if paginate && num_pages > 1
  p
    Page
    = "#{page_number} of #{num_pages}"

  - if prev_page
    p = link_to 'Previous page', prev_page

- page_articles.each_with_index do |article, i|
  article.article
    h2.article-title
      = link_to article.title, article

    time.article-published-date(pubdate datetime=article.date)
      = 'Le ' + article.date.strftime('%d/%m/%Y')

    section.article-description = article.data.description

- if paginate
  - if next_page
    p = link_to "Next page", next_page


/- if settings[:index_view] == 'table'
= form_tag url_for(action: :batch), id: 'batch_action_form', class: 'pjax-form' do
  input name='batch_action' id='batch_action' type='hidden'
  = render 'admin/shared/content_actions'

#content= render current_index_view
- unless settings[:skip_pagination]
  .pagination-wrap.pull-left
    = will_paginate collection, renderer: BootstrapPagination::Rails
    .pagination_info= pagination_info collection
  .btn-toolbar.pull-right.pjax_links
    .btn-group
      - per_page_variants.each do |c|
        a.btn.per_page data-val=c href=url_for(params.merge(per_page: c)) class=('active' if c == collection.per_page) = c

- if pjax? && flash.present?
  - flash.each do |type, message|
    = javascript_tag %[flash("#{j message}", "#{type}")]

Refactor index pjax flash messages

= form_tag url_for(action: :batch), id: 'batch_action_form', class: 'pjax-form' do
  input name='batch_action' id='batch_action' type='hidden'
  = render 'admin/shared/content_actions'

#content= render current_index_view
- unless settings[:skip_pagination]
  .pagination-wrap.pull-left
    = will_paginate collection, renderer: BootstrapPagination::Rails
    .pagination_info= pagination_info collection
  .btn-toolbar.pull-right.pjax_links
    .btn-group
      - per_page_variants.each do |c|
        a.btn.per_page data-val=c href=url_for(params.merge(per_page: c)) class=('active' if c == collection.per_page) = c

- if pjax? && flash.present?
  script type='text/javascript' = render partial: 'admin/shared/flash', formats: :js, local_assigns: {flash: flash}


---
title: CI2Go The CircleCI Client for iPhone and iPad
---

.wrap
  object type="image/svg+xml" data=asset_url("logo.svg", "images") width="100%" height="100%"
  .text
    h1 CI2Go
    h2
      span The CircleCI Client
      span for iPhone and iPad
    p.caption
      == link_to 'http://bit.ly/ci2go-appstore' do
        img src='http://ngs.io/images/appstore.svg'
  .img
    - 1.upto(5) do|n|
      p
        img src="https://raw.githubusercontent.com/ngs/ci2go/master/fastlane/screenshots/en-US/#{n}_ipad_#{n}.pr_source.png"
    p.author
      | © #{Time.new.year}
      == link_to 'Atsushi Nagase', 'http://ngs.io/'
      | .

Change SVG URL to secure

---
title: CI2Go The CircleCI Client for iPhone and iPad
---

.wrap
  object type="image/svg+xml" data=asset_url("logo.svg", "images") width="100%" height="100%"
  .text
    h1 CI2Go
    h2
      span The CircleCI Client
      span for iPhone and iPad
    p.caption
      == link_to 'http://bit.ly/ci2go-appstore' do
        img src='https://ngs.io/images/appstore.svg'
  .img
    - 1.upto(5) do|n|
      p
        img src="https://raw.githubusercontent.com/ngs/ci2go/master/fastlane/screenshots/en-US/#{n}_ipad_#{n}.pr_source.png"
    p.author
      | © #{Time.new.year}
      == link_to 'Atsushi Nagase', 'http://ngs.io/'
      | .


- title t('.title', issue: @issue)
.featurette.featurette-indigo
  .container
    h1= yield :title
.featurette
  .container
    h2= t('.details')
    p
      b> #{Issue.human_attribute_name(:stars)}:
      = @issue.stars
    p
      b> #{Device.model_name.human}:
      = @issue.device.name
    p
      b= Issue.human_attribute_name(:description)
      p= simple_format(@issue.description)
    hr
    h2= t('.solution_found')
    blockquote
      p
        b> #{Issue.human_attribute_name(:closed_by)}:
        = @issue.closed_by
      p
        b> #{Issue.human_attribute_name(:closed_at)}:
        = l(@issue.closed_at, format: :long)
      - if @issue.obsolete?
        p
          span.label.label-default= t('.obsolete_html')
        p
          em.text-muted= @issue.reason
      - elsif @issue.reason == 'contact customer support.'
        p.lead
          span.label.label-default= t('.wrong_forum_html')
        p= simple_format(@issue.reason)
      - else
        p.lead
          span.label.label-warning= t('.restricted_html')
        p= simple_format(@issue.reason)
    hr
    = link_to t('.submit_new_issue'), new_issue_path

Change “submit new issue” link style

- title t('.title', issue: @issue)
.featurette.featurette-indigo
  .container
    h1= yield :title
.featurette
  .container
    h2= t('.details')
    p
      b> #{Issue.human_attribute_name(:stars)}:
      = @issue.stars
    p
      b> #{Device.model_name.human}:
      = @issue.device.name
    p
      b= Issue.human_attribute_name(:description)
      p= simple_format(@issue.description)
    hr
    h2= t('.solution_found')
    blockquote
      p
        b> #{Issue.human_attribute_name(:closed_by)}:
        = @issue.closed_by
      p
        b> #{Issue.human_attribute_name(:closed_at)}:
        = l(@issue.closed_at, format: :long)
      - if @issue.obsolete?
        p
          span.label.label-default= t('.obsolete_html')
        p
          em.text-muted= @issue.reason
      - elsif @issue.reason == 'contact customer support.'
        p.lead
          span.label.label-default= t('.wrong_forum_html')
        p= simple_format(@issue.reason)
      - else
        p.lead
          span.label.label-warning= t('.restricted_html')
        p= simple_format(@issue.reason)
    hr
    = link_to t('.submit_new_issue'), new_issue_path, class: 'btn btn-default btn-sm btn-block'


table
  th State
  th Title
  th Milestone
  th Assigned user

  - @tasks.each do |task|
    tr
      td = task.state
      td = task.title
      td = task.milestone.try :name
      td = task.assigned_user_name

p = link_to 'Create new task', new_project_task_path

Replace try with delegator in tasks listing.

table
  th State
  th Title
  th Milestone
  th Assigned user

  - @tasks.each do |task|
    tr
      td = task.state
      td = task.title
      td = task.milestone_name
      td = task.assigned_user_name

p = link_to 'Create new task', new_project_task_path


header.l-header-site.hide-for-print

  .l-header-container
    = render 'elements/language'

    .row
      .small-12.medium-4.columns
        = render 'elements/logo', show_metadata: show_metadata

      .small-12.large-8.columns
        .row.small-collapse
          .small-12.medium-6.medium-offset-6.columns
            = render 'searches/form' if @search_module.enabled?

          .small-12.columns
            = render 'elements/menu/no_dropdown'

    = breadcrumbs pretext: t('breadcrumb.here'), separator: '', style: :ol, semantic: true if @breadcrumb_module.enabled? && setting.show_breadcrumb?

Add condition to hide language in frontend in less than 2 available

header.l-header-site.hide-for-print

  .l-header-container
    = render 'elements/language' if I18n.available_locales.length > 1

    .row
      .small-12.medium-4.columns
        = render 'elements/logo', show_metadata: show_metadata

      .small-12.large-8.columns
        .row.small-collapse
          .small-12.medium-6.medium-offset-6.columns
            = render 'searches/form' if @search_module.enabled?

          .small-12.columns
            = render 'elements/menu/no_dropdown'

    = breadcrumbs pretext: t('breadcrumb.here'), separator: '', style: :ol, semantic: true if @breadcrumb_module.enabled? && setting.show_breadcrumb?


li.panel
  p
    small = guest_book.created_at
  h3 = guest_book.username
  div = simple_format(guest_book.content)

Add gravatar in guest_book row

li.panel
  p
    small = guest_book.created_at
  h3 = guest_book.username
  p = gravatar_image_tag(guest_book.email, alt: guest_book.username)
  div = simple_format(guest_book.content)


p
  strong Name:
  span.editable
    = table.name
p
  strong ID:
  = table.id

Make table name changes persist.

p
  strong Name:
  span.editable data-url="/tables/#{table.id}" data-attribute='table[name]'
    = table.name
p
  strong ID:
  = table.id


article
  header
    h2 Transplant Wait List Registration
    ul
      li= link_to "Edit",
                  edit_patient_transplants_registration_path(patient),
                  class: "button"
      li= link_to "View",
                  patient_transplants_registration_path(patient),
                  class: "button secondary"

  dl.dl-horizontal
    dt Status:
    dd
      b= registration.current_status
      = " since #{l(registration.current_status&.started_on)}"

    dt TT Status:
    dd= registration.tissue_typing_summary

    dt Transplant Type:
    dd= registration.document&.organs&.transplant_type&.text
    dt Last Update:
    dd
      - if version = registration.versions.last
        = "#{l(version.created_at)} by #{who_did_it(version)}"

Improve display of wait list reg status in summary

article
  header
    h2 Transplant Wait List Registration
    ul
      li= link_to "Edit",
                  edit_patient_transplants_registration_path(patient),
                  class: "button"
      li= link_to "View",
                  patient_transplants_registration_path(patient),
                  class: "button secondary"

  dl.dl-horizontal
    dt Status:
    dd
      - if registration.current_status.present?
        b= registration.current_status
        = " since #{l(registration.current_status&.started_on)}"

    dt TT Status:
    dd= registration.tissue_typing_summary

    dt Transplant Type:
    dd= registration.document&.organs&.transplant_type&.text
    dt Last Update:
    dd
      - if (version = registration.versions.last)
        = "#{l(version.created_at)} by #{who_did_it(version)}"


.row
  .col-md-7.col-md-offset-1
    .page-header
      h1 Edit role

    = render 'form'

.row
  .col-md-7.col-md-offset-1
    .page-header
      h1
        | Members
        small
          = "(#{@role.name})"
    = render 'admin/users/list', users: @users

Fix bug on edit roles


- if can?(:read, event)
  = div_for(event) do
    a role='button' data-toggle='collapse' href="##{item_body_id(event)}"
      li.list-group-item

        .pull-right
          - if event.end_time.present?
            = t('common.time_range', from: format_datetime(event.start_time),
                                     to: format_datetime(event.end_time))
          - else
            = format_datetime(event.start_time)

        span.label.label-default
          = event.event_type

        - if !event.published
          span data-toggle='tooltip' data-placement='top' title=t('.unpublished')
            => fa_icon 'ban'

        = event.title

    .lesson-plan-item-body.panel-collapse.collapse.in id=item_body_id(event)
      li.list-group-item

        .pull-right
          div.btn-group
            = edit_button([current_course, event]) if can?(:update, event)
            = delete_button([current_course, event]) if can?(:destroy, event)

        - if event.description.blank?
          p
            i = t('.no_description')
        - else
          p
            = sanitize(event.description)

        - if !event.location.blank?
          p
            string = t('.location', location: event.location)

Remove unnecessary `can?` since that is handled by the controller.


- recently_changed = defined?(recently_changed) && recently_changed

li.prescription class=("recently_changed" if recently_changed)
  - if recently_changed
    | *
    = blank_separator

  = prescription.drug.name
  = blank_separator
  = prescription.dose
  = blank_separator
  = prescription.medication_route.code
  = blank_separator
  = prescription.frequency

  / We pass in date_changed if the prescription is recently_changed or recently_stopped
  / It could be the prescribed_on or terminated_on date
  - if defined?(date_changed)
    = blank_separator
    span.date-changed= l(date_changed)

Move changed meds asterix to end of line

- recently_changed = defined?(recently_changed) && recently_changed

li.prescription class=("recently_changed" if recently_changed)
  = prescription.drug.name
  = blank_separator
  = prescription.dose
  = blank_separator
  = prescription.medication_route.code
  = blank_separator
  = prescription.frequency

  / We pass in date_changed if the prescription is recently_changed or recently_stopped
  / It could be the prescribed_on or terminated_on date
  - if defined?(date_changed)
    = blank_separator
    span.date-changed= l(date_changed)

  - if recently_changed
    = blank_separator
    | *


- blurb_length = blurb_length || Setting['advanced.blurb_length'].to_i
- headline, blurb = blurb(link.main_title, link.subtitle, link.clean_body, link.introduction, blurb_length)

= link_to link.inferred_url, lang: lang_attr(link.lang), dir: dir_attr(link.lang), title: link.inferred_url do
  p
    strong = simple_blurbify_link(headline)
  = blurbify(blurb, link.books)

ul.details
  li = link_to link.inferred_url_domain, link.inferred_url, title: link.inferred_url
  li == timeago_tag(link.created_at)
  li = render 'notes/tag_list', tags: link.tags

Hide tags list if there are no stags

- blurb_length = blurb_length || Setting['advanced.blurb_length'].to_i
- headline, blurb = blurb(link.main_title, link.subtitle, link.clean_body, link.introduction, blurb_length)

= link_to link.inferred_url, lang: lang_attr(link.lang), dir: dir_attr(link.lang), title: link.inferred_url do
  p
    strong = simple_blurbify_link(headline)
  = blurbify(blurb, link.books)

ul.details
  li = link_to link.inferred_url_domain, link.inferred_url, title: link.inferred_url
  li == timeago_tag(link.created_at)
  - unless link.tags.blank?
    li = render 'notes/tag_list', tags: link.tags


- content_for :before_content do

  .jumbotron
    .container
      .row-fluid
        .span5
          .slogan
            h1 = t('slogan.title')
            p = t('slogan.description')
        .span5.offset2
          = form_for(resource, :as => resource_name, :url => registration_path(resource_name), :html => { :class => 'form-full-width'}) do |f|
            = devise_error_messages!
            = f.text_field :login, :placeholder => resource.class.human_attribute_name(:login)
            = f.email_field :email, :placeholder => resource.class.human_attribute_name(:email)
            = f.password_field :password, :placeholder => resource.class.human_attribute_name(:password)
            = f.submit t('label.sign_up'), :class => 'btn btn-success'

.row-fluid
  .span3
    h3 = t('highlights.free.title')
    p = t('highlights.free.description')
  .span3.offset1
    h3 = t('highlights.more_features.title')
    p = t('highlights.more_features.description')
  .span3.offset1
    h3 = t('highlights.join_us.title')
    p = t('highlights.join_us.description')

Use simple_form in registration form

- content_for :before_content do

  .jumbotron
    .container
      .row-fluid
        .span5
          .slogan
            h1 = t('slogan.title')
            p = t('slogan.description')
        .span5.offset2
          = simple_form_for(resource, :as => resource_name, :url => registration_path(resource_name), :html => { :class => 'form-full-width'}) do |f|
            = f.input :login, :label => false, :placeholder => resource.class.human_attribute_name(:login)
            = f.input :email, :label => false, :placeholder => resource.class.human_attribute_name(:email)
            = f.input :password, :label => false, :placeholder => resource.class.human_attribute_name(:password)
            = f.submit t('label.sign_up'), :class => 'btn btn-success'

.row-fluid
  .span3
    h3 = t('highlights.free.title')
    p = t('highlights.free.description')
  .span3.offset1
    h3 = t('highlights.more_features.title')
    p = t('highlights.more_features.description')
  .span3.offset1
    h3 = t('highlights.join_us.title')
    p = t('highlights.join_us.description')


doctype html
html lang='en'
  head
    meta charset='utf-8'
    meta name='viewport' content='width=device-width, initial-scale=1.0'
    title
      = content_for?(:title) ? yield(:title) : 'UNDP Manage'
    = stylesheet_link_tag 'application'
    link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet/v0.7.7/leaflet.css"
    = csrf_meta_tags
  body
    .l-page
      .l-header
        .row: .small-12.medium-12.large-12.columns#header
          #undp-logo
            = link_to (image_tag 'undp-logo.png'), "/"
          = render 'shared/navbar'

      - if notice or alert
        .l-alerts
          .row: .small-12.medium-12.large-12.columns
            - if alert
              .alert-box.alert data-alert='true'
                div = alert
                a.close href='#' ×
            - else
              .alert-box.alert data-alert='true'
                div = notice
                a.close href='#' ×

      .l-content
        .row: .small-12.medium-12.large-12.columns
          = yield

    script src="http://cdn.leafletjs.com/leaflet/v0.7.7/leaflet.js"
    = javascript_include_tag 'application'

Update the leaflet CSS and JS script links

doctype html
html lang='en'
  head
    meta charset='utf-8'
    meta name='viewport' content='width=device-width, initial-scale=1.0'
    title
      = content_for?(:title) ? yield(:title) : 'UNDP Manage'
    = stylesheet_link_tag 'application'
    = stylesheet_link_tag 'http://cdn.leafletjs.com/leaflet/v0.7.7/leaflet.css'
    = csrf_meta_tags
  body
    .l-page
      .l-header
        .row: .small-12.medium-12.large-12.columns#header
          #undp-logo
            = link_to (image_tag 'undp-logo.png'), "/"
          = render 'shared/navbar'

      - if notice or alert
        .l-alerts
          .row: .small-12.medium-12.large-12.columns
            - if alert
              .alert-box.alert data-alert='true'
                div = alert
                a.close href='#' ×
            - else
              .alert-box.alert data-alert='true'
                div = notice
                a.close href='#' ×

      .l-content
        .row: .small-12.medium-12.large-12.columns
          = yield

    = javascript_include_tag 'http://cdn.leafletjs.com/leaflet/v0.7.7/leaflet.js'
    = javascript_include_tag 'application'


section.pricing-plan-area
  .container
    .sec-title.text-center
      .underlay.text-center
        h2 = t('.get_tickets')
      h1 = t('.get_tickets')
    .row
      - Settings.ticket.types.each do |plan|
          .col-lg-4.col-md-4.col-sm-12.col-xs-12.text-center
            .single-price-box
              .table-header
                .top
                  h3 = ticket_name_for(plan)
                .package
                  h1
                    b NTD $ #{ticket_price_for(plan)}
                  h3 = t("ticket.description.#{plan}")
              .price-list
                ul
                  li.gray-bg = t("ticket.info.#{plan}.origin_price", price: ticket_price_for(plan, false))
                  li = t("ticket.info.#{plan}.early_bird_price", price: ticket_price_for(plan, false), date: l(current_site.ticket_early_bird_due_to.to_date, format: :long))
                  = ticket_others_info_for(plan)
              .table-footer
                = link_to t('ticket.buy_now'), current_site.ticket_buy_link, class: 'thm-btn gra', target: '_blank'

Fix early bird ticket price description is wrong

section.pricing-plan-area
  .container
    .sec-title.text-center
      .underlay.text-center
        h2 = t('.get_tickets')
      h1 = t('.get_tickets')
    .row
      - Settings.ticket.types.each do |plan|
          .col-lg-4.col-md-4.col-sm-12.col-xs-12.text-center
            .single-price-box
              .table-header
                .top
                  h3 = ticket_name_for(plan)
                .package
                  h1
                    b NTD $ #{ticket_price_for(plan)}
                  h3 = t("ticket.description.#{plan}")
              .price-list
                ul
                  li.gray-bg = t("ticket.info.#{plan}.origin_price", price: ticket_price_for(plan, false))
                  li = t("ticket.info.#{plan}.early_bird_price", price: ticket_price_for(plan, true), date: l(current_site.ticket_early_bird_due_to.to_date, format: :long))
                  = ticket_others_info_for(plan)
              .table-footer
                = link_to t('ticket.buy_now'), current_site.ticket_buy_link, class: 'thm-btn gra', target: '_blank'


p#notice = notice

.panel.panel-default
  table.table
    thead
    tbody
      - @folders.each do |folder|
        tr
          td
            i.fa.fa-folder-o aria-hidden=true
            span
            = link_to folder.basename, bucket_prefix_path(bucket_id: @bucket, prefix_id: folder.prefix)
      - @files.each do |file|
        tr
          td
            i.fa.fa-file-text-o aria-hidden=true
            span
            = link_to file.key
          td
            /! modals
            /! Small modal
            button.btn.btn-default.btn-xs data-target=".bs-example-modal-sm" data-toggle="modal" type="button"
              span.glyphicon.glyphicon-paperclip aria-hidden="true"
            .modal.fade.bs-example-modal-sm.modal-presigned-url aria-hidden="true" role="dialog" style=("display: none;") tabindex="-1"
              .modal-dialog.modal-sm
                .modal-content
                  .modal-header.modal-presigned-url
                    button.close aria-label="Close" data-dismiss="modal" type="button"
                      span aria-hidden="true"  ×
                    h4#myModalLabel2.modal-title Pre-Signed URL
                  .modal-body.modal-presigned-url
                    h4 Expire In 1 day
                    input
                  .modal-footer.modal-presigned-url
                    button.btn.btn-default data-dismiss="modal" type="button"  Close
            /! /modals

Fix too many openes modal bug

p#notice = notice

.panel.panel-default
  table.table
    thead
    tbody
      - @folders.each do |folder|
        tr
          td
            i.fa.fa-folder-o aria-hidden=true
            span
            = link_to folder.basename, bucket_prefix_path(bucket_id: @bucket, prefix_id: folder.prefix)
      - @files.each do |file|
        tr
          td
            i.fa.fa-file-text-o aria-hidden=true
            span
            = link_to file.key
          td
            /! modals
            /! Small modal
            button.btn.btn-default.btn-xs data-target="#bs-example-modal-sm-#{file.hash}" data-toggle="modal" type="button"
              span.glyphicon.glyphicon-paperclip aria-hidden="true"
            .modal.fade.modal-presigned-url aria-hidden="true" role="dialog" style=("display: none;") tabindex="-1" id=("bs-example-modal-sm-#{file.hash}")
              .modal-dialog.modal-sm
                .modal-content
                  .modal-header.modal-presigned-url
                    button.close aria-label="Close" data-dismiss="modal" type="button"
                      span aria-hidden="true"  ×
                    h4#myModalLabel2.modal-title Pre-Signed URL
                  .modal-body.modal-presigned-url
                    h4 Expire In 1 day
                    input value="#{file.hash}"
                  .modal-footer.modal-presigned-url
                    button.btn.btn-default data-dismiss="modal" type="button"  Close
            /! /modals


- content_for :title
  = @column ? @column.name : 'Articles'

- if @column
  h1 = @column.name

.posts-list = render @posts, cached: true

= paginate @posts, theme: 'foundation'

- content_for :sidebar
  h2 Columns
  ul
    - columns_with_published_posts.each do |column|
      li = link_to_unless_current column.name, { controller: 'article/columns', action: 'show', column_id: column.slug } do

  ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-3960000263279832" data-ad-slot="6233569905" data-ad-format="auto"

Fix showing current column name on posts index

- content_for :title
  = @column ? @column.name : 'Articles'

- if @column
  h1 = @column.name

.posts-list = render @posts, cached: true

= paginate @posts, theme: 'foundation'

- content_for :sidebar
  h2 Columns
  ul
    - columns_with_published_posts.each do |column|
      li = link_to_unless_current column.name, { controller: 'article/columns', action: 'show', column_id: column.slug }

  ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-3960000263279832" data-ad-slot="6233569905" data-ad-format="auto"


doctype html

/[if IE 9]
  html class="lt-ie10" lang="en"
html class="no-js" lang="en"
  head
    meta charset="utf-8"
    meta name="viewport" content="width=device-width, initial-scale=1.0"

    title= "Caffeine v#{Caffeine::VERSION} admin"

    = csrf_meta_tags
    = bootstrap_stylesheet_include_tag :default, compressed: true
    = stylesheet_link_tag 'caffeine/admin', media: :all

    = jquery_include_tag :google
    = bootstrap_javascript_include_tag :default, compressed: true
    = javascript_include_tag 'caffeine/admin'

  body class="page-boxed page-header-fixed page-sidebar-closed-hide-logo page-container-bg-solid page-sidebar-closed-hide-logo #{yield :body_class}"
    = render 'caffeine/admin/partials/header'
    = render 'caffeine/admin/partials/article'

Remove version from admin title

doctype html

/[if IE 9]
  html class="lt-ie10" lang="en"
html class="no-js" lang="en"
  head
    meta charset="utf-8"
    meta name="viewport" content="width=device-width, initial-scale=1.0"

    title= "Caffeine admin"

    = csrf_meta_tags
    = bootstrap_stylesheet_include_tag :default, compressed: true
    = stylesheet_link_tag 'caffeine/admin', media: :all

    = jquery_include_tag :google
    = bootstrap_javascript_include_tag :default, compressed: true
    = javascript_include_tag 'caffeine/admin'

  body class="page-boxed page-header-fixed page-sidebar-closed-hide-logo page-container-bg-solid page-sidebar-closed-hide-logo #{yield :body_class}"
    = render 'caffeine/admin/partials/header'
    = render 'caffeine/admin/partials/article'


- if flash[:alert] || flash[:notice]
  #comable-notifier
    javascript:
      #{add_gritter(flash[:alert], image: :error) if flash[:alert]}
      #{add_gritter(flash[:notice], image: :success) if flash[:notice]}

Add a gritter option to work

- if flash[:alert] || flash[:notice]
  #comable-notifier
    javascript:
      #{add_gritter(flash[:alert], image: :error, nodom_wrap: true) if flash[:alert]}
      #{add_gritter(flash[:notice], image: :success, nodom_wrap: true) if flash[:notice]}


= simple_form_for search_cache, url: offers_path, html: { method: :get } do |f|
  = f.input :query, label: true, required: false, input_html: {  placeholder: 'Was? z.B. drogen, schwanger, erziehungshilfe...', spellcheck: false, autocomplete: 'off', autofocus: true, class: 'input-xlg typeahead' }
  = f.input :search_location, label: true, input_html: { value: geoloc_to_s, class: 'input-xlg JS-Search-location-display', placeholder: 'Wo? z.B. stadt, straße, plz...', oninvalid: "this.setCustomValidity('Bitte fülle dieses Feld aus')" }
  = f.input :generated_geolocation, as: :hidden, input_html: { class: 'JS-Search-location', value: default_geolocation }
  = f.input :tags, as: :hidden
  button.main-search__submit Suchen

Fix required bug on search form

= simple_form_for search_cache, url: offers_path, html: { method: :get } do |f|
  = f.input :query, label: true, required: false, input_html: {  placeholder: 'Was? z.B. drogen, schwanger, erziehungshilfe...', spellcheck: false, autocomplete: 'off', autofocus: true, class: 'input-xlg typeahead' }
  = f.input :search_location, label: true, input_html: { value: geoloc_to_s, class: 'input-xlg JS-Search-location-display', placeholder: 'Wo? z.B. stadt, straße, plz...', oninvalid: "this.setCustomValidity('Bitte fülle dieses Feld aus')", onchange: "try{setCustomValidity('')}catch(e){}" }
  = f.input :generated_geolocation, as: :hidden, input_html: { class: 'JS-Search-location', value: default_geolocation }
  = f.input :tags, as: :hidden
  button.main-search__submit Suchen


- if local_attr :menuitem
  - capture
    |
    - if font_icons?
      i.fa.fa-angle-right.caret
    - else
      b.caret ›
  span.menuseq
    b.menu
      =(attr :menu)
      - yield_capture
    - (attr 'submenus').each do |submenu|
      b.submenu
        =submenu
        - yield_capture
    b.menuitem =(local_attr :menuitem)
- else
  b.menuref =(attr :menu)

Remove icons-font variant of inline_menu

- if local_attr :menuitem
  - capture
    |
    b.caret ›
  span.menuseq
    b.menu
      =(attr :menu)
      - yield_capture
    - (attr 'submenus').each do |submenu|
      b.submenu
        =submenu
        - yield_capture
    b.menuitem =(local_attr :menuitem)
- else
  b.menuref =(attr :menu)