fieldset
  h3
    ' Full/legal name of your organisation
  = f.input :company_name, input_html: { class: 'big medium', autocomplete: "off"}, label_html: { class: 'visuallyhidden' }

fieldset
  h3
    ' Organisation address
    = f.input :company_address_first, input_html: { class: 'big large', autocomplete: "off"}, label: 'Building and street'
    = f.input :company_address_second, input_html: { class: 'big large', autocomplete: "off"}, label: false

  = f.input :company_city, input_html: { class: "big medium", autocomplete: "off"}, label: 'City'
  /= f.input :company_country, input_html: { class: "big medium"}, as: :string, label: 'Country'
  .input.question-group
    label.control-label
      ' Country
    = country_select(:user, :company_country, priority_countries: ["GB", "US"], selected: current_user.company_country)
  = f.input :company_postcode, input_html: { class: "big small", autocomplete: "off"}, label: 'Postcode'

fieldset
  h3
    ' Main telephone number
  = f.input :company_phone_number, input_html: { class: 'big small', autocomplete: "off"}, label_html: { class: 'visuallyhidden' }

COPY removed 'full/legal' from name of your organisation in account settings

fieldset
  h3
    ' Name of your organisation
  = f.input :company_name, input_html: { class: 'big medium', autocomplete: "off"}, label_html: { class: 'visuallyhidden' }

fieldset
  h3
    ' Organisation address
    = f.input :company_address_first, input_html: { class: 'big large', autocomplete: "off"}, label: 'Building and street'
    = f.input :company_address_second, input_html: { class: 'big large', autocomplete: "off"}, label: false

  = f.input :company_city, input_html: { class: "big medium", autocomplete: "off"}, label: 'City'
  /= f.input :company_country, input_html: { class: "big medium"}, as: :string, label: 'Country'
  .input.question-group
    label.control-label
      ' Country
    = country_select(:user, :company_country, priority_countries: ["GB", "US"], selected: current_user.company_country)
  = f.input :company_postcode, input_html: { class: "big small", autocomplete: "off"}, label: 'Postcode'

fieldset
  h3
    ' Main telephone number
  = f.input :company_phone_number, input_html: { class: 'big small', autocomplete: "off"}, label_html: { class: 'visuallyhidden' }


markdown:

  # Getting started

  ## 1. Install recorder

  ### Arch Linux

  asciinema is included in the [AUR](https://aur.archlinux.org/packages/asciinema/):

      $ yaourt -S asciinema

  ### OSX (via Homebrew)

  Install with:

      $ brew install https://gist.github.com/rogeriopradoj/6672302/raw/4cb8e7054ea01b29f67a7e2e2475a4028c553071/asciinema.rb --HEAD

  Later upgrade with:

      $ brew upgrade asciinema

  ### Others

  To install/upgrade asciinema recorder, open a terminal and run following
  command:

      $ curl -sL get.asciinema.org | bash

  ## 2. Record

  Open your terminal and run following command:

      $ asciinema

  New shell instance will be opened and everything you'll do in it will be
  recorded. When you're ready to upload simply exit the shell with `exit`
  command or just hit `<C-d>`.

  ## 3. Create profile (optional)

  If you want your recordings to be assigned to your asciinema profile and to be
  able to edit/delete them run this and follow instructions:

      $ asciinema auth

  If you skip this step now, you can always run above command later and all
  previously recorded asciicasts will get automatically assigned to your new
  profile.

  Btw, see [my profile](/~sickill).

  ## Advanced options

  The recorder supports several command-line options. See
  [here](#{docs_path(:options)}) for details.

Update installation instructions for OSX

markdown:

  # Getting started

  ## 1. Install recorder

  ### Arch Linux

  asciinema is included in the [AUR](https://aur.archlinux.org/packages/asciinema/):

      $ yaourt -S asciinema

  ### OSX (via Homebrew)

  If you use Homebrew then use the following formula URL:

      $ brew install https://raw.github.com/sickill/asciinema/master/homebrew/asciinema.rb

  ### Others

  To install/upgrade asciinema recorder, open a terminal and run following
  command:

      $ curl -sL get.asciinema.org | bash

  ## 2. Record

  Open your terminal and run following command:

      $ asciinema

  New shell instance will be opened and everything you'll do in it will be
  recorded. When you're ready to upload simply exit the shell with `exit`
  command or just hit `<C-d>`.

  ## 3. Create profile (optional)

  If you want your recordings to be assigned to your asciinema profile and to be
  able to edit/delete them run this and follow instructions:

      $ asciinema auth

  If you skip this step now, you can always run above command later and all
  previously recorded asciicasts will get automatically assigned to your new
  profile.

  Btw, see [my profile](/~sickill).

  ## Advanced options

  The recorder supports several command-line options. See
  [here](#{docs_path(:options)}) for details.


.subscription-form
  - if current_user.subscribed_to? chapter
    // TODO: The below looks crap when rendering in Arabic.
    p.pull-left.lead
      i.fa.fa-check> = t('subscriptions.subscribe', name: chapter.name, link: chapter_path(chapter)).html_safe
    = form_tag subscription_path(current_user.subscriptions.find_by(chapter: chapter)), method: :delete, class: "subscribed form-inline" do
      = submit_tag t('subscriptions.unsubscribe'), class: "btn btn-danger"
  - else
    = form_for Subscription.new(chapter: chapter), class: "new subscription" do |f|
      = f.hidden_field :chapter_id
      = f.submit t('subscriptions.subscribe', name: chapter.name), class: "btn btn-default btn-lg"

Fix typo that resulted in the wrong string being displayed if a user was already subscribed to this chapter.

.subscription-form
  - if current_user.subscribed_to? chapter
    // TODO: The below looks crap when rendering in Arabic.
    p.pull-left.lead
      i.fa.fa-check> = t('subscriptions.subscribed', name: chapter.name, link: chapter_path(chapter)).html_safe
    = form_tag subscription_path(current_user.subscriptions.find_by(chapter: chapter)), method: :delete, class: "subscribed form-inline" do
      = submit_tag t('subscriptions.unsubscribe'), class: "btn btn-danger"
  - else
    = form_for Subscription.new(chapter: chapter), class: "new subscription" do |f|
      = f.hidden_field :chapter_id
      = f.submit t('subscriptions.subscribe', name: chapter.name), class: "btn btn-default btn-lg"


article.extra-padding.activity-form
  iframe#activity-iframe src=@activity.module_url(@activity_session)

  javascript:
    jQuery(function ($) {
      window.quill = new Quill('#{@activity.module_url(@activity_session)}')
      quill.listen();
    });

Set up Porthole server side.

article.extra-padding.activity-form
  iframe#activity-iframe src=@activity.module_url(@activity_session) name=@activity.name

  javascript:
    jQuery(function ($) {
      var moduleUrl = '#{@activity.module_url(@activity_session)}';
      window.quill = new Quill(moduleUrl);
      quill.listen();
      var windowProxy = new Porthole.WindowProxy(moduleUrl, '#{@activity.name}');
      windowProxy.addEventListener(function(message) {
        var data = message.data;
        if (data.id) {
          quill.finishActivity(id);
        } else {
          quill.cheat();
        }
      });
    });


- channels.each_slice(slice).each do |channels|
  .row.mb-3
    - channels.each do |channel|
      - pds = defined?(program_details) ? program_details.select { |pd| pd.channel_id == channel.id } : channel.program_details.includes(:channel).published.where(work: work)
      div class="col-#{12 / slice}"
        - if pds.present? && pds.length > 1
          .btn-group.w-100
            button.btn.u-btn-link.w-100.dropdown-toggle type="button" data-toggle="dropdown"
              = channel.name
            .dropdown-menu.w-100
              - pds.each do |pd|
                = link_to pd.vod_title_name, vod_title_url(channel.id, pd.vod_title_code), class: "dropdown-item", target: "_blank"
        - elsif pds.present? && pds.length == 1
          = link_to channel.name, vod_title_url(channel.id, pds[0].vod_title_code), class: "btn u-btn-link w-100", target: "_blank"
        - else
          button.btn.u-btn-link.w-100 type="button" disabled=""
            = channel.name

Disable button if vod_title_code is blank

- channels.each_slice(slice).each do |channels|
  .row.mb-3
    - channels.each do |channel|
      - pds = defined?(program_details) ? program_details.select { |pd| pd.channel_id == channel.id } : channel.program_details.includes(:channel).published.where(work: work)
      div class="col-#{12 / slice}"
        - if pds.present? && pds.length > 1
          .btn-group.w-100
            button.btn.u-btn-link.w-100.dropdown-toggle type="button" data-toggle="dropdown"
              = channel.name
            .dropdown-menu.w-100
              - pds.each do |pd|
                = link_to pd.vod_title_name, vod_title_url(channel.id, pd.vod_title_code), class: "dropdown-item", target: "_blank"
        - elsif pds.present? && pds.length == 1 && pds[0].vod_title_code.present?
          = link_to channel.name, vod_title_url(channel.id, pds[0].vod_title_code), class: "btn u-btn-link w-100", target: "_blank"
        - else
          button.btn.u-btn-link.w-100 type="button" disabled=""
            = channel.name


meta name='twitter:card' content='summary_large_image'
meta name='twitter:site' content='@splitsio'
meta name='twitter:domain' content=request.host_with_port
- if @run.present?
  - if @run.game.to_s.present?
    meta name='twitter:title' content=@run.game
  - else
    meta name='twitter:title' content='(no title)'
  - if @run.category.to_s.present?
    meta name='twitter:description' content=@run.category
  - if @run.image_url.present?
    meta name='twitter:image:src' content=@run.image_url
- elsif @race.present?
  meta name='twitter:title' content=@race
  - if @race.notes.present?
    meta name='twitter:description' content=@race.notes
- else
  meta name='twitter:title' content='Splits.io'
  meta name='twitter:title' content='Speedrun data store, analysis engine, and racing platform'

Fix Twitter card using demo run on homepage

meta name='twitter:card' content='summary_large_image'
meta name='twitter:site' content='@splitsio'
meta name='twitter:domain' content=request.host_with_port
- if @run.present? && !(controller_name == 'runs' && action_name == 'index') # runs#index (homepage) sets a @run when logged out for demo purposes
  - if @run.game.to_s.present?
    meta name='twitter:title' content=@run.game
  - else
    meta name='twitter:title' content='(no title)'
  - if @run.category.to_s.present?
    meta name='twitter:description' content=@run.category
  - if @run.image_url.present?
    meta name='twitter:image:src' content=@run.image_url
- elsif @race.present?
  meta name='twitter:title' content=@race
  - if @race.notes.present?
    meta name='twitter:description' content=@race.notes
- else
  meta name='twitter:title' content='Splits.io'
  meta name='twitter:title' content='Speedrun data store, analysis engine, and racing platform'


nav.tabs
  = tab_link_to t('admin.dashboard.index.menu'), admin_dashboard_path
  = tab_link_to t('admin.projects.index.menu'), admin_projects_path

  - if channel.present?
    = tab_link_to t('channels.admin.followers.menu'), channels_admin_followers_path
  - else
    = tab_link_to t('admin.backers.index.menu'), admin_backers_path
    = tab_link_to t('admin.users.index.menu'), admin_users_path
    = tab_link_to t('admin.tags.index.menu'), admin_tags_path
    = tab_link_to t('admin.press_assets.index.menu'), admin_press_assets_path
    = tab_link_to t('admin.financials.index.menu'), admin_financials_path

Add channels admin to admin menu

nav.tabs
  = tab_link_to t('admin.dashboard.index.menu'), admin_dashboard_path
  = tab_link_to t('admin.projects.index.menu'), admin_projects_path

  - if channel.present?
    = tab_link_to t('channels.admin.followers.menu'), channels_admin_followers_path
  - else
    = tab_link_to t('admin.backers.index.menu'), admin_backers_path
    = tab_link_to t('admin.users.index.menu'), admin_users_path
    = tab_link_to t('admin.channels.index.menu'), admin_channels_path
    = tab_link_to t('admin.tags.index.menu'), admin_tags_path
    = tab_link_to t('admin.press_assets.index.menu'), admin_press_assets_path
    = tab_link_to t('admin.financials.index.menu'), admin_financials_path


<!DOCTYPE html>
html
  head
    title
      = Setting.title
    = stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true
    = javascript_include_tag 'application', 'data-turbolinks-track' => true
    = csrf_meta_tags
  body
    .navbar.navbar-default.navbar-static-top
      .navbar-collapse.collapse.navbar-responsive-collapse
        ul.nav.navbar-nav
          - if current_user
            li = link_to "Topics"       , topics_path
            li = link_to "Feeds"        , feeds_path
            li = link_to "Categories"   , categories_path
            li = link_to "Subscriptions", subscriptions_path
            li = link_to "Keywords"     , keywords_path
            li = link_to "Tags"         , tags_path
            li = link_to "Entries"      , entries_path
            li = link_to "Tracks"       , tracks_path
            - if current_user.admin?
              li = link_to "Application", oauth_applications_path
              li = link_to "Profiles"   , users_path
            li = link_to "Edit Profile", edit_user_path(current_user.id)
            li = link_to "Logout", :logout, method: :post
          - else
            li = link_to "Register", new_user_path
            li = link_to "Login", :login

    .container
      = flash_messages
      = yield

Add journal link of navbar

<!DOCTYPE html>
html
  head
    title
      = Setting.title
    = stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true
    = javascript_include_tag 'application', 'data-turbolinks-track' => true
    = csrf_meta_tags
  body
    .navbar.navbar-default.navbar-static-top
      .navbar-collapse.navbar-responsive-collapse
        ul.nav.navbar-nav
          - if current_user
            li = link_to "Journal"      , journals_path
            li = link_to "Topics"       , topics_path
            li = link_to "Feeds"        , feeds_path
            li = link_to "Categories"   , categories_path
            li = link_to "Subscriptions", subscriptions_path
            li = link_to "Keywords"     , keywords_path
            li = link_to "Tags"         , tags_path
            li = link_to "Entries"      , entries_path
            li = link_to "Tracks"       , tracks_path
            - if current_user.admin?
              li = link_to "Application", oauth_applications_path
              li = link_to "Profiles"   , users_path
            li = link_to "Edit Profile", edit_user_path(current_user.id)
            li = link_to "Logout", :logout, method: :post
          - else
            li = link_to "Register", new_user_path
            li = link_to "Login", :login

    .container
      = flash_messages
      = yield


article
  header
    h1
      = link_to "Patient Events (#{events.size})", patient_events_path(@patient)

    = link_to new_patient_event_path(@patient), class: "button" do
      | Add event

  = render "renalware/events/events/table", events: events

Change Patient Events title to just Events

article
  header
    h1
      = link_to "Events (#{events.size})", patient_events_path(@patient)

    = link_to new_patient_event_path(@patient), class: "button" do
      | Add event

  = render "renalware/events/events/table", events: events


p
  = t("devise.mailer.invitation_instructions.hello", name: @resource.name)
p
  = t("devise.mailer.invitation_instructions.set_up", url: root_url)
ol
  li
    = t("devise.mailer.invitation_instructions.list_1")
  li
    = t("devise.mailer.invitation_instructions.list_2")
    = link_to(accept_user_invitation_url(@resource, invitation_token: @token), accept_user_invitation_url(@resource, invitation_token: @token))
  li
    = t("devise.mailer.invitation_instructions.list_3")
p
  = t("devise.mailer.invitation_instructions.ignore").html_safe

Remove user ID from the invitation url

p
  = t("devise.mailer.invitation_instructions.hello", name: @resource.name)
p
  = t("devise.mailer.invitation_instructions.set_up", url: root_url)
ol
  li
    = t("devise.mailer.invitation_instructions.list_1")
  li
    = t("devise.mailer.invitation_instructions.list_2")
    = link_to(accept_user_invitation_url(invitation_token: @token), accept_user_invitation_url(invitation_token: @token))
  li
    = t("devise.mailer.invitation_instructions.list_3")
p
  = t("devise.mailer.invitation_instructions.ignore").html_safe


= render layout: "renalware/patients/layout", locals: { title: "Problems" } do
  - if !current_user.read_only? && params[:add_problem].present?
    = simple_form_for @problem, url: patient_problems_path(@patient), wrapper: :horizontal_form do |f|
        = field_set_tag "New problem" do
          .row
            .large-6.columns
              = f.input :description
            .large-6.columns
              = f.button :button, "Save", class: "tiny"
              span= " or "
              = link_to "cancel", patient_problems_path(@patient)

  table#problems.manual-stripes.auto-layout
    thead
      tr
        td.options
        td Description
        td Recorded on
        td
    = content_tag(:tbody, class: "sortables", data: { rel: sort_patient_problems_path(@patient) }) do
      - @problems.reject(&:new_record?).each do |problem|
        = content_tag_for(:tr, problem, class: "sortable") do
          td
            = link_to "View", patient_problem_path(@patient, problem)
            = pipe_separator
            = link_to "Edit", edit_patient_problem_path(@patient, problem)
            = pipe_separator
            = link_to "Terminate", patient_problem_path(@patient, problem), method: :delete, data: { confirm: 'Are you sure?' }
          td
            = problem.description
            ol
              - problem.notes.each do |note|
                li= note.description
          td= l problem.updated_at.to_date
          td.handle
            i.fa.fa-reorder

Rename 'View' problem link to 'Edit'

= render layout: "renalware/patients/layout", locals: { title: "Problems" } do
  - if !current_user.read_only? && params[:add_problem].present?
    = simple_form_for @problem, url: patient_problems_path(@patient), wrapper: :horizontal_form do |f|
        = field_set_tag "New problem" do
          .row
            .large-6.columns
              = f.input :description
            .large-6.columns
              = f.button :button, "Save", class: "tiny"
              span= " or "
              = link_to "cancel", patient_problems_path(@patient)

  table#problems.manual-stripes.auto-layout
    thead
      tr
        td.options
        td Description
        td Recorded on
        td
    = content_tag(:tbody, class: "sortables", data: { rel: sort_patient_problems_path(@patient) }) do
      - @problems.reject(&:new_record?).each do |problem|
        = content_tag_for(:tr, problem, class: "sortable") do
          td
            = link_to "Edit", patient_problem_path(@patient, problem)
            = pipe_separator
            = link_to "Terminate", patient_problem_path(@patient, problem), method: :delete, data: { confirm: 'Are you sure?' }
          td
            = problem.description
            ol
              - problem.notes.each do |note|
                li= note.description
          td= l problem.updated_at.to_date
          td.handle
            i.fa.fa-reorder


h2 Example

- item.example.each do |example|

  - if example.description.present?
    p= example.description

  - if example.type == "scss"
    figure.doc-item__code-example
      figcaption SCSS
      = code("scss") do
        = example.code

  - if example.type == "css"
    figure.doc-item__code-example
      figcaption CSS
      = code("css") do
        = example.code

Make it clear that CSS is the output

h2 Example

- item.example.each do |example|

  - if example.description.present?
    p= example.description

  - if example.type == "scss"
    figure.doc-item__code-example
      figcaption SCSS
      = code("scss") do
        = example.code

  - if example.type == "css"
    figure.doc-item__code-example
      figcaption CSS Output
      = code("css") do
        = example.code


= form_for @<%= singular_table_name %> do |f|
  - if @<%= singular_table_name %>.errors.any?
    #error_explanation
      h2 = "#{pluralize(@<%= singular_table_name %>.errors.count, "error")} prohibited this <%= singular_table_name %> from being saved:"
      ul
        - @<%= singular_table_name %>.errors.full_messages.each do |message|
          li = message

<% attributes.each do |attribute| -%>
  .field
    = f.label :<%= attribute.name %>
    = f.<%= attribute.field_type %> :<%= attribute.name %>
<% end -%>
  .actions = f.submit 'Save'

Remove "Save" label from submit button in form partial


.row
  .span2
  .span8
    | {{#profile}}
    .page-header
      .row
        .span2
          img.avatar-large.img-rounded src='{{avatar}}'
        .span6.no-offset
          h2.condensed
            | {{^hasName}}
            a href='{{{entity}}}' {{name}}
            | {{/hasName}}
            | {{#hasName}}
            | {{name}}

            | {{#guest_authenticated}}
            form.pull-rght style='display:inline' data-view='ProfileFollowButton' method='POST'
              input type='hidden' name='entity' value='{{entity}}'
              input.btn.btn-success.pull-right type='submit' value='Follow'
            | {{/guest_authenticated}}

            br/
            a href='{{{entity}}}'
              small {{formatted.entity}}
            | {{/hasName}}
          | {{#bio}}
          .span6.no-offset
            p {{bio}}
          | {{/bio}}
      .row
        .profile-stats
          .span2
          .span6.no-offset data-view='ProfileStats'
    | {{/profile}}

.row
  .span2
  .span8
    ul.unstyled.posts data-view='DomainPostsFeed'
      | {{#posts}}
      | {{> _post}}
      | {{/posts}}

Fix follow button not showing up on profiles without name

.row
  .span2
  .span8
    | {{#profile}}
    .page-header
      .row
        .span2
          img.avatar-large.img-rounded src='{{avatar}}'
        .span6.no-offset
          h2.condensed
            | {{^hasName}}
            a href='{{{entity}}}' {{name}}
            | {{/hasName}}
            | {{#hasName}}
            | {{name}}
            | {{/hasName}}

            | {{#guest_authenticated}}
            form.pull-rght style='display:inline' data-view='ProfileFollowButton' method='POST'
              input type='hidden' name='entity' value='{{entity}}'
              input.btn.btn-success.pull-right type='submit' value='Follow'
            | {{/guest_authenticated}}

            | {{#hasName}}
            br/
            a href='{{{entity}}}'
              small {{formatted.entity}}
            | {{/hasName}}
          | {{#bio}}
          .span6.no-offset
            p {{bio}}
          | {{/bio}}
      .row
        .profile-stats
          .span2
          .span6.no-offset data-view='ProfileStats'
    | {{/profile}}

.row
  .span2
  .span8
    ul.unstyled.posts data-view='DomainPostsFeed'
      | {{#posts}}
      | {{> _post}}
      | {{/posts}}


- case style
- when 'qanda'
  include _qanda.html
- when 'horizontal'
  include _hdlist.html
- else
  = block_with_title :class=>['dlist', style]
    dl
      - items.each do |terms, dd|
        - [*terms].each do |dt|
          dt =dt.text
        - unless dd.nil?
          dd =(print_item_content dd)

Append style to class of <dl> in dlist

- case style
- when 'qanda'
  include _qanda.html
- when 'horizontal'
  include _hdlist.html
- else
  = block_with_title :class=>['dlist', style]
    dl class=style
      - items.each do |terms, dd|
        - [*terms].each do |dt|
          dt =dt.text
        - unless dd.nil?
          dd =(print_item_content dd)


li
  h3
    = link_to highlight(search.title, params[:term]), search.decorate.show_page_link
  - text = excerpt(search.content, params[:term], radius: 200)
  - highlight = text.blank? ? truncate(search.content.html_safe, length: 200, separator: '.') : highlight(text, params[:term])
  div = highlight

Add read more link for search view

li
  h3 = link_to highlight(search.title, params[:term]), search.decorate.show_page_link

  - text = excerpt(search.content, params[:term], radius: 200)
  - highlight = text.blank? ? search.content : highlight(text, params[:term])
  div = truncate_read_more(highlight, search.decorate.show_page_link)


- if @notification.contribution.present?
  - resource = @notification.contribution
- else
  - resource = @notification.match

|Project: #{resource.project.name}
br/
|Key:
strong #{resource.key}
br/
|Payment ID #:
strong #{resource.payment_id}
br/
|Payment Method:
strong #{resource.payment_method}
br/
br/
|This #{resource.class.model_name.human} has been cancelled, either by the contributor or by the credit card company.
br/
|Check with payment website for means of payment and transaction status.

Use finalcial intead of credit card on notification

- if @notification.contribution.present?
  - resource = @notification.contribution
- else
  - resource = @notification.match

|Project: #{resource.project.name}
br/
|Key:
strong #{resource.key}
br/
|Payment ID #:
strong #{resource.payment_id}
br/
|Payment Method:
strong #{resource.payment_method}
br/
br/
|This #{resource.class.model_name.human} has been cancelled, either by the contributor or by the financial company.
br/
|Check with payment website for means of payment and transaction status.


.margin-bottom data-replace-self-on-ajax-success=true
  - if plus_one.count > 0
    span.pull-right.tooltip data-tooltip-position='left' title=plus_one.names
      | #{pluralize(plus_one.count, 'person')} +1'd this.
  = form_for plus_one, url: plus_one.form_url, remote: true, method: plus_one.form_method,
    html: { class: '' } do |f|
    button class=plus_one.button_css_class type='submit'
      | +1

Fix plus one count overlap with close button

.margin-bottom data-replace-self-on-ajax-success=true
  - if plus_one.count > 0
    span.pull-right.tooltip style='margin-right: 28px' data-tooltip-position='left' title=plus_one.names
      | #{pluralize(plus_one.count, 'person')} +1'd this.
  = form_for plus_one, url: plus_one.form_url, remote: true, method: plus_one.form_method,
    html: { class: '' } do |f|
    button class=plus_one.button_css_class type='submit'
      | +1


- content_for :title, t('.title', project_name: @project.name)
.edit-match-page[data-thank-you-path=project_match_path(project_id: @project, id: @match.id)]
  header.hero
    .gradient
    .row
      .large-12.columns
        = image_tag 'match-example.jpg'

  section.white.text-center
    .row
      .large-12.columns
        h3 = t('.description_html')

  .row
    section.content.large-10.columns.large-centered
      = render 'shared/payments/form', resource: @match

Add class to hero about no image

- content_for :title, t('.title', project_name: @project.name)
.edit-match-page[data-thank-you-path=project_match_path(project_id: @project, id: @match.id)]
  header.hero.no-image
    .gradient
    .row
      .large-12.columns
        = image_tag 'match-example.jpg'

  section.white.text-center
    .row
      .large-12.columns
        h3 = t('.description_html')

  .row
    section.content.large-10.columns.large-centered
      = render 'shared/payments/form', resource: @match


.bootstrap-form
  = semantic_form_for [@project, ProjectFaq.new] do |form|
    = form.inputs do
      = form.input :title, as: :string
      = form.input :answer, as: :text, input_html: {rows: 10}
      = render partial: 'projects/formatting_tips'
    = form.actions do
      = form.submit 'Create', class: "btn"

Remove formatting tips on project faqs page

.bootstrap-form
  = semantic_form_for [@project, ProjectFaq.new] do |form|
    = form.inputs do
      = form.input :title, as: :string
      = form.input :answer, as: :text, input_html: {rows: 10}
    = form.actions do
      = form.submit 'Create', class: "btn"


#resource.tab-pane
  .well
    .text-center
      h1 Add resource:
      p
        input.form-control placeholder="URL" type="text"
      p
        input.form-control placeholder="Title" type="text"
      p
        textarea.form-control placeholder="Description" rows="3"
      p
        button.btn.btn-primary Add

Add modal to resource button

#resource.tab-pane
  .well
    .text-center
      h1 Add resource:
      p
        input.form-control placeholder="URL" type="text"
      p
        input.form-control placeholder="Title" type="text"
      p
        textarea.form-control placeholder="Description" rows="3"
      p
        button.btn.btn-primary data-target="#myModal" data-toggle="modal" Add


.row.search-form.filters
  = simple_form_for query,
      as: :q,
      url: worryboard_path,
      method: :get do |f|

    .small-6.medium-2.large-2.columns
      = f.input :patient_current_modality_description_id_eq,
                collection: modalities,
                label: "Modality"

    .medium-2.large-3.columns.actions.end
      = f.submit "Filter", class: "button"
      '  or
      = link_to t("helpers.reset"), worryboard_path

Add the creating user to the worryboard filter

/ This is required for now - its to do with the page title being a float and perhaps not clearing
.clear-both

.search-form.filters.filters--flex.max-w-screen-md
  = simple_form_for query, as: :q, url: worryboard_path, method: :get do |f|

    .flex.flex-col.sm:flex-row.items-end.pb-4
      .w-full.sm:max-w-xs.pr-2
        = f.input :patient_current_modality_description_id_eq,
                  collection: modalities,
                  label: "Modality"
      .w-full.sm:max-w-xs.pr-2
        = f.input :created_by_id_eq,
                  collection: Renalware::User.where("id in (select distinct created_by_id from patient_worries)"),
                  label: "Added by"

      .flex-shrink-0.pt-4.filters--actions
        = f.submit "Filter", class: "button", style: "margin: 0"
        '  or
        = link_to t("helpers.reset"), worryboard_path


h2
  = I18n.t('authy_register_title', {:scope => 'devise'})
  br
  small
    = I18n.t('submit_token_title', {:scope => 'devise'})

= verify_authy_form do

  .question-group
    h3 = label_tag :token
    .row
      .col-md-3.col-sm-4
        = text_field_tag :token, token_value, :autocomplete => :off, :id => 'authy-token'

  .question-group
    .row
      .col-md-12
        label
          = check_box_tag :remember_device
          span
            = I18n.t('remember_device', {:scope => 'devise'})

  br

  = submit_tag I18n.t('submit_token', {:scope => 'devise'}), :class => 'btn btn-primary'

  br

  small
    = link_to 'Help', 'https://authy.zendesk.com/hc/en-us/requests/new', :id => 'authy-help', target: "_blank"
    br
    = authy_request_sms_link

Clean up style of 2fa page input

h2
  = I18n.t('authy_register_title', {:scope => 'devise'})
  br
  small
    = I18n.t('submit_token_title', {:scope => 'devise'})

= verify_authy_form do

  .question-group
    h3 = label_tag :token
    .row
      .col-md-3.col-sm-4
        = text_field_tag :token, token_value, :autocomplete => :off, :id => 'authy-token', class: 'form-control'

  .question-group
    .row
      .col-md-12
        .checkbox
          label
            = check_box_tag :remember_device
            span
              = I18n.t('remember_device', {:scope => 'devise'})

  br

  = submit_tag I18n.t('submit_token', {:scope => 'devise'}), :class => 'btn btn-primary'

  br

  small
    = link_to 'Help', 'https://authy.zendesk.com/hc/en-us/requests/new', :id => 'authy-help', target: "_blank"
    br
    = authy_request_sms_link


h2 Навігація
ul
  li
    a.btn.btn-raised.btn-material-red-800  href="index.html" Що це таке?
  li
    a.btn.btn-raised.btn-material-red-800  href="git_github" Git та Github
  li
    a.btn.btn-raised.btn-material-red-800  href="static_or" Статична сторінка?

Fix links - from /

h2 Навігація
ul
  li
    a.btn.btn-raised.btn-material-red-800  href="index.html" Що це таке?
  li
    a.btn.btn-raised.btn-material-red-800  href="/git_github" Git та Github
  li
    a.btn.btn-raised.btn-material-red-800  href="/static_or" Статична сторінка?


- url_namespace = admin_signed_in? ? :admin : :assessor
li.form_answer_attachment
  = link_to [url_namespace, form_answer_attachment.form_answer, form_answer_attachment],
            target: "_blank",
            class: "ellipsis"
    span.action-title
      span.glyphicon.glyphicon-file
      = form_answer_attachment.decorate.display_name
  - if form_answer_attachment.uploaded_not_by_user? && policy(form_answer_attachment).destroy?
    small.pull-right
      = form_for(form_answer_attachment, url: admin_form_answer_form_answer_attachment_path(form_answer_attachment.form_answer, form_answer_attachment), html: {method: :delete, style: 'display:inline-block;'}) do |f|
        = f.submit 'Remove', class: 'if-js-hide'

        = link_to "#", class: "text-danger if-no-js-hide"
          span.glyphicon.glyphicon-remove
          span.visible-lg.visible-md
            ' Remove

Add confirmation on removing admin attachments

- url_namespace = admin_signed_in? ? :admin : :assessor
li.form_answer_attachment
  = link_to [url_namespace, form_answer_attachment.form_answer, form_answer_attachment],
            target: "_blank",
            class: "ellipsis"
    span.action-title
      span.glyphicon.glyphicon-file
      = form_answer_attachment.decorate.display_name
  - if form_answer_attachment.uploaded_not_by_user? && policy(form_answer_attachment).destroy?
    small.pull-right
      = form_for(form_answer_attachment, url: admin_form_answer_form_answer_attachment_path(form_answer_attachment.form_answer, form_answer_attachment), html: {method: :delete, style: 'display:inline-block;'}) do |f|
        = f.submit 'Remove', class: 'if-js-hide'

        = link_to "#", class: "text-danger if-no-js-hide", data: {confirm: "Are you sure?"}
          span.glyphicon.glyphicon-remove
          span.visible-lg.visible-md
            ' Remove


---
title: 'Registrace'
css: 'registration'
---

h2 = "Formulář pro registraci účastníků"

form#reg
  label for="name" Jméno
  input#name type="text"
  div.clear
  label Příjmení
  input#lastname type="text"
  div.clear
  label Věk
  input#age type="text"
  div.clear
  label Email
  input#email type="text"
  div.clear
  input type="image" src="/assets/images/send.png"

Remove reg form for now.

---
title: 'Registrace'
css: 'registration'
---

h2 = "Formulář pro registraci účastníků"

h3 Registrace bude brzy spuštěna!

//form#reg
  label for="name" Jméno
  input#name type="text"
  div.clear
  label Příjmení
  input#lastname type="text"
  div.clear
  label Věk
  input#age type="text"
  div.clear
  label Email
  input#email type="text"
  div.clear
  input type="image" src="/assets/images/send.png"


- survey = response_experience_points_reason.survey
= link_to(format_inline_text(survey.title), respond_course_survey_path(current_course, survey))

Update survey experience points reason partial

- response = response_experience_points_reason
- survey = response.survey
= link_to(format_inline_text(survey.title),
          course_survey_response_path(current_course, survey, response))


- utm = { utm_source: "annict", utm_medium: "components", utm_campaign: "sticky-message", utm_content: page_category }

script#t-sticky-message type="x-template"
  .c-sticky-message.position-fixed.w-100.p-3 v-if="appLoaded"
    .c-sticky-message__container.row.align-items-center.mx-auto
      .col.row.align-items-center
        .col.col-auto.pl-0
          = link_to root_path(utm) do
            = image_tag asset_pack_path("images/logos/color-mizuho.png"), size: "25x30", alt: "Annict"
        .col
          | {{ messageBody }}
          div
            = link_to about_path(utm) do
              = t "messages._components.sticky_message.about"
      .col.col-auto.text-center.pr-0
        = link_to new_user_registration_path(utm), class: "btn btn-primary" do
          = icon "rocket", class: "mr-1"
          = t "messages._components.sticky_message.sign_up"

Hide sticky message component if user signed in

- utm = { utm_source: "annict", utm_medium: "components", utm_campaign: "sticky-message", utm_content: page_category }

script#t-sticky-message type="x-template"
  .c-sticky-message.position-fixed.w-100.p-3 v-if="appLoaded && isDisplayable()"
    .c-sticky-message__container.row.align-items-center.mx-auto
      .col.row.align-items-center
        .col.col-auto.pl-0
          = link_to root_path(utm) do
            = image_tag asset_pack_path("images/logos/color-mizuho.png"), size: "25x30", alt: "Annict"
        .col
          | {{ messageBody }}
          div
            = link_to about_path(utm) do
              = t "messages._components.sticky_message.about"
      .col.col-auto.text-center.pr-0
        = link_to new_user_registration_path(utm), class: "btn btn-primary" do
          = icon "rocket", class: "mr-1"
          = t "messages._components.sticky_message.sign_up"


script#t-episode-progress type="x-template"
  .c-episode-progress
    .text-muted.u-very-small
      = "{{ watchedEpisodesCount }} / {{ episodesCount }} #{t("verb.episodes_watched")}"
    .progress
      .progress-bar.bg-info :style='{ width: ratio + "%" }' :aria-valuenow="ratio" role="progressbar" aria-valuemin="0" aria-valuemax="100"

Fix height of progress bar

script#t-episode-progress type="x-template"
  .c-episode-progress
    .text-muted.u-very-small
      = "{{ watchedEpisodesCount }} / {{ episodesCount }} #{t("verb.episodes_watched")}"
    .progress
      .progress-bar.bg-info :style='{ width: ratio + "%", height: "7px" }' :aria-valuenow="ratio" role="progressbar" aria-valuemin="0" aria-valuemax="100"


#faq-box.w-hidden-small.w-hidden-tiny.back-faq-box data-ix="new-interaction"
  .u-marginbottom-20.fontsize-small.fontweight-semibold=t('projects.contributions.faq.common_questions')
  ul.w-list-unstyled
    li.list-question.fontsize-smaller.alt-link =t('projects.contributions.faq.how_contribute')
    li.list-answer.u-marginbottom-20.fontsize-smaller=t('projects.contributions.faq.how_contribute_answer')

    li.list-question.fontsize-smaller.alt-link =t('projects.contributions.faq.when_made_payment')
    li.list-answer.u-marginbottom-20.fontsize-smaller=t('projects.contributions.faq.when_made_payment_answer')

    li.list-question.fontsize-smaller.alt-link =t('projects.contributions.faq.when_project_fails')
    li.list-answer.u-marginbottom-20.fontsize-smaller=t('projects.contributions.faq.when_project_fails_answer')

    li.list-question.fontsize-smaller.alt-link =t('projects.contributions.faq.when_project_funded')
    li.list-answer.u-marginbottom-20.fontsize-smaller=raw t('projects.contributions.faq.when_project_funded_answer', name: link_to(@project.user.display_name, user_path(@project.user)))

Fix white spaces inside li tag in faq box

#faq-box.w-hidden-small.w-hidden-tiny.back-faq-box data-ix="new-interaction"
  .u-marginbottom-20.fontsize-small.fontweight-semibold=t('projects.contributions.faq.common_questions')
  ul.w-list-unstyled
    li.list-question.fontsize-smaller.alt-link  #{t('projects.contributions.faq.how_contribute')}
    li.list-answer.u-marginbottom-20.fontsize-smaller=t('projects.contributions.faq.how_contribute_answer')

    li.list-question.fontsize-smaller.alt-link  #{t('projects.contributions.faq.when_made_payment')}
    li.list-answer.u-marginbottom-20.fontsize-smaller=t('projects.contributions.faq.when_made_payment_answer')

    li.list-question.fontsize-smaller.alt-link  #{t('projects.contributions.faq.when_project_fails')}
    li.list-answer.u-marginbottom-20.fontsize-smaller=t('projects.contributions.faq.when_project_fails_answer')

    li.list-question.fontsize-smaller.alt-link  #{t('projects.contributions.faq.when_project_funded')}
    li.list-answer.u-marginbottom-20.fontsize-smaller=raw t('projects.contributions.faq.when_project_funded_answer', name: link_to(@project.user.display_name, user_path(@project.user)))


doctype html

html
  head
    title
      = content_for?(:title) ? yield(:title) : "QAE"
    = stylesheet_link_tag    'application', media: 'all'
    /[if gt IE 8]
      = stylesheet_link_tag  "application.css"
    /[if IE 6]
      = stylesheet_link_tag  "application-ie6.css"
    /[if IE 7]
      = stylesheet_link_tag  "application-ie7.css"
    /[if IE 8]
      = stylesheet_link_tag  "application-ie8.css"
    = javascript_include_tag 'application'
    = csrf_meta_tags

  body
    #wrapper.guide.smart_answer.answer
      #QAE
        main#content.group role="main"
          = yield

Add header title and links

doctype html

html
  head
    title
      = content_for?(:title) ? yield(:title) : "QAE"
    = stylesheet_link_tag    'application', media: 'all'
    /[if gt IE 8]
      = stylesheet_link_tag  "application.css"
    /[if IE 6]
      = stylesheet_link_tag  "application-ie6.css"
    /[if IE 7]
      = stylesheet_link_tag  "application-ie7.css"
    /[if IE 8]
      = stylesheet_link_tag  "application-ie8.css"
    = javascript_include_tag 'application'
    = csrf_meta_tags

  body
    .header-proposition
      .content
        nav#proposition-menu
          a#proposition-name href="/"
            ' QAE
          ul#proposition-links
            li
              = link_to "Your account", account_path
            li
              = link_to "Log out", "#"

    #wrapper.guide.smart_answer.answer
      #QAE
        main#content.group role="main"
          = yield


- if current_user.nil?
  - content_for(:head) do
    sass:
      nav, .breadcrumb, #alerts, #footer, #carbonads-holder
       visibility: hidden
= render template: 'layouts/application'
- if current_user.nil?
  footer.fixed-bottom.text-secondary.ml-auto.mr-0 style='text-align: right'
    => icon('fas', 'envelope')
    a> href='mailto:hi@splits.io' hi@splits.io
    ' /
    => icon('fab', 'twitter')
    a> href='https://twitter.com/splitsio' @splitsio

Stop landing from jumping around

- if current_user.nil?
  - content_for(:head) do
    sass:
      nav, .breadcrumb, #alerts, #footer
       visibility: hidden
      #carbonads-holder
        display: none
= render template: 'layouts/application'
- if current_user.nil?
  footer.fixed-bottom.text-secondary.ml-auto.mr-0 style='text-align: right'
    => icon('fas', 'envelope')
    a> href='mailto:hi@splits.io' hi@splits.io
    ' /
    => icon('fab', 'twitter')
    a> href='https://twitter.com/splitsio' @splitsio


- content_for :navbar
  .collapse.navbar-collapse#navbar-collapse
    ul.nav.navbar-nav
      li = link_to '日報作成', new_nippo_path
      li = link_to 'テンプレート編集', template_path
    ul.nav.navbar-nav.navbar-right
      li = link_to 'ログアウト', users_sign_out_path

- content_for :content
  = yield

= render template: 'layouts/application'

Add active class on menu

- content_for :navbar
  .collapse.navbar-collapse#navbar-collapse
    ul.nav.navbar-nav
      li class="#{current_page?(controller: 'nippos', action: 'new') ? 'active' : nil}"
        = link_to '日報作成', new_nippo_path
      li class="#{current_page?(controller: 'templates', action: 'show') ? 'active' : nil}"
        = link_to 'テンプレート編集', template_path
    ul.nav.navbar-nav.navbar-right
      li = link_to 'ログアウト', users_sign_out_path

- content_for :content
  = yield

= render template: 'layouts/application'


- @title = "Two-factor Authentication"

#login.panel
  h3 Two-factor authentication
  form role="form" method="post" action="/login"
    == render :slim, :"_flash", layout: false
    input type="hidden" name=Rack::Csrf.field value=Rack::Csrf.token(env)
    .form-group
      label for="code" Two-factor authentication code:
      .input-icon.icon-2fa
      input#code.form-control type="text" name="code" size="6" autocomplete="off" autofocus="true" placeholder="Two-factor code" tabindex="1"
    button.btn.btn-primary.btn-lg.btn-block type="submit" name="commit" tabindex="2" Log In

  .panel-footer
    form role="form" method="post" action="/account/two-factor/recovery/sms"
      p.help-block Don't have access to your authenticator app?
      p.help-block
        a href="/account/two-factor/recovery" Enter a recovery code
        - if @cookie.sms_number
          |  or
          input type="hidden" name=Rack::Csrf.field value=Rack::Csrf.token(env)
          button.btn.btn-link type="submit" get a code via SMS

Change 2fa "Log In" to "Verify"

- @title = "Two-factor Authentication"

#login.panel
  h3 Two-factor authentication
  form role="form" method="post" action="/login"
    == render :slim, :"_flash", layout: false
    input type="hidden" name=Rack::Csrf.field value=Rack::Csrf.token(env)
    .form-group
      label for="code" Two-factor authentication code:
      .input-icon.icon-2fa
      input#code.form-control type="text" name="code" size="6" autocomplete="off" autofocus="true" placeholder="Two-factor code" tabindex="1"
    button.btn.btn-primary.btn-lg.btn-block type="submit" name="commit" tabindex="2" Verify

  .panel-footer
    form role="form" method="post" action="/account/two-factor/recovery/sms"
      p.help-block Don't have access to your authenticator app?
      p.help-block
        a href="/account/two-factor/recovery" Enter a recovery code
        - if @cookie.sms_number
          |  or
          input type="hidden" name=Rack::Csrf.field value=Rack::Csrf.token(env)
          button.btn.btn-link type="submit" get a code via SMS


doctype html
html
  head
    meta content=("text/html; charset=utf-8") http-equiv="Content-Type"

  body
    p= t'orders_plugin.views.mailer.order_confirmation.dear_name', name: @consumer.name

    p= t'orders_plugin.views.mailer.order_confirmation.collective_made_a_purchase',
      name: @profile.name, date: day_time(@order.updated_at)

    - if @order.respond_to? :cycle
      p= t'orders_plugin.views.mailer.order_confirmation.the_delivery_period_w',
        date: datetime_period_with_from(@order.cycle.delivery_start, @order.cycle.delivery_finish)

    p= t'orders_plugin.views.mailer.order_confirmation.see_below_the_items'

    = render "orders_plugin_order/show_simple", actor_name: :consumer

    p
      |--
      br
      = t'orders_plugin.views.mailer.order_confirmation.greetings'

Correct names on purchases mail

doctype html
html
  head
    meta content=("text/html; charset=utf-8") http-equiv="Content-Type"

  body
    p= t'orders_plugin.views.mailer.order_confirmation.dear_name', name: @profile.name

    p= t'orders_plugin.views.mailer.order_confirmation.collective_made_a_purchase',
      name: @consumer.name, date: day_time(@order.updated_at)

    - if @order.respond_to? :cycle
      p= t'orders_plugin.views.mailer.order_confirmation.the_delivery_period_w',
        date: datetime_period_with_from(@order.cycle.delivery_start, @order.cycle.delivery_finish)

    p= t'orders_plugin.views.mailer.order_confirmation.see_below_the_items'

    = render "orders_plugin_order/show_simple", actor_name: :consumer

    p
      |--
      br
      = t'orders_plugin.views.mailer.order_confirmation.greetings'


footer.main-footer.main-footer-neg
  .w-container
    .w-row
      .w-col.w-col-12
        .w-row
          .w-col.w-col-3.w-col-small-3.w-col-tiny-3.w-hidden-tiny
            = render 'shared/footer_welcome'
          .w-col.w-col-3.w-col-small-3.w-col-tiny-3.footer-full-firstcolumn
            = render 'shared/footer_about'
          .w-col.w-col-2.w-col-small-2.w-col-tiny-2.w-hidden-tiny
            = render 'shared/footer_navigate'
          .w-col.w-col-2.w-col-small-2.w-col-tiny-2
            = render 'shared/footer_legal'
          .w-col.w-col-2.w-col-small-2.w-col-tiny-2.w-hidden-tiny.footer-full-lastcolumn
            = render 'shared/footer_contact'
  .w-container
    .footer-full-copyleft
      .juntos
        | Copyright 2013 Juntos.com.vc - Todos os direitos reservados
      .engage
        strong= link_to "power to the crowd", "http://www.engage.is", target: '_blank'

Use current year on footer

footer.main-footer.main-footer-neg
  .w-container
    .w-row
      .w-col.w-col-12
        .w-row
          .w-col.w-col-3.w-col-small-3.w-col-tiny-3.w-hidden-tiny
            = render 'shared/footer_welcome'
          .w-col.w-col-3.w-col-small-3.w-col-tiny-3.footer-full-firstcolumn
            = render 'shared/footer_about'
          .w-col.w-col-2.w-col-small-2.w-col-tiny-2.w-hidden-tiny
            = render 'shared/footer_navigate'
          .w-col.w-col-2.w-col-small-2.w-col-tiny-2
            = render 'shared/footer_legal'
          .w-col.w-col-2.w-col-small-2.w-col-tiny-2.w-hidden-tiny.footer-full-lastcolumn
            = render 'shared/footer_contact'
  .w-container
    .footer-full-copyleft
      .juntos
        = "Copyright #{Time.current.year} Juntos.com.vc - Todos os direitos reservados"
      .engage
        strong= link_to "power to the crowd", "http://www.engage.is", target: '_blank'


article.student-profile-page.simple-rounded-box
  .l-section
    h2 #{current_user.name}, Welcome to Quill!

  - if current_user.classroom.blank?
    .l-section.profile-classroom-form
      h3 Join my class

      = form_for current_user, url: profile_path do |f|
        = f.text_field :classcode, class: 'big-input'
        = f.submit 'Join', class: 'btn btn-primary'
        p.explanation: em Enter the name of yourclass and press create to create a class.

  - else
    .l-section
      h3 My Progress
      p Class: #{current_user.classroom.name}. Teacher: #{current_user.teacher.name}.

    .l-section
      h3 My Assignments

      .table-stripe
        = render partial: 'teachers/classrooms/chapter', collection: current_user.classroom.chapters

Change text on the student profile page.

article.student-profile-page.simple-rounded-box
  .l-section
    h2 #{current_user.name}, Welcome to Quill!

  - if current_user.classroom.blank?
    .l-section.profile-classroom-form
      h3 Join my class

      = form_for current_user, url: profile_path do |f|
        = f.text_field :classcode, class: 'big-input'
        = f.submit 'Join', class: 'btn btn-primary'
        p.explanation: em
          | Enter your class code, such as "Blue-Cow", to join your class.

  - else
    .l-section
      h3 My Progress
      p Class: #{current_user.classroom.name}. Teacher: #{current_user.teacher.name}.

    .l-section
      h3 My Assignments

      .table-stripe
        = render partial: 'teachers/classrooms/chapter', collection: current_user.classroom.chapters


h1 = ExternalUser.model_name.human(count: 2)

.table-responsive
  table.table
    thead
      tr
        th = t('activerecord.attributes.external_user.name')
        th = t('activerecord.attributes.external_user.consumer')
        th = t('shared.actions')
    tbody
      - @users.each do |user|
        tr
          td = link_to_if(policy(user).show?, user.displayname)
          td = link_to_if(policy(user.consumer).show?, user.consumer, user.consumer)
          td = link_to(t('shared.show'), user) if policy(user).show?

= render('shared/pagination', collection: @users)

Fix link for external users

h1 = ExternalUser.model_name.human(count: 2)

.table-responsive
  table.table
    thead
      tr
        th = t('activerecord.attributes.external_user.name')
        th = t('activerecord.attributes.external_user.consumer')
        th = t('shared.actions')
    tbody
      - @users.each do |user|
        tr
          td = link_to_if(policy(user).show?, user.displayname, user)
          td = link_to_if(policy(user.consumer).show?, user.consumer, user.consumer)
          td = link_to(t('shared.show'), user) if policy(user).show?

= render('shared/pagination', collection: @users)


.page-header
  h1 ="#{@event.name.titleize} Raffles"
table.table.table-striped
  thead
    th Start Time
    th End Time
    th Winner
  tbody
    - @raffles.each do |raffle|
      tr class=('success' if  is_current?(raffle))
        td
          =raffle.start_time.getlocal.strftime('%a %-m/%-d %l%p')
        td
          =raffle.end_time.getlocal.strftime('%a %-m/%-d %l%p')
        td
         -unless raffle.winner.blank?
          =raffle.winner["email"]

Add phone number for winner

.page-header
  h1 ="#{@event.name.titleize} Raffles"
table.table.table-striped
  thead
    th Start Time
    th End Time
    th Winner
  tbody
    - @raffles.each do |raffle|
      tr class=('success' if  is_current?(raffle))
        td
          =raffle.start_time.getlocal.strftime('%a %-m/%-d %l%p')
        td
          =raffle.end_time.getlocal.strftime('%a %-m/%-d %l%p')
        td
         -unless raffle.winner.blank?
          = "Email: #{raffle.winner["email"]} | Phone: #{raffle.winner["phone"]}"


footer.container-fluid.main-footer
  .col-lg-12
    p.text-center
      | Copyright © Cucumber Ltd 2014-2015
    p.text-center
      a href="tel:+442087206842" +44 20 8720 6842 (Europe)
    p.text-center
      a href="tel:+18444144961" 1-844-414-4961 (USA)
    p.text-center#js-edit
      a href=(edit_url(locals['template_path'])) Edit this page

- if ENV['RACK_ENV'] == 'production'
  == slim '_includes/google_analytics'.to_sym
== erb '_includes/optimalsort'.to_sym

Add link for Google+ verification

footer.container-fluid.main-footer
  .col-lg-12
    p.text-center
      | Copyright © Cucumber Ltd 2014-2015
    p.text-center
      a href="tel:+442087206842" +44 20 8720 6842 (Europe)
    p.text-center
      a href="tel:+18444144961" 1-844-414-4961 (USA)
    p.text-center
      Google+
    p.text-center#js-edit
      a href=(edit_url(locals['template_path'])) Edit this page

- if ENV['RACK_ENV'] == 'production'
  == slim '_includes/google_analytics'.to_sym
== erb '_includes/optimalsort'.to_sym


.reply-list.collapse.in id="#{comment.id}_reply"
  - comment.replies.each do |reply|
    .replies
      p = reply.content
      .vote
        span.date data-date="#{reply.created_at}"
        span
          |  ⋅
          a href=''
            i.fa.fa-chevron-up
          = reply.score
          a href=''
            i.fa.fa-chevron-down

Configure replies/vote btn to submit with remote link

.reply-list.collapse.in id="#{comment.id}_reply"
  - comment.replies.each do |reply|
    .replies
      p = reply.content
      .vote
        span.date data-date="#{reply.created_at}"
        span
          |  ⋅
          = link_to comment_vote_path(comment_id: reply.id, upvote: true), method: :post, remote: :true do
            i.fa.fa-chevron-up
          = reply.score
          = link_to comment_vote_path(comment_id: reply.id, upvote: false), method: :post, remote: :true do
            i.fa.fa-chevron-down


.update
  h3.title = link_to "##{update.id}", id: "#{update.id}" do
    = update.title
  .created-at = t('.created_at', time: l(update.created_at.to_date, format: :long))
  .comment = raw(update.comment_html)
  .social-share
    - url = project_updates_url(@project, anchor: update.id)
    .twitter = render_twitter text: "#{update.title} #{url}", url: url
    .facebook = render_facebook_like href: url, width: '360'
  - if can? :manage, update
    = link_to t('.destroy'), project_update_path(project_id: @project, id: update.id), confirm: t('words.confirm'), method: :delete, remote: true, class: 'destroy button secondary small'
    .deleting-update.hide = image_tag "loading.gif"

Fix facebook position share on update partial

.update
  h3.title = link_to "##{update.id}", id: "#{update.id}" do
    = update.title
  .created-at = t('.created_at', time: l(update.created_at.to_date, format: :long))
  .comment = raw(update.comment_html)
  .social-share.row
    - url = project_updates_url(@project, anchor: update.id)
    .large-6.columns.facebook= render_facebook_like href: url, width: '360'
    .large-6.columns.twitter = render_twitter text: "#{update.title} #{url}", url: url
  - if can? :manage, update
    = link_to t('.destroy'), project_update_path(project_id: @project, id: update.id), confirm: t('words.confirm'), method: :delete, remote: true, class: 'destroy button secondary small'
    .deleting-update.hide = image_tag "loading.gif"


h3
  = 'Merged data'
.row
  .col-md-12
    = form_tag Settings.ncbi_blast_api, method: :get, target: '_blank', enforce_utf8: false do
      = hidden_field_tag 'CMD', 'Web'
      = hidden_field_tag 'PAGE_TYPE', 'BlastSearch'
      = hidden_field_tag 'LINK_LOC', 'blasthome'
      = text_area_tag 'QUERY', @content, class: 'content-area', id: 'content'
      br
      br
      = submit_tag 'Open BLAST', class: 'btn btn-primary'
hr
= link_to 'Back', fasta_data_path

Change HTTP method to "PUT" for BLAST page

h3
  = 'Merged data'
.row
  .col-md-12
    = form_tag Settings.ncbi_blast_api, method: :put, target: '_blank', enforce_utf8: false do
      = hidden_field_tag 'CMD', 'Web'
      = hidden_field_tag 'PAGE_TYPE', 'BlastSearch'
      = hidden_field_tag 'LINK_LOC', 'blasthome'
      = text_area_tag 'QUERY', @content, class: 'content-area', id: 'content'
      br
      br
      = submit_tag 'Open BLAST', class: 'btn btn-primary'
hr
= link_to 'Back', fasta_data_path


- 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


.card.card-body.bg-light.flex-row.container.justify-content-center
  = search_form_for(@search, class: 'clearfix filter-form align-items-center row g-2 w-100') do |f|
    = yield(f)
    .col-sm.ge-4.gy-2
      .btn-group.float-end.ms-auto.text-nowrap
        button.btn.btn-primary type='submit' = t('shared.apply_filters')
        button.btn.btn-primary.dropdown-toggle data-bs-toggle='dropdown' type='button'
        ul.dropdown-menu role='menu'
          li
            a.dropdown-item href=request.path = t('shared.reset_filters')

Align dropdown menu for filters to the left hand side

.card.card-body.bg-light.flex-row.container.justify-content-center
  = search_form_for(@search, class: 'clearfix filter-form align-items-center row g-2 w-100') do |f|
    = yield(f)
    .col-sm.ge-4.gy-2
      .btn-group.float-end.ms-auto.text-nowrap
        button.btn.btn-primary type='submit' = t('shared.apply_filters')
        button.btn.btn-primary.dropdown-toggle data-bs-toggle='dropdown' type='button'
        ul.dropdown-menu.dropdown-menu-end role='menu'
          li
            a.dropdown-item href=request.path = t('shared.reset_filters')


doctype html

html
  head
    meta charset="utf-8"
    title
      = content_for?(:title) ? "#{yield(:title)} | Fauna" : 'Fauna'

    meta name="viewport" content="width=device-width, initial-scale=1"

    meta name="theme-color" content="#2196f3"
    meta name="msapplication-navbutton-color" content="#2196f3"

    = render partial: 'layouts/icons'

    = stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true
    = javascript_include_tag 'application', 'data-turbolinks-track' => true
    = csrf_meta_tags

    link rel="manifest" href="manifest.json"
  body
    = render partial: 'layouts/navigation'
    = render partial: 'layouts/flash'
    main
      == yield
    = render partial: 'layouts/footer'

Add locale to the HTML tag

doctype html

html lang="#{I18n.locale}"
  head
    meta charset="utf-8"
    title
      = content_for?(:title) ? "#{yield(:title)} | Fauna" : 'Fauna'

    meta name="viewport" content="width=device-width, initial-scale=1"

    meta name="theme-color" content="#2196f3"
    meta name="msapplication-navbutton-color" content="#2196f3"

    = render partial: 'layouts/icons'

    = stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true
    = javascript_include_tag 'application', 'data-turbolinks-track' => true
    = csrf_meta_tags

    link rel="manifest" href="manifest.json"
  body
    = render partial: 'layouts/navigation'
    = render partial: 'layouts/flash'
    main
      == yield
    = render partial: 'layouts/footer'


= f.simple_fields_for attribute, f.object.send(attribute) do |fd|
  = fd.input :value, label: f.object.class.human_attribute_name(attribute)

Make blood group input smaller

= f.simple_fields_for attribute, f.object.send(attribute) do |fd|
  = fd.input :value, label: f.object.class.human_attribute_name(attribute),
    input_html: { class: "small-input" }


.row
  .eight.columns
    .upload-file
      h2 Upload File
      p
        ' Bulk upload of articles with a file that contains any combination of DOIs and PMIDs for PLOS articles, one per line. The application will retrieve the top entries until the maximum of 500 is reached.
        a href="/sample_upload_file.csv" Sample File
      = form_tag("/upload", :method => "post", :class => "upload-file-form", :multipart => true) do
        - if !@file_absent.nil? && @file_absent
          .error-holder
            = label_tag(:"upload-file-field", "File path", :class => "hidden")
            = file_field_tag(:"upload-file-field")
            p.error-message error-color Please choose a file to upload.
        - else
          = label_tag(:"upload-file-field", "File path", :class => "hidden")
          = file_field_tag(:"upload-file-field")
        p= submit_tag "Upload File"
  .four.columns
    = render "right_nav", :current_page => :upload

Fix small styling error for file upload error display.

.row
  .eight.columns
    .upload-file
      h2 Upload File
      p
        ' Bulk upload of articles with a file that contains any combination of DOIs and PMIDs for PLOS articles, one per line. The application will retrieve the top entries until the maximum of 500 is reached.
        a href="/sample_upload_file.csv" Sample File
      = form_tag("/upload", :method => "post", :class => "upload-file-form", :multipart => true) do
        - if !@file_absent.nil? && @file_absent
          .error-holder
            = label_tag(:"upload-file-field", "File path", :class => "hidden")
            = file_field_tag(:"upload-file-field")
            p.error-message.error-color Please choose a file to upload.
        - else
          = label_tag(:"upload-file-field", "File path", :class => "hidden")
          = file_field_tag(:"upload-file-field")
        p= submit_tag "Upload File"
  .four.columns
    = render "right_nav", :current_page => :upload


.navbar
  .navbar-inner
    .container
      .row
        .span7
          = link_to image_tag('logo_03.png'), root_path
        .span5
          ul.nav
            li= link_to 'Home', 'http://www.crowdint.com'
            li= link_to 'Projects', 'http://www.crowdint.com/projects'
            li= link_to 'Services', 'http://www.crowdint.com/services'
            li.active= link_to 'Blog', root_path
            li= link_to 'About', 'http://www.crowdint.com/about_us'

Change the header links for the new Crowd site

.navbar
  .navbar-inner
    .container
      .row
        .span6
          = link_to image_tag('logo_03.png'), root_path
        .span6
          ul.nav
            li= link_to 'Who', 'http://www.crowdint.com#who'
            li= link_to 'How', 'http://www.crowdint.com#how'
            li= link_to 'What', 'http://www.crowdint.com#what'
            li= link_to 'The Crowd', 'http://www.crowdint.com#the_crowd'
            li.active= link_to 'Blog', root_path
            li= link_to 'Contact Us', 'http://www.crowdint.com#contact'


doctype html
html lang="en"
  head
    meta charset="utf-8"

    meta name="viewport" content="width=device-width, initial-scale=1.0"

    title= page_title

    = stylesheet_link_tag "application", media: :all
    = javascript_include_tag "vendor/modernizr"
    = csrf_meta_tag

  body(class="#{yield(:body_class)}")
    #modals-wrapper
    .page
      .sticky-top
          = render "renalware/navigation/main"
          = yield(:header)
      = render "renalware/shared/flash_messages"

      main
        .main-content
          = yield

      - unless user_signed_in?
        = render "renalware/navigation/footer"
    = javascript_include_tag "application"

Load js asynchonrously in stagig and production

doctype html
html lang="en"
  head
    meta charset="utf-8"

    meta name="viewport" content="width=device-width, initial-scale=1.0"

    title= page_title

    = stylesheet_link_tag "application", media: :all
    = javascript_include_tag "vendor/modernizr"
    = csrf_meta_tag

  body(class="#{yield(:body_class)}")
    #modals-wrapper
    .page
      .sticky-top
          = render "renalware/navigation/main"
          = yield(:header)
      = render "renalware/shared/flash_messages"

      main
        .main-content
          = yield

      - unless user_signed_in?
        = render "renalware/navigation/footer"
    - load_js_asynchonously = (Rails.env.staging? || Rails.env.production?)
    = javascript_include_tag "application", async: load_js_asynchonously


- f.inputs t('activerecord.models.slide.other')
  - f.has_many :slides, heading: false, sortable: :position do |item|
    = item.inputs 'Image du slider' do
      - item.input :image,
                   as: :file,
                   label: I18n.t('form.label.slide'),
                   hint: "#{retina_image_tag(item.object, :image, :small)} <br/> #{I18n.t('form.hint.slide.size')}".html_safe

      - item.input :online,
                   as: :boolean,
                   hint: I18n.t('form.hint.slide.online')

      - if item.object.self_image?
        - item.input :_destroy,
                     as: :boolean,
                     hint: I18n.t('form.hint.slide.destroy')

    = item.inputs 'Titre et description de la Slide' do
      - item.translated_inputs 'Translated fields', switch_locale: true do |t|
        - t.input :title,
                  label: I18n.t('activerecord.attributes.slide.title'),
                  hint: I18n.t('form.hint.slide.title')

        - t.input :description,
                  label: I18n.t('activerecord.attributes.slide.description'),
                  hint: I18n.t('form.hint.slide.description')

Reduce height for slide textarea

- f.inputs t('activerecord.models.slide.other')
  - f.has_many :slides, heading: false, sortable: :position do |item|
    = item.inputs 'Image du slider' do
      - item.input :image,
                   as: :file,
                   label: I18n.t('form.label.slide'),
                   hint: "#{retina_image_tag(item.object, :image, :small)} <br/> #{I18n.t('form.hint.slide.size')}".html_safe

      - item.input :online,
                   as: :boolean,
                   hint: I18n.t('form.hint.slide.online')

      - if item.object.self_image?
        - item.input :_destroy,
                     as: :boolean,
                     hint: I18n.t('form.hint.slide.destroy')

    = item.inputs 'Titre et description de la Slide' do
      - item.translated_inputs 'Translated fields', switch_locale: true do |t|
        - t.input :title,
                  label: I18n.t('activerecord.attributes.slide.title'),
                  hint: I18n.t('form.hint.slide.title')

        - t.input :description,
                  label: I18n.t('activerecord.attributes.slide.description'),
                  hint: I18n.t('form.hint.slide.description'),
                  input_html: { class: 'small-height' }


= content_tag_for(:tr, f.object, class: 'nested-fields') do
  td = f.input :correct, label: false
  td = f.input :option, label: false, input_html: { class: ['multiple-response-option'] }
  td = f.input :explanation, label: false, placeholder: t('.explanation_hint'),
    input_html: { class: ['multiple-response-explanation'] }
  td = link_to_remove_association t('.remove'), f

Set option input to airmode for MCQ/MRQ

= content_tag_for(:tr, f.object, class: 'nested-fields') do
  td = f.input :correct, label: false
  td = f.input :option, label: false, input_html: { class: ['multiple-response-option', 'airmode'] }
  td = f.input :explanation, label: false, placeholder: t('.explanation_hint'),
    input_html: { class: ['multiple-response-explanation', 'airmode'] }
  td = link_to_remove_association t('.remove'), f


| ##
= @changelog.github_created_at.strftime("%Y.%m.%d")
|  ##

p

| _Версия_
= @changelog.title
| _

- @changelog.story_points.each do |story_point|
  p

  | 1.
  - if story_point.story_point_type.present?
    | [
    = story_point.story_point_type
    | ]
  - if story_point.story_point_size.present?
    | [
    = story_point.story_point_size
    | ]
  - if story_point.story_point_from.present?
    | [
    = story_point.story_point_from
    | ]

  |

  = story_point.title

Add some changes to changelog raw view

| ##
= @changelog.github_created_at.strftime("%d.%m.%Y")
|  ##

p

| _Версия
= @changelog.title
| _

- @changelog.story_points.each do |story_point|
  p

  | 1.
  - if story_point.story_point_type.present?
    | [
    = story_point.story_point_type
    | ]
  - if story_point.story_point_size.present?
    | [
    = story_point.story_point_size
    | ]
  - if story_point.story_point_from.present?
    | [
    = story_point.story_point_from
    | ]

  |

  = story_point.title


- content_for :header do
  meta property="og:title" content=@post.to_title
  meta property="og:type" content="article"
  meta property="og:image" content=@post.user.try(:external_image_url)
  meta property="og:url" content=url_for(@post)

= render @post

- if @post.replies.any?
  section.post-replies
    h2 Replies
    = render @post.replies.order('published_at DESC'), hide_reply_references: true

Fix og:url to use fully qualified URLs. Duh.

- content_for :header do
  meta property="og:title" content=@post.to_title
  meta property="og:type" content="article"
  meta property="og:image" content=@post.user.try(:external_image_url)
  meta property="og:url" content=post_url(@post)

= render @post

- if @post.replies.any?
  section.post-replies
    h2 Replies
    = render @post.replies.order('published_at DESC'), hide_reply_references: true


header.entry-header
  h1 = link_to article.title, article

  .entry-info
    span.posted-on
      i.fa.fa-calendar
      = article.date.strftime('%F %R')

    span.tags-list
      i.fa.fa-tags
      = article.tags.sort.map { |tag| link_to tag, tag_path(tag) }.join ', '

Hide tag icon when tag is not set

header.entry-header
  h1 = link_to article.title, article

  .entry-info
    span.posted-on
      i.fa.fa-calendar
      = article.date.strftime('%F %R')

    - if not article.tags.empty?
      span.tags-list
        i.fa.fa-tags
        = article.tags.sort.map { |tag| link_to tag, tag_path(tag) }.join ', '


.home-page
  / for SEO
  h1 style="display:none" brother.ly

  section.home-page__slideshow
    - @current_episodes.each do |episode|
      .slideshow__slide.slideshow__slide--current data-youtube="#{episode.youtube_id}"
        h2= link_to "Now Playing: #{episode.title}", episode
        .hero-wrapper
          iframe#stream src="#{episode.stream_url}?rel=0&autoplay=1&&showinfo=0&controls=0" frameborder="0" allowfullscreen="true"
    - @upcoming_episodes.each do |episode|
      .slideshow__slide.slideshow__slide--upcoming
        h2= link_to "Up Next: #{episode.title}", episode
        = image_tag episode.poster_url
    - @past_performances.each do |performance|
      .slideshow__slide.slideshow__slide--upcoming
        h2= link_to "Watch It Again: #{performance.title}", performance.episode
        = render 'video', src: performance.video_url, poster: performance.poster_url, name: performance.name.parameterize
    .slideshow__slide.slideshow_slide--workshop
      = image_tag 'workshop.png'
      h2= link_to 'Every Month: The brother.ly Electronic Music Workshop', '/workshop'

  section.home-page__features
    h2 Featured
    - @features.each do |feature|
      = render present(feature)

Remove featured section on homepage when no featured content is available

.home-page
  / for SEO
  h1 style="display:none" brother.ly

  section.home-page__slideshow
    - @current_episodes.each do |episode|
      .slideshow__slide.slideshow__slide--current data-youtube="#{episode.youtube_id}"
        h2= link_to "Now Playing: #{episode.title}", episode
        .hero-wrapper
          iframe#stream src="#{episode.stream_url}?rel=0&autoplay=1&&showinfo=0&controls=0" frameborder="0" allowfullscreen="true"
    - @upcoming_episodes.each do |episode|
      .slideshow__slide.slideshow__slide--upcoming
        h2= link_to "Up Next: #{episode.title}", episode
        = image_tag episode.poster_url
    - @past_performances.each do |performance|
      .slideshow__slide.slideshow__slide--upcoming
        h2= link_to "Watch It Again: #{performance.title}", performance.episode
        = render 'video', src: performance.video_url, poster: performance.poster_url, name: performance.name.parameterize
    .slideshow__slide.slideshow_slide--workshop
      = image_tag 'workshop.png'
      h2= link_to 'Every Month: The brother.ly Electronic Music Workshop', '/workshop'

  - if @features.any?
    section.home-page__features
      h2 Featured
      - @features.each do |feature|
        = render present(feature)


- @title = "Reset Password"
- @bodyid = "reset_password"

== render :slim, :"_flash", layout: false
#reset_password.panel
  h3 Reset Password
  form role="form" method="post"
    p.overview Resetting password for <strong>#{@user["email"]}</strong>.
    input type="hidden" name=Rack::Csrf.field value=Rack::Csrf.token(env)
    .form-group
      label for="password" New password
      .input-icon
        span
          span.glyphicon.glyphicon-lock
      input#email.form-control type="password" name="password" tabindex="1" autofocus="true" placeholder="New password"
    .form-group
      label for="password" Confirm new password
      .input-icon
        span
          span.glyphicon.glyphicon-lock
      input#email.form-control type="password" name="password_confirmation" tabindex="2" placeholder="Confirm new password"

    button.btn.btn-primary.btn-lg.btn-block type="submit" tabindex="3" Save Password

Move flash messages inside the dialog box in Set Password page

- @title = "Reset Password"
- @bodyid = "reset_password"

#reset_password.panel
  h3 Reset Password
  form role="form" method="post"
    == render :slim, :"_flash", layout: false

    p.overview Resetting password for <strong>#{@user["email"]}</strong>.
    input type="hidden" name=Rack::Csrf.field value=Rack::Csrf.token(env)
    .form-group
      label for="password" New password
      .input-icon
        span
          span.glyphicon.glyphicon-lock
      input#email.form-control type="password" name="password" tabindex="1" autofocus="true" placeholder="New password"
    .form-group
      label for="password" Confirm new password
      .input-icon
        span
          span.glyphicon.glyphicon-lock
      input#email.form-control type="password" name="password_confirmation" tabindex="2" placeholder="Confirm new password"

    button.btn.btn-primary.btn-lg.btn-block type="submit" tabindex="3" Save Password


---
title: Example One
date: 2013-03-01 12:00 EST
tags: example-tag
---
p= lorem.paragraph
|READMORE
p= lorem.paragraph
p= lorem.paragraph

Change example1 tag to more exotic content

---
title: Example One
date: 2013-03-01 12:00 EST
tags: Example Tag
---
p= lorem.paragraph
|READMORE
p= lorem.paragraph
p= lorem.paragraph


- step_letters = ["A", "B", "C", "D", "E"]

header.page-header.group.page-header-wider
  div
    h1
      = form.title

    .steps-progress-bar
      ol
        li.js-step-condition.step-past
          span
            = link_to form_award_eligibility_url(form_id: @form_answer.id) do
              span.step-number
                ' Eligibility
        - for step in form.steps do
          li.js-step-link.js-step-condition data-step="step-#{step.title.parameterize}" class=('step-current' if step == form.steps.first)
            span
              span.step-number
                ' #{step_letters[step.index-1]}.
              = step.short_title.html_safe

    - for step in form.steps do
      h2.step-header.js-step-condition data-step="step-#{step.title.parameterize}"
        ' Step
        = step.index
        '  of
        = form.steps.length
        ' :
        = step.title

Fix initial visibility of award form page title

- step_letters = ["A", "B", "C", "D", "E"]

header.page-header.group.page-header-wider
  div
    h1
      = form.title

    .steps-progress-bar
      ol
        li.js-step-condition.step-past
          span
            = link_to form_award_eligibility_url(form_id: @form_answer.id) do
              span.step-number
                ' Eligibility
        - for step in form.steps do
          li.js-step-link.js-step-condition data-step="step-#{step.title.parameterize}" class=('step-current' if step == form.steps.first)
            span
              span.step-number
                ' #{step_letters[step.index-1]}.
              = step.short_title.html_safe

    - for step in form.steps do
      h2.step-header.js-step-condition data-step="step-#{step.title.parameterize}" class=('step-current' if step == form.steps.first)
        ' Step
        = step.index
        '  of
        = form.steps.length
        ' :
        = step.title


h3 「種類」について
p
  | この項目は同姓同名の2人のキャラがいたときの判別用に用意しています。
  | そのため、この項目にはその作品のキャラだとわかる情報を入力して下さい。
  | 特にこだわりがなければ、作品名を入力してもらえればと思います。

hr

h3 「誕生日」「年齢」などの自由入力欄の入力形式について
p
  | 誕生日や年齢などは作品によって色々な表現がありそうなので、自由入力形式にしています。
  | 入力形式は公式サイトやWikipediaなどを参考にして頂ければと思います。
  | 英語の入力形式はMyAnimeListなどを参考にして下さい。
  | Annict側には特に明確な制限はありません。

hr

h3 「キャラ紹介」と「キャラ紹介の引用元」について
p
  | キャラ紹介を登録するときは引用元の登録もお願いしています。
  | 引用元は以下のような内容になります。

ul
  li 公式サイトから参照したとき: 公式サイト『(サイト名)』
  li Wikipediaから参照したとき: Wikipedia『(ページ名)』
  li 書籍から参照したとき: 書籍『(書籍名)』


---
title: 404
description: Page 404 du site de Labo3G
keywords: labo3G, galerie, art, lille, 404
changefreq: "monthly"
priority: "0.4"
---

header id="header-small" class="quatrecentquatre"
	a href="/"
		img src="assets/images/logo-black.svg" alt="#{data.settings.site.title} - logo"
	h1 Oups ! Il n'y a rien, ici...

Add a "back to home" button to 404 page

---
title: 404
description: Page 404 du site de Labo3G
keywords: labo3G, galerie, art, lille, 404
changefreq: "monthly"
priority: "0.4"
---

header id="header-small" class="quatrecentquatre"
	a href="/"
		img src="assets/images/logo-black.svg" alt="#{data.settings.site.title} - logo"
	h1 Oups ! Il n'y a rien, ici...
	= link_to "Retour au site", "http://www.labo3g.fr", class:"button primary", style:"margin-top:60px;"


doctype html
html lang="en"

  head
    title Explore with FirstGlance
    meta charset="utf-8" /
    meta content="width=device-width, initial-scale=1" name="viewport" /
    link href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet" /
    script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"
    script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"
  body
    section
      == styled_flash
      == yield

Fix CDN links to get it work on Heroku

doctype html
html lang="en"

  head
    title Explore with FirstGlance
    meta charset="utf-8" /
    meta content="width=device-width, initial-scale=1" name="viewport" /
    link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet" /
    script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"
    script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"
  body
    section
      == styled_flash
      == yield


section.top-bar-section
  = render partial: "renalware/navigation/patient_search"

  ul.right.large-2.columns
    li.divider
    = render partial: "renalware/navigation/renal"
    = render partial: "renalware/navigation/patients_admin"
    = render partial: "renalware/navigation/directory"
    - if current_user_is_admin?
      = render partial: "renalware/navigation/renalware_admin"
    li.divider
    = render partial: "renalware/navigation/dashboard"
    = render partial: "renalware/navigation/user_admin"
    = render partial: "renalware/navigation/sign_out"
    li.divider
    = render partial: "renalware/navigation/help_items"

Move dashboard & user nav links to centre

section.top-bar-section
  = render partial: "renalware/navigation/patient_search"

  ul.right.large-2.columns
    = render partial: "renalware/navigation/dashboard"
    = render partial: "renalware/navigation/user_admin"
    li.divider
    = render partial: "renalware/navigation/renal"
    = render partial: "renalware/navigation/patients_admin"
    = render partial: "renalware/navigation/directory"
    - if current_user_is_admin?
      = render partial: "renalware/navigation/renalware_admin"
    li.divider
    = render partial: "renalware/navigation/sign_out"
    li.divider
    = render partial: "renalware/navigation/help_items"


#index_map.row.reversed
  - if current_user.internal?
    section.index-map
      = map Canteen.all.to_a, hash: true
  - else
    .span4
      = render partial: 'common/favorites', locals: { user: current_user }

    .span8
      section
        .index-map
          / form.search
          /   input#query
          = map Canteen.all

Fix map URL hash storage for logged in users.

#index_map.row.reversed
  - if current_user.internal?
    section.index-map
      = map Canteen.all.to_a, hash: true
  - else
    .span4
      = render partial: 'common/favorites', locals: { user: current_user }

    .span8
      section
        .index-map
          / form.search
          /   input#query
          = map Canteen.all, hash: true


nav.actions
  ul
    li = link_to icon('plus', 'New Team'), new_team_path, class: 'btn btn-default btn-sm' if can? :create, Team.new

h1.header
  = icon('group')
  span Teams

- if admin?
  p.organizers = link_to 'Teams organizers info →'.html_safe, teams_info_path

table.table.table-striped.table-bordered.table-condensed
  tr
    th Name
    - @display_roles.each do |role|
      th = role.capitalize
    th Conferences
    th Location
    th Last checked
    th = sortable 'created_at', 'Last Activity'

  - @teams.each do |team|
    tr
      td = link_to team.display_name, team, class: "team #{team.kind}"
      - @display_roles.each do |role|
        td
          ul
            - team.send(role).each do |user|
              li.user
                = avatar_url(user, size: 20)
                = link_to(user.name_or_handle, user)
      td = links_to_conferences(team.members.map(&:conferences).flatten.uniq).join(', ').html_safe
      td = team.students_location
      td = format_date(team.last_checked_at)
      td = format_date(team.last_activity.try(:created_at))

p.hint
  | <i class="icon-star"></i> Sponsored team

Add direct link to current student's team

nav.actions
  ul.list-inline
    li = link_to 'My Team', current_student.current_team, class: 'btn btn-primary btn-sm' if current_student.current_team
    li = link_to icon('plus', 'New Team'), new_team_path, class: 'btn btn-default btn-sm' if can? :create, Team.new

h1.header
  = icon('group')
  span Teams

- if admin?
  p.organizers = link_to 'Teams organizers info →'.html_safe, teams_info_path

table.table.table-striped.table-bordered.table-condensed
  tr
    th Name
    - @display_roles.each do |role|
      th = role.capitalize
    th Conferences
    th Location
    th Last checked
    th = sortable 'created_at', 'Last Activity'

  - @teams.each do |team|
    tr
      td = link_to team.display_name, team, class: "team #{team.kind}"
      - @display_roles.each do |role|
        td
          ul
            - team.send(role).each do |user|
              li.user
                = avatar_url(user, size: 20)
                = link_to(user.name_or_handle, user)
      td = links_to_conferences(team.members.map(&:conferences).flatten.uniq).join(', ').html_safe
      td = team.students_location
      td = format_date(team.last_checked_at)
      td = format_date(team.last_activity.try(:created_at))

p.hint
  | <i class="icon-star"></i> Sponsored team


nav class="top-bar" data-topbar='' role="navigation" aria-label='navigation' itemscope='' itemtype='http://schema.org/SiteNavigationElement' data-options="mobile_show_parent_link:true; custom_back_text"
  ul.title-area
    li.name: h1 = link_to @setting.title, root_path
    li.toggle-topbar.menu-icon
      a href="#"
        span Menu

  section.top-bar-section
    ul.right
      / - if @search_module.enabled?
      /   li.has-form
      /     = render 'searches/form'

      - if I18n.available_locales.length > 1
        li = render 'elements/language'

    ul.left
      - @menu_elements_header.each do |element|
        li class="#{set_active_class(element.category_name.tableize)} #{element.has_children? ? 'has-dropdown' : ''}"
          = link_to element.title, element.decorate.menu_link(element.category.name), class: 'l-nav-item-link', itemprop: 'url'
          - if element.has_children?
            ul.dropdown
              - element.children.online.with_page.each do |child|
                li class="#{set_active_class(child.category_name.tableize)}"
                  = link_to child.title, child.decorate.menu_link(child.category_name)

Hide languages switch for reply comment page

nav class="top-bar" data-topbar='' role="navigation" aria-label='navigation' itemscope='' itemtype='http://schema.org/SiteNavigationElement' data-options="mobile_show_parent_link:true; custom_back_text"
  ul.title-area
    li.name: h1 = link_to @setting.title, root_path
    li.toggle-topbar.menu-icon
      a href="#"
        span Menu

  section.top-bar-section
    ul.right
      / - if @search_module.enabled?
      /   li.has-form
      /     = render 'searches/form'

      - if I18n.available_locales.length > 1 && params[:action] != 'reply'
        li = render 'elements/language'

    ul.left
      - @menu_elements_header.each do |element|
        li class="#{set_active_class(element.category_name.tableize)} #{element.has_children? ? 'has-dropdown' : ''}"
          = link_to element.title, element.decorate.menu_link(element.category.name), class: 'l-nav-item-link', itemprop: 'url'
          - if element.has_children?
            ul.dropdown
              - element.children.online.with_page.each do |child|
                li class="#{set_active_class(child.category_name.tableize)}"
                  = link_to child.title, child.decorate.menu_link(child.category_name)


doctype html
html
  head
    title = title
    = stylesheet_link_tag :application
    = tag :link, href: feedburner_url, rel: :alternate, title: site_name, type: 'application/atom+xml'
    = tag :meta, name: :viewport, content: 'width=device-width'
  body
    .wrapper
      header
        = link_to "/" do
          h1 = site_name
        h2#byline by #{link_to author_name, author_url}
      = yield

      footer
        | Thanks for reading!
        = link_to author_url do
          .signature -Justin

Add github link to footer

doctype html
html
  head
    title = title
    = stylesheet_link_tag :application
    = tag :link, href: feedburner_url, rel: :alternate, title: site_name, type: 'application/atom+xml'
    = tag :meta, name: :viewport, content: 'width=device-width'
  body
    .wrapper
      header
        = link_to "/" do
          h1 = site_name
        h2#byline by #{link_to author_name, author_url}
      = yield

      footer
        | Thanks for reading!
        = link_to author_url do
          .signature -Justin

        p
          small = link_to "View source on GitHub", github_url


li id="notification-#{notification.id}"
  span.date-time-text
    - if !notification.sent?
      ' Scheduled to be sent on
    - else
      ' Already sent on

    span.trigger-at
      = notification.formatted_trigger_time
  span.actions
    = link_to "Edit", "#", class: "edit-notification if-no-js-hide"

    - if policy(notification).destroy?
      span.if-no-js-hide
        '  |
      = button_to "Delete", admin_settings_email_notification_path(notification), { onclick: "return confirm('Are you sure?')", method: :delete, remote: true }
  .notification-edit-form.well
    = simple_form_for notification, url: admin_settings_email_notification_path(notification, year: params[:year]), remote: true, authenticity_token: true do |f|
      .control-date
        label.control-label Edit schedule
        = f.input :trigger_at,
                  as: :separated_date_time,
                  input_html: { id: '' }
      .control-action
        = link_to "Cancel", "#", class: "btn btn-default btn-cancel if-no-js-hide"
        = f.submit "Save", class: "btn btn-primary btn-submit"
      .clear

Hide settings email date's edit and delete links when email sent

li id="notification-#{notification.id}"
  span.date-time-text
    - if !notification.sent?
      ' Scheduled to be sent on
    - else
      ' Already sent on

    span.trigger-at
      = notification.formatted_trigger_time
  - if !notification.sent?
    span.actions
      = link_to "Edit", "#", class: "edit-notification if-no-js-hide"

      - if policy(notification).destroy?
        span.if-no-js-hide
          '  |
        = button_to "Delete", admin_settings_email_notification_path(notification), { onclick: "return confirm('Are you sure?')", method: :delete, remote: true }
    .notification-edit-form.well
      = simple_form_for notification, url: admin_settings_email_notification_path(notification, year: params[:year]), remote: true, authenticity_token: true do |f|
        .control-date
          label.control-label Edit schedule
          = f.input :trigger_at,
                    as: :separated_date_time,
                    input_html: { id: '' }
        .control-action
          = link_to "Cancel", "#", class: "btn btn-default btn-cancel if-no-js-hide"
          = f.submit "Save", class: "btn btn-primary btn-submit"
        .clear


= render partial: 'page', locals: { title: "#{t('.title.channel')}: #{@profile.name}", content_html: @profile.how_it_works_html, title_html: t('.title.channel', channel_link:link_to(@profile.name, root_path, class: 'standard-link')) }
.w-container
  .w-row.u-marginbottom-40
    .w-col.w-col-4.w-col-push-4= link_to "Enviar projeto", new_project_path, class: 'btn btn-large'

Change 'how it works' button link of GARUPA channel

= render partial: 'page', locals: { title: "#{t('.title.channel')}: #{@profile.name}", content_html: @profile.how_it_works_html, title_html: t('.title.channel', channel_link:link_to(@profile.name, root_path, class: 'standard-link')) }
.w-container
  .w-row.u-marginbottom-40
    - target_path =  new_project_path
    - if @profile.permalink == 'garupa'
      target_path = 'http://garupa.org.br/envie-sua-ideia/'
    .w-col.w-col-4.w-col-push-4= link_to 'Enviar projeto', target_path, class: 'btn btn-large'


- model_class = Graph

div class="tree"
  == tree @root

table class="table table-striped"
  thead
    tr
      th= model_class.human_attribute_name(:id)
      th= model_class.human_attribute_name(:path)
      th= model_class.human_attribute_name(:created_at)
      th=t '.actions', :default => t("helpers.actions")
  tbody
    - @graphs.each do |graph|
      tr
        td= link_to graph.id, graph_path(graph)
        td= link_to graph.path, view_graph_path(graph.path)
        td=l graph.created_at
        td
          = link_to t('.edit', :default => t("helpers.links.edit")), edit_graph_path(graph), :class => 'btn btn-mini'
          '
          = link_to t('.destroy', :default => t("helpers.links.destroy")), graph_path(graph), :method => :delete, :data => { :confirm => t('.confirm', :default => t("helpers.links.confirm", :default => 'Are you sure?')) }, :class => 'btn btn-mini btn-danger'

= link_to t('.new', :default => t("helpers.links.new")), new_graph_path, :class => 'btn btn-primary'

Put small two pair graphs on list_graph

- model_class = Graph

div class="tree"
  == tree @root

table class="table table-striped"
  thead
    tr
      th= model_class.human_attribute_name(:id)
      th= model_class.human_attribute_name(:path)
      th= model_class.human_attribute_name(:created_at)
      th=t '.actions', :default => t("helpers.actions")
  tbody
    - @graphs.each do |graph|
      tr
        td= link_to graph.id, graph_path(graph)
        td= link_to graph.path, view_graph_path(graph.path)
        td=l graph.created_at
        td
          = link_to t('.edit', :default => t("helpers.links.edit")), edit_graph_path(graph), :class => 'btn btn-mini'
          '
          = link_to t('.destroy', :default => t("helpers.links.destroy")), graph_path(graph), :method => :delete, :data => { :confirm => t('.confirm', :default => t("helpers.links.confirm", :default => 'Are you sure?')) }, :class => 'btn btn-mini btn-danger'

= link_to t('.new', :default => t("helpers.links.new")), new_graph_path, :class => 'btn btn-primary'

- @graphs.each do |graph|
  h3 #{link_to File.basename(graph.path), view_graph_path(graph.path)}
  .row-fluid
    .span6
      a href="#{view_graph_path(graph.path)}"
        img src="#{$mfclient.get_graph_uri(graph.path, 'h')}"
    .span6
      a href="#{view_graph_path(graph.path)}"
        img src="#{$mfclient.get_graph_uri(graph.path, 'n')}"


.main
  .container
    .row
      .col-md-6.col-md-offset-3
        .panel
          .panel-heading
            h3.panel-title
              = t '.sign_in'
          .panel-body
            = form_tag login_path
              = render 'share/flash_messages'
              .form-group
                = label_tag t('.login')
                = text_field_tag 'user[login]', params[:login], placeholder: t('.username_or_email'), tabindex: 1, class: 'form-control'
              .form-group
                = label_tag t('.password')
                = password_field_tag 'user[password]', nil, placeholder: t('.password'), tabindex: 2, class: 'form-control'
              = submit_tag t('.sign_in'), class: 'btn btn-success', tabindex: 5
            hr
            a href=new_users_password_path
              = t '.forgot_password'

Add login input autofocus style

.main
  .container
    .row
      .col-md-6.col-md-offset-3
        .panel
          .panel-heading
            h3.panel-title
              = t '.sign_in'
          .panel-body
            - login = params[:user].try(:[], :login)
            = form_tag login_path
              = render 'share/flash_messages'
              .form-group
                = label_tag t('.login')
                = text_field_tag 'user[login]', login, placeholder: t('.username_or_email'), tabindex: 1, class: 'form-control', autofocus: login.blank?
              .form-group
                = label_tag t('.password')
                = password_field_tag 'user[password]', nil, placeholder: t('.password'), tabindex: 2, class: 'form-control', autofocus: login.present?
              = submit_tag t('.sign_in'), class: 'btn btn-success', tabindex: 5
            hr
            a href=new_users_password_path
              = t '.forgot_password'


.article-related-positioning-container.smart-answer-questions.group
  header.page-header.group
    div
      h1
        ' Award eligibility questionnaire

  .article-container
    article.group role="article"
      .inner.step.current
        = simple_form_for @eligibility, as: :eligibility, url: wizard_path, method: :put do |f|
          .current-question#current-question
            .question
              h2
                = @eligibility.class.label(step)

              = render "award_eligibilities/questions/#{step.to_s}", f: f rescue render "award_eligibilities/questions/question", f: f, question: step.to_s

            .next-question
              = f.submit "Next step", class: "button medium"

      = render "previous_answers"

COPY Award eligibility questionnaire -> Eligibility questionnaire

.article-related-positioning-container.smart-answer-questions.group
  header.page-header.group
    div
      h1
        ' Eligibility questionnaire

  .article-container
    article.group role="article"
      .inner.step.current
        = simple_form_for @eligibility, as: :eligibility, url: wizard_path, method: :put do |f|
          .current-question#current-question
            .question
              h2
                = @eligibility.class.label(step)

              = render "award_eligibilities/questions/#{step.to_s}", f: f rescue render "award_eligibilities/questions/question", f: f, question: step.to_s

            .next-question
              = f.submit "Next step", class: "button medium"

      = render "previous_answers"


div class="card-deck"
  div class="card"
    div class="card-block"
      = link to: project_path(@conn, :new), class: "card-new-project-link" do
        i class="fa fa-plus-circle fa-2x"
        span New project

  = for project <- @projects do
    div class="card"
      div class="card-block"
        h5 class="card-title"
          = link project.name, to: project_path(@conn, :show, project)

        small class="card-text text-muted"
          = icon_tag("list")
          = " "
          = Todo.count_project_todo_items(project)

Add list of todo lists on project index page

div class="card-deck"
  div class="card"
    div class="card-block"
      = link to: project_path(@conn, :new), class: "card-new-project-link" do
        i class="fa fa-plus-circle fa-2x"
        span New project

  = for project <- @projects do
    div class="card"
      div class="card-block"
        h5 = link project.name, to: project_path(@conn, :show, project)

      div class="card-footer"
        ul class="card-text text-muted list-unstyled"
          = for todo_list <- Todo.project_todo_lists(project) do
            li = link todo_list.name, to: todo_list_path(@conn, :show, todo_list)


.d-inline-block.my-3.mx-2
  = mega_octicon_for_tweak(@tweak)
h3.d-inline-block.my-3 = @tweak.title
.border.p-2
  .pb-2.clearfix
    = gettext "Last updated about "
    = relative_time(@tweak.updated_at)
    = if @current_user && @current_user.name == @tweak.user.name do
      a.float-right href="#{tweak_path(@conn, :edit, @tweak.user.name, @tweak.id)}"
        = octicon(:pencil)
  pre
    code = @tweak.code

Add tooltip to tweak edit button

.d-inline-block.my-3.mx-2
  = mega_octicon_for_tweak(@tweak)
h3.d-inline-block.my-3 = @tweak.title
.border.p-2
  .pb-2.clearfix
    = gettext "Last updated about "
    = relative_time(@tweak.updated_at)
    = if @current_user && @current_user.name == @tweak.user.name do
      a.float-right.tooltipped.tooltipped-n aria-label="#{gettext "Edit"}" href="#{tweak_path(@conn, :edit, @tweak.user.name, @tweak.id)}"
        = octicon(:pencil)
  pre
    code = @tweak.code