bring the previous login page

bring the previous login page

<%= form_for @conn, session_path(@conn, :create), [as: :session], fn f  -> %>

  <% login_field = Coherence.Config.login_field %>

  <% error = get_flash(@conn, :error) %>

        Welcome back!

        <%= CoursePlannerWeb.SharedView.form_text f, login_field, required: true %>
        <%= if error do %>

            <%= error %>

        <% end %>

        <%= CoursePlannerWeb.SharedView.form_password f, :password, required: true %>

        <%= CoursePlannerWeb.SharedView.form_submit f, "Next", class: "login__button" %>

<% end %>

Sign in

<%= form_for @conn, session_path(@conn, :create), [as: :session], fn f -> %>

    <%= text_input f, :email, placeholder: "Email",
                              class: "form-control" %>

    <%= password_input f, :password, placeholder: "Password",
                                     class: "form-control" %>

  <%= submit "Sign in", class: "btn btn-primary" %>
<% end %>


Fix typo in assigns

Fix typo in assigns

 s/@vcurrent_volunteer/@current_volunteer

  <%= form_for @changeset, @action, [multipart: true], fn f -> %>

      <%= if @changeset.action do %>

Oops, something went wrong! Please check the errors below.

      <% end %>

        <%= label f, :name %>
        <%= text_input f, :name, class: "form-control" %>
        <%= error_tag f, :name %>

        <%= label f, :member_id %>
        <%= text_input f, :member_id, class: "form-control" %>
        <%= error_tag f, :member_id %>

            <%= label f, :avatar_url, "Avatar" %>

          <%= if @current_volunteer && @current_volunteer.avatar_url do %>

              <img class="img-fluid img-thumbnail sponsor"
                alt="Current image" src="<%= image_path(@conn, @current_volunteer.avatar_url) %>"/>

          <% end %>

            <%= file_input f, :avatar, class: "form-control" %>
            Image size must be 120x120

        <%= error_tag f, :avatar %>

      <%= submit "Save", class: "btn btn-primary" %>

  <% end %>

  <%= form_for @changeset, @action, [multipart: true], fn f -> %>

      <%= if @changeset.action do %>

Oops, something went wrong! Please check the errors below.

      <% end %>

        <%= label f, :name %>
        <%= text_input f, :name, class: "form-control" %>
        <%= error_tag f, :name %>

        <%= label f, :member_id %>
        <%= text_input f, :member_id, class: "form-control" %>
        <%= error_tag f, :member_id %>

            <%= label f, :avatar_url, "Avatar" %>

          <%= if @current_volunteer && @current_volunteer.avatar_url do %>

              <img class="img-fluid img-thumbnail sponsor"
                alt="Current image" src="<%= image_path(@conn, @vcurrent_volunteer.avatar_url) %>"/>

          <% end %>

            <%= file_input f, :avatar, class: "form-control" %>
            Image size must be 120x120

        <%= error_tag f, :avatar %>

      <%= submit "Save", class: "btn btn-primary" %>

  <% end %>


Rename header bar to Hello Link!

Rename header bar to Hello Link!

<!DOCTYPE html>

    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">

    <title>Hello Link!</title>
    <link rel="stylesheet" href="<%= static_path(@conn, "/css/app.css") %>">

        Hello Link!

      <% if get_flash(@conn, :info) do %>

<%= get_flash(@conn, :info) %>

      <% end %>
      <% if get_flash(@conn, :error) do %>

<%= get_flash(@conn, :error) %>

      <% end %>

      <%= @inner %>

<!DOCTYPE html>

    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">

    <title>Hello Link!</title>
    <link rel="stylesheet" href="<%= static_path(@conn, "/css/app.css") %>">

        Instagram Link

      <% if get_flash(@conn, :info) do %>

<%= get_flash(@conn, :info) %>

      <% end %>
      <% if get_flash(@conn, :error) do %>

<%= get_flash(@conn, :error) %>

      <% end %>

      <%= @inner %>


Prune page

Prune page

Welcome to Personal Twitter Bot

Twitter doesn't have to be time consuming.

Resources

        Guides

        Docs

        Source

Help

        Mailing list

        #elixir-lang on freenode IRC

        @elixirphoenix


Use image_path/2 helper for working groups

<%= for %{name: name, avatar_url: image} <- @members do %>

  <% src_url = image || "volunteers/profile-placeholder.png" %>

      <img class="img-fluid" src="<%= img_path(@conn, src_url) %>" alt="<%= name %>">

    <%= name %>

  <% end %>

<%= for %{name: name, avatar_url: image} <- @members do %>

  <% src_url = image || "volunteers/profile-placeholder.png" %>

      <img class="img-fluid" src="/images/<%= src_url %>" alt="<%= name %>">

    <%= name %>

  <% end %>


Remove comment block

Remove comment block

<%= link(@episode.podcast.title, to: podcast_url(@conn, @episode.podcast)) %>

<%= @episode.title %>

          <img src="<%= podcast_image(@conn, @episode.podcast, :large) %>" height="300" width="300">

<%= @episode.pub_date |> format_date %>

        <%= Podcatcher.Web.ComponentsView.render "categories.html", conn: @conn, categories: @episode.podcast.categories %>

          <%= for keyword <- keywords(@episode.keywords) do %>
          <%= link raw(" #{keyword}"), to: episodes_path(@conn, :search, q: keyword), class: "label secondary" %>
          <% end %>

          <%= Podcatcher.Web.ComponentsView.render "download_button.html", conn: @conn, episode: @episode %>
          <%= Podcatcher.Web.ComponentsView.render "bookmark_button.html", conn: @conn, episode: @episode %>
          <%= Podcatcher.Web.ComponentsView.render "subscribe_button.html", conn: @conn, podcast: @episode.podcast %>

          <%= if @episode.explicit or @episode.podcast.explicit do %>
           Explicit
          <% end %>
          <%= unless @episode.link == "" do %><a class="label" href="<%= @episode.link %>"> Link
<% end %>
          <a class="label" href="<%= @episode.podcast.website %>"> Website
          <a class="label" href="<%= @episode.podcast.rss_feed %>"> RSS

        <%= if @episode.podcast.copyright do %>

          © <%= @episode.podcast.copyright %>

        <% end %>

<form method="GET" action="<%= podcast_url(@conn, @episode.podcast) %>">

    <input class="input-group-field" type="search" name="q" placeholder="Find other episodes in this podcast">

  <button type="submit" class="button primary expanded"> Find other episodes</button>
</form>

<%= if @episode.podcast.description do %>

 <%= @episode.podcast.description |> markdown %>

<% end %>

  <%= (@episode.description || @episode.summary) |> markdown %>

<%= link(@episode.podcast.title, to: podcast_url(@conn, @episode.podcast)) %>

<%= @episode.title %>

          <img src="<%= podcast_image(@conn, @episode.podcast, :large) %>" height="300" width="300">

<%= @episode.pub_date |> format_date %>

        <%= Podcatcher.Web.ComponentsView.render "categories.html", conn: @conn, categories: @episode.podcast.categories %>

          <%= for keyword <- keywords(@episode.keywords) do %>
          <%= link raw(" #{keyword}"), to: episodes_path(@conn, :search, q: keyword), class: "label secondary" %>
          <% end %>

          <%= Podcatcher.Web.ComponentsView.render "download_button.html", conn: @conn, episode: @episode %>
          <%= Podcatcher.Web.ComponentsView.render "bookmark_button.html", conn: @conn, episode: @episode %>
          <%= Podcatcher.Web.ComponentsView.render "subscribe_button.html", conn: @conn, podcast: @episode.podcast %>

          <%= if @episode.explicit or @episode.podcast.explicit do %>
           Explicit
          <% end %>
          <%= unless @episode.link == "" do %><a class="label" href="<%= @episode.link %>"> Link
<% end %>
          <a class="label" href="<%= @episode.podcast.website %>"> Website
          <a class="label" href="<%= @episode.podcast.rss_feed %>"> RSS

        <%= if @episode.podcast.copyright do %>

          © <%= @episode.podcast.copyright %>

        <% end %>

Your browser does not support HTML5 audio, but you can still
       <a href="<%= @episode.content_url %>">download the episode.

  </audio>
  <% else %>
  We do not support playback of this content type in the browser, however
  you can still <a href="<%= @episode.content_url %>">download the episode.
  <% end %>
<% end %>

-->

<form method="GET" action="<%= podcast_url(@conn, @episode.podcast) %>">

    <input class="input-group-field" type="search" name="q" placeholder="Find other episodes in this podcast">

  <button type="submit" class="button primary expanded"> Find other episodes</button>
</form>

<%= if @episode.podcast.description do %>

 <%= @episode.podcast.description |> markdown %>

<% end %>

  <%= (@episode.description || @episode.summary) |> markdown %>


add readonly url to edit_map/show

add readonly url to edit_map/show

Show map

    Public URL:
    <%= link readonly_map_url(@conn, :show, @map), to: readonly_map_url(@conn, :show, @map) %>

    Title:
    <%= @map.title %>

    Description:
    <%= @map.description %>

    Center lat:
    <%= @map.center_lat %>

    Center long:
    <%= @map.center_long %>

    Ovetrlay url:
    <%= @map.overlay_URL %>

    Overlay north:
    <%= @map.overlay_north %>

    Overlay south:
    <%= @map.overlay_south %>

    Overlay east:
    <%= @map.overlay_east %>

    Overlay west:
    <%= @map.overlay_west %>

<%= link "Edit", to: edit_map_path(@conn, :edit, @map) %>
 |
<%= link "Back", to: edit_map_path(@conn, :index) %>
<%= render EnhancedMap.SharedView, "google_map.html", map: @map %>

Show map

    Title:
    <%= @map.title %>

    Description:
    <%= @map.description %>

    Center lat:
    <%= @map.center_lat %>

    Center long:
    <%= @map.center_long %>

    Ovetrlay url:
    <%= @map.overlay_URL %>

    Overlay north:
    <%= @map.overlay_north %>

    Overlay south:
    <%= @map.overlay_south %>

    Overlay east:
    <%= @map.overlay_east %>

    Overlay west:
    <%= @map.overlay_west %>

<%= link "Edit", to: edit_map_path(@conn, :edit, @map) %>
 |
<%= link "Back", to: edit_map_path(@conn, :index) %>
<%= render EnhancedMap.SharedView, "google_map.html", map: @map %>


remove turnout from embed

remove turnout from embed

<div class="area" style="background: <%= score_color(@poll) %>;">

			<%= if @poll.choice_type == "time_quantity" do %>

					<%= if Enum.empty?(@poll.results.by_datetime) do %>
						?
					<% else %>
						<%= render "chart.html", points: @poll.results.by_datetime |> Enum.map(& {&1.datetime, &1.mean, &1.turnout_ratio}), tooltips: false %>
					<% end %>

			<% else %>
				<%= if @poll.results.mean != nil do %>
					<%= if @poll.choice_type == "probability" do %>
						<%= round(@poll.results.mean * 100) %>%
					<% else %>
						<%= number_format(@poll.results.mean) %>
					<% end %>
				<% else %>
					?
				<% end %>
			<% end %>

<div class="area" style="background: <%= score_color(@poll) %>;">

			<%= if @poll.choice_type == "time_quantity" do %>

					<%= if Enum.empty?(@poll.results.by_datetime) do %>
						?
					<% else %>
						<%= render "chart.html", points: @poll.results.by_datetime |> Enum.map(& {&1.datetime, &1.mean, &1.turnout_ratio}), tooltips: false %>
					<% end %>

			<% else %>
				<%= if @poll.results.mean != nil do %>
					<%= if @poll.choice_type == "probability" do %>
						<%= round(@poll.results.mean * 100) %>%
					<% else %>
						<%= number_format(@poll.results.mean) %>
					<% end %>
				<% else %>
					?
				<% end %>

				<%= round(@poll.results.turnout_ratio * 100) %>% turnout
			<% end %>


minor formatting tweak.

minor formatting tweak.

Listing orders

<%= link "Finalized, not ready (default)", to: user_order_path(@conn, :index) %>

<%= link "Ready for pickup", to: user_order_path(@conn, :index, ready: true) %>

<%= link "All", to: user_order_path(@conn, :index, all: true) %>

      Name/ID
      Finalized
      Ready for Pickup

<%= for order <- @orders do %>

      <%= order.user.name %>, id: <%= order.user.id %>
      <%= order.finalized %>
      <%= order.ready_for_pickup %>

        <%= link "Show/edit order", to: user_order_path(@conn, :show, order), class: "btn btn-default btn-xs" %>

<% end %>


Only display attributes which are not nil.

<%= full_name(@user) %>

  <%= if @user.first_name do %>

      <%= gettext "First name:" %>
      <%= @user.first_name %>

  <% end %>

  <%= if @user.last_name do %>

      <%= gettext "Last name:" %>
      <%= @user.last_name %>

  <% end %>

  <%= if @user.middlename do %>

      <%= gettext "Middlename:" %>
      <%= @user.middlename %>

  <% end %>

  <%= if @user.nickname do %>

      <%= gettext "Nickname:" %>
      <%= @user.nickname %>

  <% end %>

  <%= if @user.honorific_prefix do %>

      <%= gettext "Honorific prefix:" %>
      <%= @user.honorific_prefix %>

  <% end %>

  <%= if @user.honorific_suffix do %>

      <%= gettext "Honorific suffix:" %>
      <%= @user.honorific_suffix %>

  <% end %>

  <%= if @user.gender do %>

      <%= gettext "Gender:" %>
      <%= @user.gender %>

  <% end %>

  <%= if @user.birthdate do %>

      <%= gettext "Birthdate:" %>
      <%= @user.birthdate %>

  <% end %>

  <%= if @user.verified do %>

      <%= gettext "Verified:" %>
      <%= @user.verified %>

  <% end %>

<%= if @user.avatar do %>

<img src="<%= avatar_url(@user) %>" alt="Avatar of <%= full_name(@user) %>">

<% end %>

<%= unless Enum.empty?(@user.groups) do %>

Groups

  <%= for group <- @user.groups do %>

<%= group.name %>

  <% end %>

<% end %>

<%= unless Enum.empty?(@user.followers) do %>

Followers

  <%= for follower <- @user.followers do %>

<%= full_name(follower) %>

  <% end %>

<% end %>

<%= unless Enum.empty?(@user.followees) do %>

Followees

  <%= for followee <- @user.followees do %>

<%= full_name(followee) %>

  <% end %>

<% end %>

<%= link gettext("Edit"), to: user_path(@conn, :edit, @user) %>
<%= link gettext("Back"), to: user_path(@conn, :index) %>

<%= full_name(@user) %>

    <%= gettext "First name:" %>
    <%= @user.first_name %>

    <%= gettext "Last name:" %>
    <%= @user.last_name %>

    <%= gettext "Middlename:" %>
    <%= @user.middlename %>

    <%= gettext "Nickname:" %>
    <%= @user.nickname %>

    <%= gettext "Honorific prefix:" %>
    <%= @user.honorific_prefix %>

    <%= gettext "Honorific suffix:" %>
    <%= @user.honorific_suffix %>

    <%= gettext "Gender:" %>
    <%= @user.gender %>

    <%= gettext "Birthdate:" %>
    <%= @user.birthdate %>

    <%= gettext "Verified:" %>
    <%= @user.verified %>

<%= if @user.avatar do %>

<img src="<%= avatar_url(@user) %>" alt="Avatar of <%= full_name(@user) %>">

<% end %>

Groups

<%= for group <- @user.groups do %>

<%= group.name %>

<% end %>

Followers

<%= for follower <- @user.followers do %>

<%= full_name(follower) %>

<% end %>

Followees

<%= for followee <- @user.followees do %>

<%= full_name(followee) %>

<% end %>

<%= link gettext("Edit"), to: user_path(@conn, :edit, @user) %>
<%= link gettext("Back"), to: user_path(@conn, :index) %>


Added sumo me script

Added sumo me script

<!DOCTYPE html>

    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="ricardo@codeloveandboards.com">

    <title>Phoenix Trello</title>
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
    <link rel="stylesheet" href="<%= static_path(@conn, "/css/application.css") %>">

    <link id="favicon" rel="icon" type="image/png" sizes="64x64" href="<%= static_path(@conn, "/images/favicon.png") %>"/>

        Trello tribute for educational porpoises
        crafted with ♥ for Diacode
        by @bigardone


Add site metadata and remove Phoenix header/logo

<!DOCTYPE html>

    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="GraphQL Elixir examples and GraphiQL sandbox">
    <meta name="author" content="GraphQL Elixir team">

    <title>GraphQL Elixir - Phoenix examples</title>
    <link rel="stylesheet" href="<%= static_path(@conn, "/css/app.css") %>">

<%= get_flash(@conn, :info) %>

<%= get_flash(@conn, :error) %>

      <%= render @view_module, @view_template, assigns %>

<!DOCTYPE html>

    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">

    <title>Hello GraphQL Elixir!</title>
    <link rel="stylesheet" href="<%= static_path(@conn, "/css/app.css") %>">

Get Started

<%= get_flash(@conn, :info) %>

<%= get_flash(@conn, :error) %>

      <%= render @view_module, @view_template, assigns %>


Fixed wording.

Fixed wording.

<%= gettext "Welcome to vutuv!" %>

<%= gettext "User Count" %>: <%= @user_count %>

<%= gettext "vutuv is a social network service to host and share information about humans and organizations." %>

It's like LinkedIn or XING but faster and free.
Bonus: It's open source!

<%= unless @current_user do %>

<%= gettext "Become part of it!" %>

      <%= render Vutuv.UserView, "form.html", changeset: @changeset,
                              action: user_path(@conn, :create), current_user: @current_user %>

<% end %>

<%= gettext "Welcome to vutuv!" %>

<%= gettext "User Count" %>: <%= @user_count %>

<%= gettext "vutuv is a social network service to host and share information about humans and organizations." %>

It's like LinkedIn or XING but better and free.
Bonus: It's open source!

<%= unless @current_user do %>

<%= gettext "Become part of it!" %>

      <%= render Vutuv.UserView, "form.html", changeset: @changeset,
                              action: user_path(@conn, :create), current_user: @current_user %>

<% end %>


Remove Bootstrap js

Remove Bootstrap js

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <meta name="description" content="">
    <meta name="author" content="">

    <title>Hello TapRacer!</title>

    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap-theme.min.css" integrity="sha384-fLW2N01lMqjakBkx3l/M9EahuwpSfeNvV63J5ezn3uZzapT0u7EYsXMjQV+0En5r" crossorigin="anonymous">
    <link rel="stylesheet" href="<%= static_path(@conn, "/css/app.css") %>">
  </head>

  <body data-js-view-name="<%= js_view_name(@conn, @view_template) %>">
    <div class="container">
      <main role="main">
        <%= render @view_module, @view_template, assigns %>
      </main>
    </div> <!-- /container -->
    <script src="https://code.jquery.com/jquery-3.0.0.min.js"></script>
    <!-- <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" integrity="sha384-0mSbJDEHialfmuBBQP6A4Qrprq5OVfW37PRR3j5ELqxss1yVqOtnepnHVP9aJ7xS" crossorigin="anonymous"></script> -->
    <script src="<%= static_path(@conn, "/js/app.js") %>"></script>
  </body>
</html>

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <meta name="description" content="">
    <meta name="author" content="">

    <title>Hello TapRacer!</title>

    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap-theme.min.css" integrity="sha384-fLW2N01lMqjakBkx3l/M9EahuwpSfeNvV63J5ezn3uZzapT0u7EYsXMjQV+0En5r" crossorigin="anonymous">
    <link rel="stylesheet" href="<%= static_path(@conn, "/css/app.css") %>">
  </head>

  <body data-js-view-name="<%= js_view_name(@conn, @view_template) %>">
    <div class="container">
      <main role="main">
        <%= render @view_module, @view_template, assigns %>
      </main>
    </div> <!-- /container -->
    <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" integrity="sha384-0mSbJDEHialfmuBBQP6A4Qrprq5OVfW37PRR3j5ELqxss1yVqOtnepnHVP9aJ7xS" crossorigin="anonymous"></script>
    <script src="https://code.jquery.com/jquery-3.0.0.min.js"></script>
    <script src="<%= static_path(@conn, "/js/app.js") %>"></script>
  </body>
</html>


simple form switch

simple form switch

<%= render Core.LayoutView, "h1.html", [brand: @brand, text: "Call Voters"] %>
<% csl =
  cond do
    @calling_script_link != nil and String.contains?(@calling_script_link, "https://") -> @calling_script_link
    @calling_script_link -> core_deployment(@brand) <> @calling_script_link
    true -> nil
  end
%>
<% abbrev = String.upcase(@brand) %>

  <%= if @brand == "jd" do %>

  <% end %>

  <%= if (not @mobile) do %>
    <%= render Core.LayoutView, "left-nav.html", assigns %>
  <% end %>

    <%= if @on_hours or @draft do %>
      <%= if (@candidate["slug"] in @callable_slugs) or @draft do %>

          <%= raw(@candidate_calling_page) %>

           First,

            Read the guide on how to make calls for <%= abbrev %>

           Second,
          <a target="_blank" class="primary-button" href="<%= csl %>">
            Read the calling script

           Third,
          <a target="_blank" class="primary-button" href="<%= core_deployment(@brand) <> "/call" %>">
            Claim your login

           Fourth,

            Login to our dialer, and get calling!

 Calling hours

              We make calls from 5PM - 9PM on weekdays and 10AM - 9PM on
              weekends in the candidates' local time zone,
              so check back anytime you want to make calls.

              However, your login information will change each day, so you'll
              need to reclaim it.

 Questions?

              Please email
              <% email =
                case @brand do
                  "jd" -> "dialer@justicedemocrats.com"
                  "bnc" -> "dialer@brandnewcongress.org"
                end
              %>

              <a href="mailto:<%= email %>" target="-blank">
                <%= email %>
              .
              We'll get back to you as soon as we can.

      <% else %>

        <%= if @candidate do %>

            We've made all of our calls for <%= @candidate["title"] %> for
            today!

        <% else %>

            Sorry, we don't have a candidate in your district yet.

        <% end %>

 Please make calls for one of our other candidates:

          <%= for cand <- @callable_candidates do %>

 <a href="<%= "/act/call/#{cand.slug}" %>" target="_blank">
                <%= cand.name %>

          <% end %>

      <% end %>

    <% else %>

      <%= if @candidate !== nil and length(@callable_candidates) > 0 do %>

          Since we only make calls from 5PM - 9PM on weekdays and 10AM - 9PM on weekends
          in the candidates' local time zone,
          we're not calling voters in <%= @candidate["title"] %>'s district right now.

 Please make calls for one of our other candidates:

          <%= for cand <- @callable_candidates do %>

 <a href="<%= "/act/call/#{cand.slug}" %>" target="_blank">
                <%= cand.name %>

          <% end %>

      <% else %>

          At the moment, we're making calls from 5PM - 9PM on weekdays and
          10AM - 9PM on Saturday and 12 noon to 9PM on Sunday in the candidates'
          local time zone.

          Please fill out

            this form

          and we'll help you get set up soon.

      <% end %>

    <% end %>


Use FQDN in node name

Use FQDN in node name

#!/bin/sh

set -e

readlink_f() {
  cd "$(dirname "$1")" > /dev/null

  local filename="$(basename "$1")"

  if [ -h "$filename" ]; then
    readlink_f "$(readlink "$filename")"
  else
    echo "`pwd -P`/$filename"
  fi
}

SELF=$(readlink_f "$0")
SCRIPT_PATH=$(dirname "$SELF")
RELEASE_PATH=$(dirname "$SCRIPT_PATH")

APP=<%= app %>
HOSTNAME=`hostname -f`
SERVER_NODE=$APP@$HOSTNAME
CONTROL_NODE=$APP$$@$HOSTNAME

alive() {
  $SCRIPT_PATH/elixir --name $CONTROL_NODE -e 'Pogo.alive! :"'$SERVER_NODE'"'

  return $?
}

start() {
  if alive; then
    echo "$APP is already running"
    exit 0
  fi

  if [ -f "$RELEASE_PATH/etc/$APP.config" ]; then
    export ELIXIR_ERL_OPTS="-config $RELEASE_PATH/etc/$APP.config"
  fi

  if [ "$#" != 0 ]; then
    export ELIXIR_ERL_OPTS="$ELIXIR_ERL_OPTS $@"
  fi

  $SCRIPT_PATH/elixir --name $SERVER_NODE --app $APP --no-halt --detached

  if alive; then
    echo "$APP started as $SERVER_NODE";
  else
    echo "$APP failed to start"
  fi
}

stop() {
  if ! alive; then
    echo "$APP is not running (or not reachable)"
    exit 0
  fi

  $SCRIPT_PATH/elixir --name $CONTROL_NODE -pa ebin -e 'Pogo.stop :"'$SERVER_NODE'"'

  if [ $? ]; then
    echo "$APP has stopped"
  else
    echo "$APP did not stop"
  fi
}

restart() {
  if ! alive; then
    echo "$APP is unreachable"
    exit 1
  fi

  $SCRIPT_PATH/elixir --name $CONTROL_NODE -pa ebin -e 'Pogo.restart :"'$SERVER_NODE'"'
}

reboot() {
  if ! alive; then
    echo "$APP is unreachable"
    exit 1
  fi

  $SCRIPT_PATH/elixir --name $CONTROL_NODE -pa ebin -e 'Pogo.reboot :"'$SERVER_NODE'"'
}

console() {
  if alive; then
    echo "$APP is already running"
    exit 0
  fi

  if [ -f "$RELEASE_PATH/etc/$APP.config" ]; then
    export ELIXIR_ERL_OPTS="-config $RELEASE_PATH/etc/$APP.config"
  fi

  if [ "$#" != 0 ]; then
    export ELIXIR_ERL_OPTS="$@"
  fi

  exec $SCRIPT_PATH/iex --name $SERVER_NODE --app $APP
}

attach() {
  if ! alive; then
    echo "$APP is unreachable"
    exit 1
  fi

  exec $SCRIPT_PATH/iex --remsh $SERVER_NODE --name $CONTROL_NODE
}

status() {
  if alive; then
    echo "$APP is running"
    exit 0
  else
    echo "$APP could not be reached"
    exit 1
  fi
}

case "$1" in
  start)
    shift
    start $@
    ;;
  stop)
    stop
    ;;
  restart)
    restart
    ;;
  reboot)
    reboot
    ;;
  console)
    shift
    console $@
    ;;
  attach)
    attach
    ;;
  status)
    status
    ;;
  *)
    echo "Usage: $0 (start|stop|restart|reboot|console|attach|status)"
    exit 1
esac

exit $?

#!/bin/sh

set -e

readlink_f() {
  cd "$(dirname "$1")" > /dev/null

  local filename="$(basename "$1")"

  if [ -h "$filename" ]; then
    readlink_f "$(readlink "$filename")"
  else
    echo "`pwd -P`/$filename"
  fi
}

SELF=$(readlink_f "$0")
SCRIPT_PATH=$(dirname "$SELF")
RELEASE_PATH=$(dirname "$SCRIPT_PATH")

APP=<%= app %>
HOSTNAME=`hostname`
SERVER_NODE=$APP@$HOSTNAME
CONTROL_NODE=$APP$$@$HOSTNAME

alive() {
  $SCRIPT_PATH/elixir --name $CONTROL_NODE -e 'Pogo.alive! :"'$SERVER_NODE'"'

  return $?
}

start() {
  if alive; then
    echo "$APP is already running"
    exit 0
  fi

  if [ -f "$RELEASE_PATH/etc/$APP.config" ]; then
    export ELIXIR_ERL_OPTS="-config $RELEASE_PATH/etc/$APP.config"
  fi

  if [ "$#" != 0 ]; then
    export ELIXIR_ERL_OPTS="$ELIXIR_ERL_OPTS $@"
  fi

  $SCRIPT_PATH/elixir --name $SERVER_NODE --app $APP --no-halt --detached

  if alive; then
    echo "$APP started as $SERVER_NODE";
  else
    echo "$APP failed to start"
  fi
}

stop() {
  if ! alive; then
    echo "$APP is not running (or not reachable)"
    exit 0
  fi

  $SCRIPT_PATH/elixir --name $CONTROL_NODE -pa ebin -e 'Pogo.stop :"'$SERVER_NODE'"'

  if [ $? ]; then
    echo "$APP has stopped"
  else
    echo "$APP did not stop"
  fi
}

restart() {
  if ! alive; then
    echo "$APP is unreachable"
    exit 1
  fi

  $SCRIPT_PATH/elixir --name $CONTROL_NODE -pa ebin -e 'Pogo.restart :"'$SERVER_NODE'"'
}

reboot() {
  if ! alive; then
    echo "$APP is unreachable"
    exit 1
  fi

  $SCRIPT_PATH/elixir --name $CONTROL_NODE -pa ebin -e 'Pogo.reboot :"'$SERVER_NODE'"'
}

console() {
  if alive; then
    echo "$APP is already running"
    exit 0
  fi

  if [ -f "$RELEASE_PATH/etc/$APP.config" ]; then
    export ELIXIR_ERL_OPTS="-config $RELEASE_PATH/etc/$APP.config"
  fi

  if [ "$#" != 0 ]; then
    export ELIXIR_ERL_OPTS="$@"
  fi

  exec $SCRIPT_PATH/iex --name $SERVER_NODE --app $APP
}

attach() {
  if ! alive; then
    echo "$APP is unreachable"
    exit 1
  fi

  exec $SCRIPT_PATH/iex --remsh $SERVER_NODE --name $CONTROL_NODE
}

status() {
  if alive; then
    echo "$APP is running"
    exit 0
  else
    echo "$APP could not be reached"
    exit 1
  fi
}

case "$1" in
  start)
    shift
    start $@
    ;;
  stop)
    stop
    ;;
  restart)
    restart
    ;;
  reboot)
    reboot
    ;;
  console)
    shift
    console $@
    ;;
  attach)
    attach
    ;;
  status)
    status
    ;;
  *)
    echo "Usage: $0 (start|stop|restart|reboot|console|attach|status)"
    exit 1
esac

exit $?


user show page

user show page

Showing User

Id

<%= @user.id %>

Username

<%= @user.username %>

Name

<%= @user.name %>

Email

<%= @user.email %>

Inserted at

<%= @user.inserted_at %>

Updated at

<%= @user.updated_at %>

Admin

    <%= if @user.admin do %>
      <%= fa_icon("check-square-o") %>
    <% else %>
      <%= fa_icon("square-o") %>
    <% end %>

Podcaster

    <%= if @user.podcaster do %>
      <%= fa_icon("check-square-o") %>
    <% else %>
      <%= fa_icon("square-o") %>
    <% end %>

Pro until

<%= @user.pro_until %>

Billing address

<%= @user.billing_address %>

Payment reference

<%= @user.payment_reference %>

Paper bill

<%= @user.paper_bill %>


Link to icon

Link to icon

<!DOCTYPE html>

  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <meta name="description" content="">
  <meta name="author" content="">
  <meta name="csrf-token" content="<%= get_csrf_token() %>">

  <link rel="icon" type="image/x-icon" href="<%= static_path(@conn, "favicon.ico") %>" />

  <link href="//cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" rel='stylesheet' type='text/css'>

  <title>Podbaby<%= if assigns[:page_title] do %> - <%= assigns[:page_title] %><% end %></title>

  <link rel="stylesheet" href="<%= static_path(@conn, "/css/app.css") %>">

    <button class="menu-icon" type="button" data-toggle></button>

Menu

<a id="index-link" href="<%= if assigns[:user] do subscriptions_path(@conn, :index) else page_path(@conn, :index) end %>"> Podbaby

        <%= if assigns[:user] do %>
        <%= active_link(@conn, raw(" My podcasts"), to: subscriptions_path(@conn, :index), wrap_tag: :li) %>
        <%= active_link(@conn, raw(" Bookmarks"), to: bookmarks_path(@conn, :index), wrap_tag: :li) %>
        <% end %>
        <%= active_link(@conn, raw(" New releases"), to: episodes_path(@conn, :index), wrap_tag: :li) %>
        <%= active_link(@conn, raw(" Discover"), to: podcasts_path(@conn, :index), wrap_tag: :li) %>
        <%= active_link(@conn, raw(" Browse"), to: categories_path(@conn, :index), wrap_tag: :li) %>
        <%= if assigns[:is_admin] do %>
        <%= active_link(@conn, raw(" Add new"), to: admin_podcasts_path(@conn, :new), wrap_tag: :li) %>
        <% end %>

      <%= if assigns[:user] do %>

          <%= assigns[:user].name %>

<%= link(raw(" Change email"), to: auth_path(@conn, :change_email)) %>

<%= link(raw(" Change password"), to: auth_path(@conn, :change_password)) %>

<%= link(raw(" Sign out"), to: auth_path(@conn, :logout)) %>

<%= link(raw(" Change email"), to: auth_path(@conn, :change_email)) %>

<%= link(raw(" Change password"), to: auth_path(@conn, :change_password)) %>

<%= link(raw(" Sign out"), to: auth_path(@conn, :logout)) %>

      <% else %>

        <%= active_link(@conn, raw(" Login"), to: login_url(@conn), wrap_tag: :li, active: ~r/\/login*/) %>
        <%= active_link(@conn, raw(" Signup"), to: auth_path(@conn, :signup,  next: @conn.request_path), wrap_tag: :li, active: ~r/\/signup*/) %>

      <% end %>

    <%= if msg = get_flash(@conn, :info) do %>

<%= msg %>

    <% end %>
    <%= if msg = get_flash(@conn, :warning) do %>

<%= msg %>

    <% end %>
    <%= if msg = get_flash(@conn, :error) do %>

<%= msg %>

    <% end %>
    <%= if msg = get_flash(@conn, :success) do %>

<%= msg %>

    <% end %>

    <%= render @view_module, @view_template, assigns %>

<!DOCTYPE html>

  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <meta name="description" content="">
  <meta name="author" content="">
  <meta name="csrf-token" content="<%= get_csrf_token() %>">

  <link href="//cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" rel='stylesheet' type='text/css'>

  <title>Podbaby<%= if assigns[:page_title] do %> - <%= assigns[:page_title] %><% end %></title>

  <link rel="stylesheet" href="<%= static_path(@conn, "/css/app.css") %>">

    <button class="menu-icon" type="button" data-toggle></button>

Menu

<a id="index-link" href="<%= if assigns[:user] do subscriptions_path(@conn, :index) else page_path(@conn, :index) end %>"> Podbaby

        <%= if assigns[:user] do %>
        <%= active_link(@conn, raw(" My podcasts"), to: subscriptions_path(@conn, :index), wrap_tag: :li) %>
        <%= active_link(@conn, raw(" Bookmarks"), to: bookmarks_path(@conn, :index), wrap_tag: :li) %>
        <% end %>
        <%= active_link(@conn, raw(" New releases"), to: episodes_path(@conn, :index), wrap_tag: :li) %>
        <%= active_link(@conn, raw(" Discover"), to: podcasts_path(@conn, :index), wrap_tag: :li) %>
        <%= active_link(@conn, raw(" Browse"), to: categories_path(@conn, :index), wrap_tag: :li) %>
        <%= if assigns[:is_admin] do %>
        <%= active_link(@conn, raw(" Add new"), to: admin_podcasts_path(@conn, :new), wrap_tag: :li) %>
        <% end %>

      <%= if assigns[:user] do %>

          <%= assigns[:user].name %>

<%= link(raw(" Change email"), to: auth_path(@conn, :change_email)) %>

<%= link(raw(" Change password"), to: auth_path(@conn, :change_password)) %>

<%= link(raw(" Sign out"), to: auth_path(@conn, :logout)) %>

<%= link(raw(" Change email"), to: auth_path(@conn, :change_email)) %>

<%= link(raw(" Change password"), to: auth_path(@conn, :change_password)) %>

<%= link(raw(" Sign out"), to: auth_path(@conn, :logout)) %>

      <% else %>

        <%= active_link(@conn, raw(" Login"), to: login_url(@conn), wrap_tag: :li, active: ~r/\/login*/) %>
        <%= active_link(@conn, raw(" Signup"), to: auth_path(@conn, :signup,  next: @conn.request_path), wrap_tag: :li, active: ~r/\/signup*/) %>

      <% end %>

    <%= if msg = get_flash(@conn, :info) do %>

<%= msg %>

    <% end %>
    <%= if msg = get_flash(@conn, :warning) do %>

<%= msg %>

    <% end %>
    <%= if msg = get_flash(@conn, :error) do %>

<%= msg %>

    <% end %>
    <%= if msg = get_flash(@conn, :success) do %>

<%= msg %>

    <% end %>

    <%= render @view_module, @view_template, assigns %>


Ensure RELEASE_MUTABLE_DIR exists before writing to it (#679)

#!/usr/bin/env bash

set -e

unset CDPATH

SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd -P)"
RELEASE_ROOT_DIR="$(cd "$SCRIPT_DIR/.." && pwd)"
RELEASES_DIR="${RELEASE_ROOT_DIR}/releases"
RELEASE_MUTABLE_DIR="${RELEASE_MUTABLE_DIR:-"${RELEASE_ROOT_DIR}/var"}"
START_ERL_DATA="${RELEASE_MUTABLE_DIR}/start_erl.data"
REL_NAME="${REL_NAME:-<%= release_name %>}"

if [ ! -f "${START_ERL_DATA}" ]; then
    mkdir -p $RELEASE_MUTABLE_DIR
    cp "${RELEASES_DIR}/start_erl.data" "${START_ERL_DATA}"
fi
REL_VSN="${REL_VSN:-$(cut -d' ' -f2 "${START_ERL_DATA}")}"
ERTS_VSN="${ERTS_VSN:-$(cut -d' ' -f1 "${START_ERL_DATA}")}"
<%= if (include_erts == false or is_nil(erts_vsn)) do %>USE_HOST_ERTS=true<% end %>

export RELEASE_ROOT_DIR
export RELEASES_DIR
export RELEASE_MUTABLE_DIR
export START_ERL_DATA
export REL_NAME
export REL_VSN
export ERTS_VSN
export DEBUG_BOOT

# Set DEBUG_BOOT to output verbose debugging info during execution
if [ ! -z "$DEBUG_BOOT" ]; then
    export PS4='+\D{%s} '
    set -x
fi

# Ensure TERM is set to something usable
# for remote shells. The only time we'll
# override this value is if it is set to "dumb"
export TERM="${TERM:-xterm}"
if [ "$TERM" = "dumb" ]; then
    TERM=xterm
fi

exec "$RELEASES_DIR/$REL_VSN/$REL_NAME.sh" "$@"

#!/usr/bin/env bash

set -e

unset CDPATH

SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd -P)"
RELEASE_ROOT_DIR="$(cd "$SCRIPT_DIR/.." && pwd)"
RELEASES_DIR="${RELEASE_ROOT_DIR}/releases"
RELEASE_MUTABLE_DIR="${RELEASE_MUTABLE_DIR:-"${RELEASE_ROOT_DIR}/var"}"
START_ERL_DATA="${RELEASE_MUTABLE_DIR}/start_erl.data"
REL_NAME="${REL_NAME:-<%= release_name %>}"
if [ ! -f "${START_ERL_DATA}" ]; then
    cp "${RELEASES_DIR}/start_erl.data" "${START_ERL_DATA}"
fi
REL_VSN="${REL_VSN:-$(cut -d' ' -f2 "${START_ERL_DATA}")}"
ERTS_VSN="${ERTS_VSN:-$(cut -d' ' -f1 "${START_ERL_DATA}")}"
<%= if (include_erts == false or is_nil(erts_vsn)) do %>USE_HOST_ERTS=true<% end %>

export RELEASE_ROOT_DIR
export RELEASES_DIR
export RELEASE_MUTABLE_DIR
export START_ERL_DATA
export REL_NAME
export REL_VSN
export ERTS_VSN
export DEBUG_BOOT

# Set DEBUG_BOOT to output verbose debugging info during execution
if [ ! -z "$DEBUG_BOOT" ]; then
    export PS4='+\D{%s} '
    set -x
fi

# Ensure TERM is set to something usable
# for remote shells. The only time we'll
# override this value is if it is set to "dumb"
export TERM="${TERM:-xterm}"
if [ "$TERM" = "dumb" ]; then
    TERM=xterm
fi

exec "$RELEASES_DIR/$REL_VSN/$REL_NAME.sh" "$@"


do summary large image

do summary large image

<meta name="description" content="<%=@title%>" />
<meta name="keywords" content="<%=@title <> "" <> copyright(@brand)%>" />
<meta name="author" content="copyright(@brand)%>" />
<meta name="copyright" content="copyright(@brand)%>" />

<meta property="og:url" content="<%= core_deployment(@brand) <> "/petition/" <> @slug%>" />
<meta property="og:title" content="<%=@title%>" />
<meta property="og:type" content="article" />
<meta property="og:image" content="<%=@share_image%>" />
<meta property="og:description" content="<%=@content%>" />

<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="<%=@title%>" />
<meta name="twitter:description" content="<%=@content%>" />
<meta name="twitter:image" content="<%=@share_image%>" />

    <%= if not @signed do %>

        <%= raw(@content) %>

      <%= if @count do %>

          <div class="count-bar" style="width: <%= @progress %>%;">

           <%= @count %> people have signed. Help us get to <%= @target %>!

      <% end %>

      <%= form_tag("/petition/#{@slug}", method: :post, id: "main-form") %>

          <input type="hidden" name="_csrf_token" value="<%= csrf_token() %>" />

          <fieldset style="margin-top: 20px;">
            <legend style="color:white;">Your Info</legend>

              Name
              <input type="text" name="name" required="required"/>

              Email
              <input type="email" name="email" required="required"/>

              Mobile Phone Number
              <input type="tel" name="phone" />

              Zip
              <input type="text" name="zip" maxlength="5" required="required" />

              <%= if @brand == "jd" do %>
                <button onclick="fbq('track', 'Lead'); document.querySelector('#main-form').submit();" type="submit" class="button-block"><%=@sign_button_text%></button>
              <% else %>
                <button type="submit" class="button-block"><%=@sign_button_text%></button>
              <% end %>

          </fieldset>

            By signing this petition, I consent to receiving emails from
            <%= if @slug == "jd-stop-war" do %>
              <a target="_blank" href="<%=homepage(@brand)%>"><%=copyright(@brand)%> and
              Ro Khanna.
            <% else %>
              <a target="_blank" href="<%=homepage(@brand)%>"><%=copyright(@brand)%>.
            <% end %>

      </form>

    <% else %>

        <%= raw(@post_sign_text) %>

 Next Steps

      <fieldset style="margin-top: 20px; color: white;">
        <legend style="color:white;">Help us get to <%= @target %> signatures by sharing on social media</legend>

        <a class="twitter-share-button" href="<%=@twitter_href%>" data-size="large">
          Tweet

        <div class="fb-share-button" data-href="<%=@url%>" data-layout="button_count" data-size="large" style="float:right;">
          <a class="fb-xfbml-parse-ignore" target="_blank"
            style="background-color: #3b5998; color: white; padding: 5px; text-decoration: none; margin-top: 5px;"
            href="<%=@fb_href%>"
          >
            Share on Facebook

      </fieldset>

      <%= if @call_power_campaign_id != nil and @call_power_campaign_id != "" do %>

        <fieldset style="color:white;">
          <legend> <%= @call_power_header %> </legend>

            <%= raw(@call_power_prompt) %>

          <form id="call_form">
            <input id="phone_id" type="hidden" value="<%= @submitted_phone %>"/>
            <input id="location_id" type="hidden" value="<%= @submitted_zip %>" />
            <button type="submit" style="width: 100%; margin-top: 10px;" id="call-power-go"> Call Me At <%= @submitted_phone %> </button>
          </form>

          <%= form_tag("/petition/#{@slug}", method: :post, id: "number-replace-form", style: "margin-top: 10px;") %>
            <input name="name" value="<%= @submitted_name %>" type="hidden" />
            <input name="email" value="<%= @submitted_email %>" type="hidden" />
            <input name="zip" value="<%= @submitted_zip %>" type="hidden" />

              Different Number
              <input type="tel" name="phone" />

              <button id="number-replace-button" class="button-block">Call Me at a Different Number</button>

          </form>
        </fieldset>
      <% end %>

    <% end %>

<%= if @brand == "jd" do %>

<% end %>

<meta name="description" content="<%=@title%>" />
<meta name="keywords" content="<%=@title <> "" <> copyright(@brand)%>" />
<meta name="author" content="copyright(@brand)%>" />
<meta name="copyright" content="copyright(@brand)%>" />

<meta property="og:url" content="<%= core_deployment(@brand) <> "/petition/" <> @slug%>" />
<meta property="og:title" content="<%=@title%>" />
<meta property="og:type" content="article" />
<meta property="og:image" content="<%=@share_image%>" />
<meta property="og:description" content="<%=@content%>" />

<meta name="twitter:card" content="summary" />
<meta name="twitter:title" content="<%=@title%>" />
<meta name="twitter:description" content="<%=@content%>" />
<meta name="twitter:image" content="<%=@share_image%>" />

    <%= if not @signed do %>

        <%= raw(@content) %>

      <%= if @count do %>

          <div class="count-bar" style="width: <%= @progress %>%;">

           <%= @count %> people have signed. Help us get to <%= @target %>!

      <% end %>

      <%= form_tag("/petition/#{@slug}", method: :post, id: "main-form") %>

          <input type="hidden" name="_csrf_token" value="<%= csrf_token() %>" />

          <fieldset style="margin-top: 20px;">
            <legend style="color:white;">Your Info</legend>

              Name
              <input type="text" name="name" required="required"/>

              Email
              <input type="email" name="email" required="required"/>

              Mobile Phone Number
              <input type="tel" name="phone" />

              Zip
              <input type="text" name="zip" maxlength="5" required="required" />

              <%= if @brand == "jd" do %>
                <button onclick="fbq('track', 'Lead'); document.querySelector('#main-form').submit();" type="submit" class="button-block"><%=@sign_button_text%></button>
              <% else %>
                <button type="submit" class="button-block"><%=@sign_button_text%></button>
              <% end %>

          </fieldset>

            By signing this petition, I consent to receiving emails from
            <%= if @slug == "jd-stop-war" do %>
              <a target="_blank" href="<%=homepage(@brand)%>"><%=copyright(@brand)%> and
              Ro Khanna.
            <% else %>
              <a target="_blank" href="<%=homepage(@brand)%>"><%=copyright(@brand)%>.
            <% end %>

      </form>

    <% else %>

        <%= raw(@post_sign_text) %>

 Next Steps

      <fieldset style="margin-top: 20px; color: white;">
        <legend style="color:white;">Help us get to <%= @target %> signatures by sharing on social media</legend>

        <a class="twitter-share-button" href="<%=@twitter_href%>" data-size="large">
          Tweet

        <div class="fb-share-button" data-href="<%=@url%>" data-layout="button_count" data-size="large" style="float:right;">
          <a class="fb-xfbml-parse-ignore" target="_blank"
            style="background-color: #3b5998; color: white; padding: 5px; text-decoration: none; margin-top: 5px;"
            href="<%=@fb_href%>"
          >
            Share on Facebook

      </fieldset>

      <%= if @call_power_campaign_id != nil and @call_power_campaign_id != "" do %>

        <fieldset style="color:white;">
          <legend> <%= @call_power_header %> </legend>

            <%= raw(@call_power_prompt) %>

          <form id="call_form">
            <input id="phone_id" type="hidden" value="<%= @submitted_phone %>"/>
            <input id="location_id" type="hidden" value="<%= @submitted_zip %>" />
            <button type="submit" style="width: 100%; margin-top: 10px;" id="call-power-go"> Call Me At <%= @submitted_phone %> </button>
          </form>

          <%= form_tag("/petition/#{@slug}", method: :post, id: "number-replace-form", style: "margin-top: 10px;") %>
            <input name="name" value="<%= @submitted_name %>" type="hidden" />
            <input name="email" value="<%= @submitted_email %>" type="hidden" />
            <input name="zip" value="<%= @submitted_zip %>" type="hidden" />

              Different Number
              <input type="tel" name="phone" />

              <button id="number-replace-button" class="button-block">Call Me at a Different Number</button>

          </form>
        </fieldset>
      <% end %>

    <% end %>

<%= if @brand == "jd" do %>

<% end %>


Use @ shorthand in views

Use @ shorthand in views

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">
    <title>RemoteRetro</title>
    <link rel="stylesheet" href="<%= static_path(@conn, "/css/semantic-ui/semantic.min.css") %>">
    <link rel="stylesheet" href="<%= static_path(@conn, "/css/app.css") %>">
  </head>

  <body class="<%= if @view_module.include_backdrop, do: "photo-backdrop" %>">
    <main role="main">
      <%= render @view_module, @view_template, assigns %>
    </main>

    <%= if @view_module.include_js do %>
      <script>
        window.userToken = "<%= @user_token %>";
        window.retroUUID = "<%= @retro_uuid %>";
      </script>
      <script src="<%= static_path(@conn, "/js/dll/dll.vendor.js") %>"></script>
      <script src="<%= static_path(@conn, "/js/app.js") %>"></script>
    <% end %>
  </body>
</html>

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">
    <title>RemoteRetro</title>
    <link rel="stylesheet" href="<%= static_path(@conn, "/css/semantic-ui/semantic.min.css") %>">
    <link rel="stylesheet" href="<%= static_path(@conn, "/css/app.css") %>">
  </head>

  <body class="<%= if @view_module.include_backdrop, do: "photo-backdrop" %>">
    <main role="main">
      <%= render @view_module, @view_template, assigns %>
    </main>

    <%= if @view_module.include_js do %>
      <script>window.userToken = "<%= assigns[:user_token] %>"</script>
      <script>window.retroUUID = "<%= assigns[:retro_uuid] %>"</script>
      <script src="<%= static_path(@conn, "/js/dll/dll.vendor.js") %>"></script>
      <script src="<%= static_path(@conn, "/js/app.js") %>"></script>
    <% end %>
  </body>
</html>


use addEventListener

use addEventListener

<div style="padding: 40px;">
  <%= raw(@content) %>
</div>

<script>

  function showHiddenContent (ev) {

    var el = document.querySelector('#vol-events');
    if (el.style.display == 'hidden') {
      el.style.display = 'block';
    } else {
      el.style.display = 'none';
    }
  }

  var button = document.querySelector('#show-events');

  if (button) {
    button.addEventListener('click', showHiddenContent);
  }

</script>

<div style="padding: 40px;">
  <%= raw(@content) %>
</div>

<script>

  function showHiddenContent (ev) {
    var el = document.querySelector('#vol-events');
    if (el.style.display == 'hidden') {
      el.style.display = 'block';
    } else {
      el.style.display = 'none';
    }
  }

  var button = document.querySelector('#show-events');

  if (button) {
    button.onlick = showHiddenContent;
  }

</script>


Created new task show page

Created new task show page

          <%= @task.name %>

        <%= if @conn.assigns.current_user.role == "Coordinator" do %>

            <%= link "Edit", to: task_path(@conn, :edit, @task),
                             class: "mdl-button mdl-js-button mdl-button--raised"
            %>

        <% end %>

        <%= CoursePlanner.SharedView.card do %>
          <%= CoursePlanner.SharedView.card_content vpadding: true do %>

Name

                    <%= @task.name %>

Start time

                    <%= String.slice NaiveDateTime.to_iso8601(@task.start_time), 0, 10 %>
                    <%= String.slice NaiveDateTime.to_iso8601(@task.start_time), 11, 5 %>

Finish time

                    <%= String.slice NaiveDateTime.to_iso8601(@task.finish_time), 0, 10 %>
                    <%= String.slice NaiveDateTime.to_iso8601(@task.finish_time), 11, 5 %>

          <% end %>
        <% end %>

            Assignee

        <% task_users = if @task.user_id do [@task.user] else [] end %>
        <%= CoursePlanner.SharedView.user_list task_users %>

Show task

     Name:
    <%= @task.name %>

     Start time:
    <%= @task.start_time %>

     Finish time:
    <%= @task.finish_time %>

     Assigned to:
    <%= task_user(@conn, @task) %>

<%= link "Edit", to: task_path(@conn, :edit, @task) %>
<%= link "Back", to: task_path(@conn, :index) %>


Remove button on board viewer

Remove button on board viewer

This does not need to be here, there is already a link on the previous page.

<%= render "_modal_keybinds.html" %>

<%= link "Finals View", to: skin_path(@conn, :show, @game), class: "btn btn-default btn-xs view-btn" %>


Doesn't display the social media card if none is there. closes #306

<%# header tag begins in parent template %>

      <img src="<%= Vutuv.Avatar.binary(@user, :medium) %>">

        <%= full_name(@user) %>
        <%= if same_user?(@user, @current_user) do %>
        <%= link to: user_path(@conn, :edit, @user), class: "profile-header__edit button button--icon button--small" do %>

        <% end %>
        <% end %>

        <%= current_title(@job) %>
        <%= if(@organization != "" and @organization) do %>
          @ <%= @organization %>
        <% end %>

        <%= if(@follower_count>0) do %>

<%= String.capitalize(@user.first_name) %> <%= gettext "has" %><%= @follower_count %> <%= gettext "followers" %>

        <% end %>
        <%= if is_visitor?(@conn, @current_user) do %>
          <%= if user_follows_user?(@current_user, @user) do %>
            <%= button to: connection_path(@conn, :delete, user_follows_user?(@current_user, @user)), method: :delete , class: "button button-link" do %>
               Unfollow
            <% end %>
          <%= else %>
            <%= button to: connection_path(@conn, :create, connection: %{follower_id: @current_user_id, followee_id: @user.id}), method: :post , class: "button button-link" do %>
               Follow
            <% end %>
          <% end %>
        <% end %>

<%= render Vutuv.LayoutView, "flash.html", assigns %>

  <%= gettext "Users" %> / <%= full_name @user %>

    <%= if same_user?(@user, @current_user) do %>
    <%= link to: user_path(@conn, :edit, @user), class: "card__edit button button--icon button--small" do %>

    <% end %>
    <% end %>

<%= gettext "Headline" %>

<%= @user.headline %>

      <%= if(@user.gender != "other" && @user.gender) do %>

<%= gettext "Gender" %>

<%= @user.gender %>

      <% end %>
      <%= if(@user.birthdate) do %>

<%= gettext "Birthday" %>

<%= @user.birthdate %>

      <% end %>

    <%= render Vutuv.SharedView, "_ad.html" %>

      <%= if same_user?(@user, @current_user) do %>
      <%= link to: user_email_path(@conn, :index, @user), class: "card__edit button button--icon button--small" do %>

      <% end %>
      <% end %>

<%= gettext "Contact" %>

<%= if (Enum.count(@emails) == 1), do: gettext("Email"), else: gettext("Emails") %>

        <%= for email <- @emails do %>

<a href="mailto:<%= email(@user) %>"><%= email.value %>

        <% end %>

<%= gettext "Vcard" %>

<%= link gettext("Download"), to: api_user_v_card_path(@conn, :get, @user) %>

    <%= if Enum.count(@user.social_media_accounts) > 0 or same_user?(@user, @current_user) do %>

        <%= if same_user?(@user, @current_user) do %>
        <%= link to: user_social_media_account_path(@conn, :index, @user), class: "card__edit button button--icon button--small" do %>

        <% end %>
        <% end %>

<%= gettext "Social Media" %>

          <%= for account <- @user.social_media_accounts do %>

<%= account.provider %>

<%= link "@#{account.value}", to: Vutuv.SocialMediaAccount.get_full_url(account) %>

          <% end %>

          <%= if same_user?(@user, @current_user) do %>
            <%= link gettext("Add"), to: user_social_media_account_path(@conn, :new, @current_user) %>
          <% end %>

    <% end %>

  <%= if Enum.count(@user_skills) > 0 or same_user?(@user, @current_user) do %>

<%= gettext "Skills" %>

    <%= if Enum.count(@user_skills) > 0 do %>
    <%= render Vutuv.UserSkillView, "card_list.html", assigns %>
    <% end %>

    <%= if same_user?(@user, @current_user) do %>
      <% #Form for easy skill entry %>
      <%= if Enum.count(@user_skills) == 0 do %>
        <%= form_for @conn, user_path(@conn, :skills_create, @user), [as: :skills, class: "editform"], fn f -> %>
          <div class="editform__field<%= if error_tag(f, :name), do: " editform__field--error"%>">
            <%= label f, :skills, gettext("Enter comma seperated skills here") %>
            <%= text_input f, :skills, placeholder: gettext("PHP, JavaScript, Tap Dancing, Origami"), autofocus: true %>
            <%= error_tag f, :skills %>

            <%= submit gettext("Add"), class: "button button--full" %>

        <% end %>
      <% end %>
    <% end %>
    <%= if Enum.count(@user_skills) > 0 do %>

        <%= if same_user?(@user, @current_user) do %>
          <%= link gettext("Add"), to: user_user_skill_path(@conn, :new, @current_user) %>
        <% end %>
        <%= if same_user?(@user, @current_user) and Enum.count(@user.user_skills) > 4 do %> | <% end %>
        <%= if Enum.count(@user.user_skills) > 4 do %>
          <%= link gettext("View All"), to: user_user_skill_path(@conn, :index, @user)%>
        <% end %>

    <% end %>

  <% end %>

  <section class="card half<%= if @follower_count == 0, do: " card--empty" %>">

<%= gettext "Followers" %>

    <%= if(@follower_count > 0) do %>

    <%= render "card_list.html", conn: @conn, users: @user.followers, current_user: @current_user, current_user_id: @current_user_id %>

    <% else %>

<%= gettext "No Followers yet!" %>

    <% end %>
    <%= if(@follower_count > 3) do %>
      <%= link "#{@followers_count-3} #{gettext "More"}", to: user_follower_path(@conn, :index, @user), class: "card__morelink" %>
    <% end %>

<%= gettext "Following" %>

    <%= if(@followee_count > 0) do %>

    <%= render "card_list.html", conn: @conn, users: @user.followees, current_user: @current_user, current_user_id: @current_user_id %>

    <% else %>

<%= gettext "Not following anyone yet!" %>

    <% end %>
    <%= if(@followee_count > 3) do %>
      <%= link "#{@followee_count-3} #{gettext "More"}", to: user_followee_path(@conn, :index, @user), class: "card__morelink" %>
    <% end %>

    <%= if @total_jobs > 0 or same_user?(@user, @current_user) do %>

<%= gettext "Experience" %>

    <%= if @total_jobs > 0 do %>
    <%= render Vutuv.WorkExperienceView, "card_list.html", assigns %>

    <% else %>

    <% end %>

      <%= if same_user?(@user, @current_user) do %>
        <%= link gettext("Add"), to: user_work_experience_path(@conn, :new, @current_user) %>
      <% end %>
      <%= if same_user?(@user, @current_user) and @total_jobs>3 do %> | <% end %>
      <%= if @total_jobs>3 do %>
        <%= link gettext("View All"), to: user_work_experience_path(@conn, :index, @user) %>
      <% end %>

  <% end %>

  <%= if @total_numbers > 0 or same_user?(@user, @current_user) do %>

<%= gettext "Phone Numbers" %>

    <%= if @total_numbers > 0 do %>
    <%= render Vutuv.PhoneNumberView, "card_list.html", phone_numbers: @user.phone_numbers, user: @user, conn: @conn, current_user: @current_user %>
    <% end %>

      <%= if same_user?(@user, @current_user) do %>
        <%= link gettext("Add"), to: user_phone_number_path(@conn, :new, @current_user) %>
      <% end %>
      <%= if same_user?(@user, @current_user) and @total_numbers > 3 do %> | <% end %>
      <%= if @total_numbers>3 do %>
        <%= link gettext("View All"), to: user_phone_number_path(@conn, :index, @user) %>
      <% end %>

  <% end %>

  <%= if @total_links > 0 or same_user?(@user, @current_user) do %>

<%= gettext "Links" %>

    <%= if @total_links > 0 do %>
    <%= render Vutuv.UrlView, "card_list.html", urls: @user.urls, user: @user, conn: @conn, current_user: @current_user %>
    <% end %>

      <%= if same_user?(@user, @current_user) do %>
        <%= link gettext("Add"), to: user_url_path(@conn, :new, @current_user) %>
      <% end %>
      <%= if same_user?(@user, @current_user) and @total_links > 3 do %> | <% end %>
      <%= if @total_links>3 do %>
        <%= link gettext("View All"), to: user_url_path(@conn, :index, @user) %>
      <% end %>

  <% end %>

  <%= if @total_addresses > 0 or same_user?(@user, @current_user) do %>

<%= gettext "Addresses" %>

    <%= if @total_addresses > 0 do %>
    <%= render Vutuv.AddressView, "card_list.html", addresses: @user.addresses, user: @user, conn: @conn, current_user: @current_user %>
    <% end %>

      <%= if same_user?(@user, @current_user) do %>
        <%= link gettext("Add"), to: user_address_path(@conn, :new, @current_user) %>
      <% end %>
      <%= if same_user?(@user, @current_user) and @total_addresses > 3 do %> | <% end %>
      <%= if @total_addresses>3 do %>
        <%= link gettext("View All"), to: user_address_path(@conn, :index, @user) %>
      <% end %>

  <% end %>

<%# header tag begins in parent template %>

      <img src="<%= Vutuv.Avatar.binary(@user, :medium) %>">

        <%= full_name(@user) %>
        <%= if same_user?(@user, @current_user) do %>
        <%= link to: user_path(@conn, :edit, @user), class: "profile-header__edit button button--icon button--small" do %>

        <% end %>
        <% end %>

        <%= current_title(@job) %>
        <%= if(@organization != "" and @organization) do %>
          @ <%= @organization %>
        <% end %>

        <%= if(@follower_count>0) do %>

<%= String.capitalize(@user.first_name) %> <%= gettext "has" %><%= @follower_count %> <%= gettext "followers" %>

        <% end %>
        <%= if is_visitor?(@conn, @current_user) do %>
          <%= if user_follows_user?(@current_user, @user) do %>
            <%= button to: connection_path(@conn, :delete, user_follows_user?(@current_user, @user)), method: :delete , class: "button button-link" do %>
               Unfollow
            <% end %>
          <%= else %>
            <%= button to: connection_path(@conn, :create, connection: %{follower_id: @current_user_id, followee_id: @user.id}), method: :post , class: "button button-link" do %>
               Follow
            <% end %>
          <% end %>
        <% end %>

<%= render Vutuv.LayoutView, "flash.html", assigns %>

  <%= gettext "Users" %> / <%= full_name @user %>

    <%= if same_user?(@user, @current_user) do %>
    <%= link to: user_path(@conn, :edit, @user), class: "card__edit button button--icon button--small" do %>

    <% end %>
    <% end %>

<%= gettext "Headline" %>

<%= @user.headline %>

      <%= if(@user.gender != "other" && @user.gender) do %>

<%= gettext "Gender" %>

<%= @user.gender %>

      <% end %>
      <%= if(@user.birthdate) do %>

<%= gettext "Birthday" %>

<%= @user.birthdate %>

      <% end %>

    <%= render Vutuv.SharedView, "_ad.html" %>

      <%= if same_user?(@user, @current_user) do %>
      <%= link to: user_email_path(@conn, :index, @user), class: "card__edit button button--icon button--small" do %>

      <% end %>
      <% end %>

<%= gettext "Contact" %>

<%= if (Enum.count(@emails) == 1), do: gettext("Email"), else: gettext("Emails") %>

        <%= for email <- @emails do %>

<a href="mailto:<%= email(@user) %>"><%= email.value %>

        <% end %>

<%= gettext "Vcard" %>

<%= link gettext("Download"), to: api_user_v_card_path(@conn, :get, @user) %>

      <%= if same_user?(@user, @current_user) do %>
      <%= link to: user_social_media_account_path(@conn, :index, @user), class: "card__edit button button--icon button--small" do %>

      <% end %>
      <% end %>

<%= gettext "Social Media" %>

        <%= for account <- @user.social_media_accounts do %>

<%= account.provider %>

<%= link "@#{account.value}", to: Vutuv.SocialMediaAccount.get_full_url(account) %>

        <% end %>

        <%= if same_user?(@user, @current_user) do %>
          <%= link gettext("Add"), to: user_social_media_account_path(@conn, :new, @current_user) %>
        <% end %>

  <%= if Enum.count(@user_skills) > 0 or same_user?(@user, @current_user) do %>

<%= gettext "Skills" %>

    <%= if Enum.count(@user_skills) > 0 do %>
    <%= render Vutuv.UserSkillView, "card_list.html", assigns %>
    <% end %>

    <%= if same_user?(@user, @current_user) do %>
      <% #Form for easy skill entry %>
      <%= if Enum.count(@user_skills) == 0 do %>
        <%= form_for @conn, user_path(@conn, :skills_create, @user), [as: :skills, class: "editform"], fn f -> %>
          <div class="editform__field<%= if error_tag(f, :name), do: " editform__field--error"%>">
            <%= label f, :skills, gettext("Enter comma seperated skills here") %>
            <%= text_input f, :skills, placeholder: gettext("PHP, JavaScript, Tap Dancing, Origami"), autofocus: true %>
            <%= error_tag f, :skills %>

            <%= submit gettext("Add"), class: "button button--full" %>

        <% end %>
      <% end %>
    <% end %>
    <%= if Enum.count(@user_skills) > 0 do %>

        <%= if same_user?(@user, @current_user) do %>
          <%= link gettext("Add"), to: user_user_skill_path(@conn, :new, @current_user) %>
        <% end %>
        <%= if same_user?(@user, @current_user) and Enum.count(@user.user_skills) > 4 do %> | <% end %>
        <%= if Enum.count(@user.user_skills) > 4 do %>
          <%= link gettext("View All"), to: user_user_skill_path(@conn, :index, @user)%>
        <% end %>

    <% end %>

  <% end %>

  <section class="card half<%= if @follower_count == 0, do: " card--empty" %>">

<%= gettext "Followers" %>

    <%= if(@follower_count > 0) do %>

    <%= render "card_list.html", conn: @conn, users: @user.followers, current_user: @current_user, current_user_id: @current_user_id %>

    <% else %>

<%= gettext "No Followers yet!" %>

    <% end %>
    <%= if(@follower_count > 3) do %>
      <%= link "#{@followers_count-3} #{gettext "More"}", to: user_follower_path(@conn, :index, @user), class: "card__morelink" %>
    <% end %>

<%= gettext "Following" %>

    <%= if(@followee_count > 0) do %>

    <%= render "card_list.html", conn: @conn, users: @user.followees, current_user: @current_user, current_user_id: @current_user_id %>

    <% else %>

<%= gettext "Not following anyone yet!" %>

    <% end %>
    <%= if(@followee_count > 3) do %>
      <%= link "#{@followee_count-3} #{gettext "More"}", to: user_followee_path(@conn, :index, @user), class: "card__morelink" %>
    <% end %>

    <%= if @total_jobs > 0 or same_user?(@user, @current_user) do %>

<%= gettext "Experience" %>

    <%= if @total_jobs > 0 do %>
    <%= render Vutuv.WorkExperienceView, "card_list.html", assigns %>

    <% else %>

    <% end %>

      <%= if same_user?(@user, @current_user) do %>
        <%= link gettext("Add"), to: user_work_experience_path(@conn, :new, @current_user) %>
      <% end %>
      <%= if same_user?(@user, @current_user) and @total_jobs>3 do %> | <% end %>
      <%= if @total_jobs>3 do %>
        <%= link gettext("View All"), to: user_work_experience_path(@conn, :index, @user) %>
      <% end %>

  <% end %>

  <%= if @total_numbers > 0 or same_user?(@user, @current_user) do %>

<%= gettext "Phone Numbers" %>

    <%= if @total_numbers > 0 do %>
    <%= render Vutuv.PhoneNumberView, "card_list.html", phone_numbers: @user.phone_numbers, user: @user, conn: @conn, current_user: @current_user %>
    <% end %>

      <%= if same_user?(@user, @current_user) do %>
        <%= link gettext("Add"), to: user_phone_number_path(@conn, :new, @current_user) %>
      <% end %>
      <%= if same_user?(@user, @current_user) and @total_numbers > 3 do %> | <% end %>
      <%= if @total_numbers>3 do %>
        <%= link gettext("View All"), to: user_phone_number_path(@conn, :index, @user) %>
      <% end %>

  <% end %>

  <%= if @total_links > 0 or same_user?(@user, @current_user) do %>

<%= gettext "Links" %>

    <%= if @total_links > 0 do %>
    <%= render Vutuv.UrlView, "card_list.html", urls: @user.urls, user: @user, conn: @conn, current_user: @current_user %>
    <% end %>

      <%= if same_user?(@user, @current_user) do %>
        <%= link gettext("Add"), to: user_url_path(@conn, :new, @current_user) %>
      <% end %>
      <%= if same_user?(@user, @current_user) and @total_links > 3 do %> | <% end %>
      <%= if @total_links>3 do %>
        <%= link gettext("View All"), to: user_url_path(@conn, :index, @user) %>
      <% end %>

  <% end %>

  <%= if @total_addresses > 0 or same_user?(@user, @current_user) do %>

<%= gettext "Addresses" %>

    <%= if @total_addresses > 0 do %>
    <%= render Vutuv.AddressView, "card_list.html", addresses: @user.addresses, user: @user, conn: @conn, current_user: @current_user %>
    <% end %>

      <%= if same_user?(@user, @current_user) do %>
        <%= link gettext("Add"), to: user_address_path(@conn, :new, @current_user) %>
      <% end %>
      <%= if same_user?(@user, @current_user) and @total_addresses > 3 do %> | <% end %>
      <%= if @total_addresses>3 do %>
        <%= link gettext("View All"), to: user_address_path(@conn, :index, @user) %>
      <% end %>

  <% end %>


Increase the length of work_information_string to 50 in the header.

<%# header tag begins in parent template %>
  <div class="profile-header<%= if @user.verified, do: " profile-header--verified" %>">

      <img src="<%= Vutuv.Avatar.binary(@user, :medium) %>">

        <%= full_name(@user) %>
        <%= if !@user.verified and admin_visitor?(@conn) do %>
          <%= button to: admin_user_path(@conn, :update, user_id: @user.id), class: "button button--icon navigation__icon", form: [class: "button button--icon"], method: "post" do %>
            <i title="<%= gettext("Verify") %>" class="icon icon--lock">
          <% end %>
        <% end %>
        <%= if same_user?(@user, @current_user) do %>
        <%= link to: user_path(@conn, :edit, @user), class: "profile-header__edit button button--icon button--small" do %>

        <% end %>
        <% end %>

        <%= work_information_string(@user, 50) %>

    <%= if @user.verified do %>
      Verified profile
    <% end %>

        <%= if(@follower_count>0) do %>

<%= short_name(@user) %> <%= gettext "has" %><%= @follower_count %> <%= gettext "followers" %>

        <% end %>
        <%= if is_visitor?(@conn, @current_user) do %>
          <%= if user_follows_user?(@current_user, @user) do %>
            <%= button to: connection_path(@conn, :delete, user_follows_user?(@current_user, @user)), method: :delete , class: "button button-link button--unfollow", form: [class: "button--unfollow"] do %>
               Unfollow
            <% end %>
          <%= else %>
            <%= button to: connection_path(@conn, :create, connection: %{follower_id: @current_user_id, followee_id: @user.id}), method: :post , class: "button button-link", form: [class: "button--slim"] do %>
               Follow
            <% end %>
          <% end %>
        <% end %>

<%= render Vutuv.LayoutView, "flash.html", assigns %>

  <%= gettext "Users" %> / <%= full_name @user %>

  <%= if @display_welcome_message do %>
    <%= if same_user?(@user, @current_user) do %>
      <%= if Enum.count(@user_skills) == 0 do %>

<%= gettext "Your New vutuv Profile Page" %>

            <%= gettext "Please take a couple of minutes to add information that might be interesting for your future followers. Why don't you start with your skills and work experiences?" %>

      <% end %>
    <% end %>
  <% end %>

  <%= if Enum.count(@user_skills) > 0 or same_user?(@user, @current_user) do %>

<%= gettext "Skills" %>

    <%= if Enum.count(@user_skills) > 0 do %>
    <%= render Vutuv.UserSkillView, "card_list.html", assigns %>
    <% end %>

    <%= if same_user?(@user, @current_user) do %>
      <% #Form for easy skill entry %>
      <%= if Enum.count(@user_skills) == 0 do %>
        <%= form_for @conn, user_path(@conn, :skills_create, @user), [as: :skills, class: "editform"], fn f -> %>
          <div class="editform__field<%= if error_tag(f, :name), do: " editform__field--error"%>">
            <%= label f, :skills, gettext("Enter comma separated skills here") %>
            <%= text_input f, :skills, placeholder: gettext("PHP, JavaScript, Tap Dancing, Origami"), autofocus: true %>
            <%= error_tag f, :skills %>

            <%= submit gettext("Add"), class: "button button--full" %>

        <% end %>
      <% end %>
    <% end %>
    <%= if Enum.count(@user_skills) > 0 do %>

        <%= if same_user?(@user, @current_user) do %>
          <%= link gettext("Add"), to: user_user_skill_path(@conn, :new, @current_user) %>
        <% end %>
        <%= if same_user?(@user, @current_user) and Enum.count(@user.user_skills) > 4 do %> | <% end %>
        <%= if Enum.count(@user.user_skills) > 4 do %>
          <%= link gettext("View All"), to: user_user_skill_path(@conn, :index, @user)%>
        <% end %>

    <% end %>

  <% end %>

    <%= render Vutuv.SharedView, "_ad.html" %>

    <%= if(Enum.count(@emails) > 0 or same_user?(@user, @current_user)) do %>

      <%= if same_user?(@user, @current_user) do %>
      <%= link to: user_email_path(@conn, :index, @user), class: "card__edit button button--icon button--small" do %>

      <% end %>
      <% end %>

<%= gettext "Contact" %>

      <%= if(Enum.count(@emails) > 0) do %>

<%= if (Enum.count(@emails) == 1), do: gettext("Email"), else: gettext("Emails") %>

        <%= for email <- @emails do %>

<a href="mailto:<%= email.value %>"><%= email.value %>

        <% end %>

      <% end %>

        <%= if same_user?(@user, @current_user) do %>
          <%= link gettext("Add"), to: user_email_path(@conn, :new, @current_user) %>
        <% end %>

    <% end %>

    <%= if(@user.headline || @user.birthdate || same_user?(@user, @current_user)) do %>

        <%= if same_user?(@user, @current_user) do %>
        <%= link to: user_path(@conn, :edit, @user), class: "card__edit button button--icon button--small" do %>

        <% end %>
        <% end %>

<%= gettext "General Info" %>

        <%= if @user.headline || same_user?(@user, @current_user) do %>

<%= @user.headline %>

        <% end %>

          <%= if(@user.gender != "other" && @user.gender) do %>

<%= gettext "Gender" %>

<%= Vutuv.User.gender_gettext(@user.gender) %>

          <% end %>
          <%= if(@user.birthdate) do %>

<%= gettext "Birthday" %>

<%= format_birthdate(@user) %>

          <% end %>

    <% end %>

    <%= if Enum.count(@user.social_media_accounts) > 0 or same_user?(@user, @current_user) do %>

        <%= if same_user?(@user, @current_user) do %>
        <%= link to: user_social_media_account_path(@conn, :index, @user), class: "card__edit button button--icon button--small" do %>

        <% end %>
        <% end %>

<%= gettext "Social Media" %>

        <%= for account <- @user.social_media_accounts do %>

<%= account.provider %>

<%= Vutuv.SocialMediaAccount.social_media_link account %>

        <% end %>

          <%= if same_user?(@user, @current_user) do %>
            <%= link gettext("Add"), to: user_social_media_account_path(@conn, :new, @current_user) %>
          <% end %>

    <% end %>

<%= gettext "Exports" %>

<%= gettext "Vcard" %>

<%= link gettext("Download"), to: api_user_v_card_path(@conn, :get, @user) %>

  <section class="card half<%= if @follower_count == 0, do: " card--empty" %>">

<%= gettext "Followers" %>

    <%= if(@follower_count > 0) do %>

    <%= render "card_list.html", conn: @conn, users: @user.followers, current_user: @current_user, current_user_id: @current_user_id, work_string_length: 20 %>

    <% else %>

<%= gettext "No Followers yet!" %>

    <% end %>
    <%= if(@follower_count > 3) do %>
      <%= link "#{@follower_count-3} #{gettext "More"}", to: user_follower_path(@conn, :index, @user), class: "card__morelink" %>
    <% end %>

<%= gettext "Following" %>

    <%= if(@followee_count > 0) do %>

    <%= render "card_list.html", conn: @conn, users: @user.followees, current_user: @current_user, current_user_id: @current_user_id, work_string_length: 20 %>

    <% else %>

<%= gettext "Not following anyone yet!" %>

    <% end %>
    <%= if(@followee_count > 3) do %>
      <%= link "#{@followee_count-3} #{gettext "More"}", to: user_followee_path(@conn, :index, @user), class: "card__morelink" %>
    <% end %>

    <%= if @total_jobs > 0 or same_user?(@user, @current_user) do %>

<%= gettext "Experience" %>

    <%= if @total_jobs > 0 do %>
    <%= render Vutuv.WorkExperienceView, "card_list.html", assigns %>

    <% else %>

    <% end %>

      <%= if same_user?(@user, @current_user) do %>
        <%= link gettext("Add"), to: user_work_experience_path(@conn, :new, @current_user) %>
      <% end %>
      <%= if same_user?(@user, @current_user) and @total_jobs > 5 do %> | <% end %>
      <%= if @total_jobs > 5 do %>
        <%= link gettext("View All"), to: user_work_experience_path(@conn, :index, @user) %>
      <% end %>

  <% end %>

  <%= if @total_numbers > 0 or same_user?(@user, @current_user) do %>

<%= gettext "Phone Numbers" %>

    <%= if @total_numbers > 0 do %>
    <%= render Vutuv.PhoneNumberView, "card_list.html", phone_numbers: @user.phone_numbers, user: @user, conn: @conn, current_user: @current_user %>
    <% end %>

      <%= if same_user?(@user, @current_user) do %>
        <%= link gettext("Add"), to: user_phone_number_path(@conn, :new, @current_user) %>
      <% end %>
      <%= if same_user?(@user, @current_user) and @total_numbers > 5 do %> | <% end %>
      <%= if @total_numbers > 5 do %>
        <%= link gettext("View All"), to: user_phone_number_path(@conn, :index, @user) %>
      <% end %>

  <% end %>

  <%= if @total_links > 0 or same_user?(@user, @current_user) do %>

<%= gettext "Links" %>

    <%= if @total_links > 0 do %>
    <%= render Vutuv.UrlView, "card_list.html", urls: @user.urls, user: @user, conn: @conn, current_user: @current_user %>
    <% end %>

      <%= if same_user?(@user, @current_user) do %>
        <%= link gettext("Add"), to: user_url_path(@conn, :new, @current_user) %>
      <% end %>
      <%= if same_user?(@user, @current_user) and @total_links > 5 do %> | <% end %>
      <%= if @total_links > 5 do %>
        <%= link gettext("View All"), to: user_url_path(@conn, :index, @user) %>
      <% end %>

  <% end %>

  <%= if @total_addresses > 0 or same_user?(@user, @current_user) do %>

<%= gettext "Addresses" %>

    <%= if @total_addresses > 0 do %>
    <%= render Vutuv.AddressView, "card_list.html", addresses: @user.addresses, user: @user, conn: @conn, current_user: @current_user %>
    <% end %>

      <%= if same_user?(@user, @current_user) do %>
        <%= link gettext("Add"), to: user_address_path(@conn, :new, @current_user) %>
      <% end %>
      <%= if same_user?(@user, @current_user) and @total_addresses > 5 do %> | <% end %>
      <%= if @total_addresses > 5 do %>
        <%= link gettext("View All"), to: user_address_path(@conn, :index, @user) %>
      <% end %>

  <% end %>

<%# header tag begins in parent template %>
  <div class="profile-header<%= if @user.verified, do: " profile-header--verified" %>">

      <img src="<%= Vutuv.Avatar.binary(@user, :medium) %>">

        <%= full_name(@user) %>
        <%= if !@user.verified and admin_visitor?(@conn) do %>
          <%= button to: admin_user_path(@conn, :update, user_id: @user.id), class: "button button--icon navigation__icon", form: [class: "button button--icon"], method: "post" do %>
            <i title="<%= gettext("Verify") %>" class="icon icon--lock">
          <% end %>
        <% end %>
        <%= if same_user?(@user, @current_user) do %>
        <%= link to: user_path(@conn, :edit, @user), class: "profile-header__edit button button--icon button--small" do %>

        <% end %>
        <% end %>

        <%= work_information_string(@user, 30) %>

    <%= if @user.verified do %>
      Verified profile
    <% end %>

        <%= if(@follower_count>0) do %>

<%= short_name(@user) %> <%= gettext "has" %><%= @follower_count %> <%= gettext "followers" %>

        <% end %>
        <%= if is_visitor?(@conn, @current_user) do %>
          <%= if user_follows_user?(@current_user, @user) do %>
            <%= button to: connection_path(@conn, :delete, user_follows_user?(@current_user, @user)), method: :delete , class: "button button-link button--unfollow", form: [class: "button--unfollow"] do %>
               Unfollow
            <% end %>
          <%= else %>
            <%= button to: connection_path(@conn, :create, connection: %{follower_id: @current_user_id, followee_id: @user.id}), method: :post , class: "button button-link", form: [class: "button--slim"] do %>
               Follow
            <% end %>
          <% end %>
        <% end %>

<%= render Vutuv.LayoutView, "flash.html", assigns %>

  <%= gettext "Users" %> / <%= full_name @user %>

  <%= if @display_welcome_message do %>
    <%= if same_user?(@user, @current_user) do %>
      <%= if Enum.count(@user_skills) == 0 do %>

<%= gettext "Your New vutuv Profile Page" %>

            <%= gettext "Please take a couple of minutes to add information that might be interesting for your future followers. Why don't you start with your skills and work experiences?" %>

      <% end %>
    <% end %>
  <% end %>

  <%= if Enum.count(@user_skills) > 0 or same_user?(@user, @current_user) do %>

<%= gettext "Skills" %>

    <%= if Enum.count(@user_skills) > 0 do %>
    <%= render Vutuv.UserSkillView, "card_list.html", assigns %>
    <% end %>

    <%= if same_user?(@user, @current_user) do %>
      <% #Form for easy skill entry %>
      <%= if Enum.count(@user_skills) == 0 do %>
        <%= form_for @conn, user_path(@conn, :skills_create, @user), [as: :skills, class: "editform"], fn f -> %>
          <div class="editform__field<%= if error_tag(f, :name), do: " editform__field--error"%>">
            <%= label f, :skills, gettext("Enter comma separated skills here") %>
            <%= text_input f, :skills, placeholder: gettext("PHP, JavaScript, Tap Dancing, Origami"), autofocus: true %>
            <%= error_tag f, :skills %>

            <%= submit gettext("Add"), class: "button button--full" %>

        <% end %>
      <% end %>
    <% end %>
    <%= if Enum.count(@user_skills) > 0 do %>

        <%= if same_user?(@user, @current_user) do %>
          <%= link gettext("Add"), to: user_user_skill_path(@conn, :new, @current_user) %>
        <% end %>
        <%= if same_user?(@user, @current_user) and Enum.count(@user.user_skills) > 4 do %> | <% end %>
        <%= if Enum.count(@user.user_skills) > 4 do %>
          <%= link gettext("View All"), to: user_user_skill_path(@conn, :index, @user)%>
        <% end %>

    <% end %>

  <% end %>

    <%= render Vutuv.SharedView, "_ad.html" %>

    <%= if(Enum.count(@emails) > 0 or same_user?(@user, @current_user)) do %>

      <%= if same_user?(@user, @current_user) do %>
      <%= link to: user_email_path(@conn, :index, @user), class: "card__edit button button--icon button--small" do %>

      <% end %>
      <% end %>

<%= gettext "Contact" %>

      <%= if(Enum.count(@emails) > 0) do %>

<%= if (Enum.count(@emails) == 1), do: gettext("Email"), else: gettext("Emails") %>

        <%= for email <- @emails do %>

<a href="mailto:<%= email.value %>"><%= email.value %>

        <% end %>

      <% end %>

        <%= if same_user?(@user, @current_user) do %>
          <%= link gettext("Add"), to: user_email_path(@conn, :new, @current_user) %>
        <% end %>

    <% end %>

    <%= if(@user.headline || @user.birthdate || same_user?(@user, @current_user)) do %>

        <%= if same_user?(@user, @current_user) do %>
        <%= link to: user_path(@conn, :edit, @user), class: "card__edit button button--icon button--small" do %>

        <% end %>
        <% end %>

<%= gettext "General Info" %>

        <%= if @user.headline || same_user?(@user, @current_user) do %>

<%= @user.headline %>

        <% end %>

          <%= if(@user.gender != "other" && @user.gender) do %>

<%= gettext "Gender" %>

<%= Vutuv.User.gender_gettext(@user.gender) %>

          <% end %>
          <%= if(@user.birthdate) do %>

<%= gettext "Birthday" %>

<%= format_birthdate(@user) %>

          <% end %>

    <% end %>

    <%= if Enum.count(@user.social_media_accounts) > 0 or same_user?(@user, @current_user) do %>

        <%= if same_user?(@user, @current_user) do %>
        <%= link to: user_social_media_account_path(@conn, :index, @user), class: "card__edit button button--icon button--small" do %>

        <% end %>
        <% end %>

<%= gettext "Social Media" %>

        <%= for account <- @user.social_media_accounts do %>

<%= account.provider %>

<%= Vutuv.SocialMediaAccount.social_media_link account %>

        <% end %>

          <%= if same_user?(@user, @current_user) do %>
            <%= link gettext("Add"), to: user_social_media_account_path(@conn, :new, @current_user) %>
          <% end %>

    <% end %>

<%= gettext "Exports" %>

<%= gettext "Vcard" %>

<%= link gettext("Download"), to: api_user_v_card_path(@conn, :get, @user) %>

  <section class="card half<%= if @follower_count == 0, do: " card--empty" %>">

<%= gettext "Followers" %>

    <%= if(@follower_count > 0) do %>

    <%= render "card_list.html", conn: @conn, users: @user.followers, current_user: @current_user, current_user_id: @current_user_id, work_string_length: 20 %>

    <% else %>

<%= gettext "No Followers yet!" %>

    <% end %>
    <%= if(@follower_count > 3) do %>
      <%= link "#{@follower_count-3} #{gettext "More"}", to: user_follower_path(@conn, :index, @user), class: "card__morelink" %>
    <% end %>

<%= gettext "Following" %>

    <%= if(@followee_count > 0) do %>

    <%= render "card_list.html", conn: @conn, users: @user.followees, current_user: @current_user, current_user_id: @current_user_id, work_string_length: 20 %>

    <% else %>

<%= gettext "Not following anyone yet!" %>

    <% end %>
    <%= if(@followee_count > 3) do %>
      <%= link "#{@followee_count-3} #{gettext "More"}", to: user_followee_path(@conn, :index, @user), class: "card__morelink" %>
    <% end %>

    <%= if @total_jobs > 0 or same_user?(@user, @current_user) do %>

<%= gettext "Experience" %>

    <%= if @total_jobs > 0 do %>
    <%= render Vutuv.WorkExperienceView, "card_list.html", assigns %>

    <% else %>

    <% end %>

      <%= if same_user?(@user, @current_user) do %>
        <%= link gettext("Add"), to: user_work_experience_path(@conn, :new, @current_user) %>
      <% end %>
      <%= if same_user?(@user, @current_user) and @total_jobs > 5 do %> | <% end %>
      <%= if @total_jobs > 5 do %>
        <%= link gettext("View All"), to: user_work_experience_path(@conn, :index, @user) %>
      <% end %>

  <% end %>

  <%= if @total_numbers > 0 or same_user?(@user, @current_user) do %>

<%= gettext "Phone Numbers" %>

    <%= if @total_numbers > 0 do %>
    <%= render Vutuv.PhoneNumberView, "card_list.html", phone_numbers: @user.phone_numbers, user: @user, conn: @conn, current_user: @current_user %>
    <% end %>

      <%= if same_user?(@user, @current_user) do %>
        <%= link gettext("Add"), to: user_phone_number_path(@conn, :new, @current_user) %>
      <% end %>
      <%= if same_user?(@user, @current_user) and @total_numbers > 5 do %> | <% end %>
      <%= if @total_numbers > 5 do %>
        <%= link gettext("View All"), to: user_phone_number_path(@conn, :index, @user) %>
      <% end %>

  <% end %>

  <%= if @total_links > 0 or same_user?(@user, @current_user) do %>

<%= gettext "Links" %>

    <%= if @total_links > 0 do %>
    <%= render Vutuv.UrlView, "card_list.html", urls: @user.urls, user: @user, conn: @conn, current_user: @current_user %>
    <% end %>

      <%= if same_user?(@user, @current_user) do %>
        <%= link gettext("Add"), to: user_url_path(@conn, :new, @current_user) %>
      <% end %>
      <%= if same_user?(@user, @current_user) and @total_links > 5 do %> | <% end %>
      <%= if @total_links > 5 do %>
        <%= link gettext("View All"), to: user_url_path(@conn, :index, @user) %>
      <% end %>

  <% end %>

  <%= if @total_addresses > 0 or same_user?(@user, @current_user) do %>

<%= gettext "Addresses" %>

    <%= if @total_addresses > 0 do %>
    <%= render Vutuv.AddressView, "card_list.html", addresses: @user.addresses, user: @user, conn: @conn, current_user: @current_user %>
    <% end %>

      <%= if same_user?(@user, @current_user) do %>
        <%= link gettext("Add"), to: user_address_path(@conn, :new, @current_user) %>
      <% end %>
      <%= if same_user?(@user, @current_user) and @total_addresses > 5 do %> | <% end %>
      <%= if @total_addresses > 5 do %>
        <%= link gettext("View All"), to: user_address_path(@conn, :index, @user) %>
      <% end %>

  <% end %>


Index lists matching pids for running games.

Listing games

<%= for game <- @games do %>

        <%= game.id %>

        <%= inspect BattleSnake.GameServer.Registry.lookup to_string game.id %>

        <%= link "Show", to: game_path(@conn, :show, game), class: "btn btn-default btn-xs" %>
        <%= link "Edit", to: game_path(@conn, :edit, game), class: "btn btn-default btn-xs" %>
        <%= link "Delete", to: game_path(@conn, :delete, game), method: :delete, data: [confirm: "Are you sure?"], class: "btn btn-danger btn-xs" %>

<% end %>

<%= link "New game", to: game_path(@conn, :new) %>

Listing games

<%= for game <- @games do %>

        <%= game.id %>

        <%= link "Show", to: game_path(@conn, :show, game), class: "btn btn-default btn-xs" %>
        <%= link "Edit", to: game_path(@conn, :edit, game), class: "btn btn-default btn-xs" %>
        <%= link "Delete", to: game_path(@conn, :delete, game), method: :delete, data: [confirm: "Are you sure?"], class: "btn btn-danger btn-xs" %>

<% end %>

<%= link "New game", to: game_path(@conn, :new) %>


Adding a link to the blog.

Adding a link to the blog.

Mat Time

by Couchjitsu

How many hours have you put in this month? This year? Quit wondering and start tracking. Mat Time will let you enter your mat time how you want. Every time you go to class, enter what type of class it was (e.g. technique, sparring, competition, conditioning) and Mat Time will tell you how many times you've been to that class this month and this year.

Sign In

Track

Get Better

    If this site looks a little different, read about it in the latest blog post.


Fix indentation at layout (#40)

Fix indentation at layout (#40)

* Fix indentation at layout

* Change quotes to double quotes for consistency

<!DOCTYPE html>
<html lang="en">
  <head>
    <title>Dashboard</title>

    <meta charset="utf-8"/>
    <meta name="description" content="">
    <meta name="viewport" content="width=device-width">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <link rel="icon" href="/assets/favicon.ico">
    <link href="//fonts.googleapis.com/css?family=Open+Sans:300,400,600,700" rel="stylesheet" type="text/css">
  </head>

  <body>
    <div id="container">
      <%= template %>
    </div>

    <script type="text/javascript" src="/assets/application.js"></script>
    <script type="text/javascript" src="/assets/widgets.js"></script>
  </body>
</html>

<!DOCTYPE html>
<html lang="en">
<head>
  <title>Dashboard</title>

  <meta charset="utf-8"/>
  <meta name="description" content="">
  <meta name="viewport" content="width=device-width">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <link rel="icon" href="/assets/favicon.ico">
  <link href='//fonts.googleapis.com/css?family=Open+Sans:300,400,600,700' rel='stylesheet' type='text/css'>

</head>
  <body>
    <div id="container">
      <%= template %>
    </div>

    <script type="text/javascript" src="/assets/application.js"></script>
    <script type="text/javascript" src="/assets/widgets.js"></script>
  </body>
</html>


Add a simple Log out button onto nav header

<!DOCTYPE html>

    <%= if Application.get_env(:remote_retro, :env) == :prod do %>

    <% else %>

    <% end %>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="A real-time application for conducting Agile retrospectives">
    <meta name="google-site-verification" content="T5W8sjrjt-BmTK5SYTjPM-FQZD8oGNatTNAJSyRex7o" />
    <meta name="author" content="">
    <title>RemoteRetro</title>

    <link rel="preload" href="<%= static_path(@conn, "/css/semantic-ui/font/lato-v14-latin-regular.woff2") %>" as="font" crossorigin="anonymous" />
    <link rel="preload" href="<%= static_path(@conn, "/css/semantic-ui/themes/default/assets/fonts/icons.woff2") %>" as="font" crossorigin="anonymous" />
    <link rel="stylesheet" href="<%= static_path(@conn, "/css/semantic-ui/semantic.min.css") %>">
    <link rel="stylesheet" href="<%= app_css(@conn) %>">

    <%= if Application.get_env(:remote_retro, :env) == :test do %>

    <% end %>

  <body class="<%= if assigns[:is_landing_page], do: "landing-page" %>">

    <%= unless assigns[:omit_header] do %>

RemoteRetro

          <button class="ui blue button">
            Log Out
          </button>

Built by

<img src="<%= static_path(@conn, "/images/stride_logo.png") %>" alt="Stride" />

    <% end %>
      <%= render @view_module, @view_template, assigns %>

    <%= if assigns[:include_js] do %>

    <% end %>

<!DOCTYPE html>

    <%= if Application.get_env(:remote_retro, :env) == :prod do %>

    <% else %>

    <% end %>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="A real-time application for conducting Agile retrospectives">
    <meta name="google-site-verification" content="T5W8sjrjt-BmTK5SYTjPM-FQZD8oGNatTNAJSyRex7o" />
    <meta name="author" content="">
    <title>RemoteRetro</title>

    <link rel="preload" href="<%= static_path(@conn, "/css/semantic-ui/font/lato-v14-latin-regular.woff2") %>" as="font" crossorigin="anonymous" />
    <link rel="preload" href="<%= static_path(@conn, "/css/semantic-ui/themes/default/assets/fonts/icons.woff2") %>" as="font" crossorigin="anonymous" />
    <link rel="stylesheet" href="<%= static_path(@conn, "/css/semantic-ui/semantic.min.css") %>">
    <link rel="stylesheet" href="<%= app_css(@conn) %>">

    <%= if Application.get_env(:remote_retro, :env) == :test do %>

    <% end %>

  <body class="<%= if assigns[:is_landing_page], do: "landing-page" %>">

    <%= unless assigns[:omit_header] do %>

RemoteRetro

Built by

<img src="<%= static_path(@conn, "/images/stride_logo.png") %>" alt="Stride" />

    <% end %>
      <%= render @view_module, @view_template, assigns %>

    <%= if assigns[:include_js] do %>

    <% end %>


Remove line about help from jose...

Remove line about help from jose...

<%= form_for @changeset, @action, fn f -> %>
  <%= if @changeset.action do %>

Oops, something went wrong! Please check the errors below:

        <%= for {attr, message} <- f.errors do %>

<%= humanize(attr) %> <%= message %>

        <% end %>

  <% end %>

Slack Info

      <%= label f, :slack, "Slack", class: "control-label" %>
      <%= text_input f, :slack, class: "form-control", placeholder: @changeset.model.github %>

Enter your name on slack without the @

Notifications

      <%= inputs_for f, :config, fn c -> %>
        <%= hidden_input c, :id %>
        <%= for [left_key, right_key] <- Enum.chunk(SlackCoder.Users.Help.default_config_keys, 2) do %>

              <%= checkbox c, String.to_atom(left_key) %>
              <%= label c, left_key %>

              <%= checkbox c, String.to_atom(right_key) %>
              <%= label c, right_key %>

        <% end %>
      <% end %>

      <%= label f, :monitors, "Team members you wish to monitor", class: "control-label" %>

        Clear

        <%= tag :input, type: "hidden", value: "", name: "user[monitors][]" %>
        <%= multiple_select f, :monitors, users_list(@changeset.model.github), class: "form-control", value: @changeset.model.monitors || [] %>

    <%= submit "Submit", class: "btn btn-primary" %>

<% end %>

<%= form_for @changeset, @action, fn f -> %>
  <%= if @changeset.action do %>

Oops, something went wrong! Please check the errors below:

        <%= for {attr, message} <- f.errors do %>

<%= humanize(attr) %> <%= message %>

        <% end %>

  <% end %>

Slack Info

      <%= label f, :slack, "Slack", class: "control-label" %>
      <%= text_input f, :slack, class: "form-control", placeholder: @changeset.model.github %>

Enter your name on slack without the @

Notifications

      Currently non-functional! Pending help from José Valim himself!
      <%= inputs_for f, :config, fn c -> %>
        <%= hidden_input c, :id %>
        <%= for [left_key, right_key] <- Enum.chunk(SlackCoder.Users.Help.default_config_keys, 2) do %>

              <%= checkbox c, String.to_atom(left_key) %>
              <%= label c, left_key %>

              <%= checkbox c, String.to_atom(right_key) %>
              <%= label c, right_key %>

        <% end %>
      <% end %>

      <%= label f, :monitors, "Team members you wish to monitor", class: "control-label" %>

        Clear

        <%= tag :input, type: "hidden", value: "", name: "user[monitors][]" %>
        <%= multiple_select f, :monitors, users_list(@changeset.model.github), class: "form-control", value: @changeset.model.monitors || [] %>

    <%= submit "Submit", class: "btn btn-primary" %>

<% end %>


Remove unpublish button

Remove unpublish button

<%= gettext("Published offers") %>

      <%= gettext("Showing page %{page} of %{total_pages}", page: @page_number, total_pages: @total_pages) %>

    <%= gettext("Offer") %>
    <%= gettext("Publish date") %>
    <%= gettext("Actions") %>

    <%= if length(@offers) == 0 do %>

      <%= gettext("Opps! There is nothing here...") %>

    <% else %>
      <%= for offer <- @offers do %>

          <%= "#{offer.title} @ #{offer.company}" %>
          <%= human_readable_date(offer.published_at, false) %>

            <%= link(gettext("View"), to: offer_path(@conn, :show, offer.slug), class: "button is-success is-small") %>
            <%= link(gettext("Edit"), to: admin_offer_path(@conn, :edit, offer.slug), class: "button is-info is-small") %>
            <%= link(gettext("Delete"),
              to: admin_offer_path(@conn, :delete, offer.slug),
              class: "button is-danger is-small",
              method: :delete,
              data: [confirm: gettext("Do you really want to delete this offer?")]) %>

      <% end %>
    <% end %>

<%= render("_pagination.html", conn: @conn, page_number: @page_number, total_pages: @total_pages, method: :index_published) %>

<%= gettext("Published offers") %>

      <%= gettext("Showing page %{page} of %{total_pages}", page: @page_number, total_pages: @total_pages) %>

    <%= gettext("Offer") %>
    <%= gettext("Publish date") %>
    <%= gettext("Actions") %>

    <%= if length(@offers) == 0 do %>

      <%= gettext("Opps! There is nothing here...") %>

    <% else %>
      <%= for offer <- @offers do %>

          <%= "#{offer.title} @ #{offer.company}" %>
          <%= human_readable_date(offer.published_at, false) %>

            <%= link(gettext("View"), to: offer_path(@conn, :show, offer.slug), class: "button is-success is-small") %>
            <%= link(gettext("Unpublish"), to: admin_offer_path(@conn, :unpublish, offer.slug), class: "button is-primary is-small") %>
            <%= link(gettext("Edit"), to: admin_offer_path(@conn, :edit, offer.slug), class: "button is-info is-small") %>
            <%= link(gettext("Delete"),
              to: admin_offer_path(@conn, :delete, offer.slug),
              class: "button is-danger is-small",
              method: :delete,
              data: [confirm: gettext("Do you really want to delete this offer?")]) %>

      <% end %>
    <% end %>

<%= render("_pagination.html", conn: @conn, page_number: @page_number, total_pages: @total_pages, method: :index_published) %>