added login and logout navbar links and styled logout form to look like an emphasised button

<!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>ResuGen</title>
    <link rel="stylesheet" href="<%= static_path(@conn, "/css/app.css") %>">

          <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
            Toggle navigation

          </button>
          ResuGen

Sign In

Sign Up

              <form action="/sessions" class="navbar-form navbar-right " method="post">
                <input name="_method" type="hidden" value="delete">
                <input name="_csrf_token" type="hidden" value="BxZ/FkgPXjYgAhs2MgcRHlQyGHJzJgAAnGGTx7lTXKMxCIY/5PQ0KQ==">
                <button class="btn btn-danger" type="submit">Logout</button>
              </form>

        <%= 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>ResuGen</title>
    <link rel="stylesheet" href="<%= static_path(@conn, "/css/app.css") %>">

          <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
            Toggle navigation

          </button>
          ResuGen

Sign In

Sign Up

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


Adding back missing app js script tag

Adding back missing app js script tag

<!doctype html>

  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <title><%= gettext "Default Title" %></title>
  <meta name="description" content="<%= gettext "Default Description" %>">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="apple-touch-icon" sizes="180x180" href="<%= static_path(@conn, "/apple-touch-icon.png") %>">
  <link rel="icon" type="image/png" href="<%= static_path(@conn, "/favicon-32x32.png") %>" sizes="32x32">
  <link rel="icon" type="image/png" href="<%= static_path(@conn, "/favicon-16x16.png") %>" sizes="16x16">
  <link rel="manifest" href="<%= static_path(@conn, "/manifest.json") %>">
  <link rel="mask-icon" href="<%= static_path(@conn, "/safari-pinned-tab.svg") %>" color="#5bbad5">
  <meta name="theme-color" content="#ffffff">

  <meta name="twitter:card" content="summary">
  <meta name="twitter:title" content="<%= gettext "Default Title" %>">
  <meta name="twitter:description" content="<%= gettext "Default Description" %>">
  <meta name="twitter:image" content="<%= static_path(@conn, "/images/post_logo.png") %>">

  <meta property="og:title" content="<%= gettext "Default Title" %>" />
  <meta property="og:type" content="website" />
  <meta property="og:url" content="<%= page_url(@conn, :index) %>" />
  <meta property="og:image" content="<%= static_path(@conn, "/images/post_logo.png") %>" />
  <meta property="og:description" content="<%= gettext "Default Description" %>" />

  <link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/normalize/4.2.0/normalize.min.css">
  <link rel="stylesheet" href="<%= static_path(@conn, "/css/app.css") %>">

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

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

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


Fix copy on frontpage

Fix copy on frontpage

ElixirStatus presents: HexFaktor

This is a new service that wants to provide monitoring for your Hex deps.

<img src="<%= static_path(@conn, "/images/deps.svg") %>">

Is this ready?

  Yes and no. I tested this version of the software for a couple of weeks myself, but now the code needs some "real world experience".

You can join the beta by signing in via GitHub:

<%= unless logged_in?(@conn) do %>

   Join the Beta

<% end %>

Thanks!

  This, like my other Elixir projects, would not have been possible without consistent support by our fantastic community. Thank you so much!

Wait! Who are you?

  I'm @rrrene. I've been around Elixir for a while and created Credo and ElixirStatus.

Embargo?

  There is no reason why you should not share your thoughts, excitement and/or critique about this project on Twitter, in a blog post or in the issues section of the GitHub repo.

  The project will, however, remain under the beta.* domain for a couple of weeks so we can ensure everything is working properly.

Open Source?

  Yes! Everything can be found here: hexfaktor/hex_faktor_web

Thanks again!

ElixirStatus presents: HexFaktor

This is a new service that wants to provide monitoring for your Hex deps.

<img src="<%= static_path(@conn, "/images/deps.svg") %>">

Is this ready?

  Yes and no. I tested this version of the software for a couple of weeks myself, but now the code needs some "real world experience".

You can join the beta by signing in via GitHub:

<%= unless logged_in?(@conn) do %>

   Join the Beta

<% end %>

Thanks!

  This, like my other Elixir projects, would not have been possible without consistent support by our fantastic community. Thank you so much!

Wait! Who are you?

  I'm @rrrene. I've been around Elixir for a while and created Credo and ElixirStatus.

Embargo?

  There is no reason why you should not share your thoughts, excitement and/or critique about this project on Twitter, in a blog post or in the issues section of the GitHub repo.

  The project will, however, remain under the beta.* domain for a couple of weeks so we can ensure everything is working properly.

Open Source?

  Removing the beta tag will mean two things:

HexFaktor will then be reachable via hexfaktor.org (obviously). All links, badges etc. to the beta version will be properly redirected and still work.

I will open source everything in this repo on GitHub (I currently maintain a *very* quick-n-dirty copy of the project in a private repo and want to make sure I clean that copy of any keys, secrets or leftovers from previous prototype iterations before open sourcing it).

Thanks again!


Fix upgraded Timex syntax

Fix upgraded Timex syntax

Access Log

<%= if length(@page.entries) > 0 do %>

      Allowed
      Why
      When
      Who
      Where

    <%= for access_attempt <- @page.entries do %>
      <tr class="door_access_attempt_allowed_<%= access_attempt.access_allowed %>">

          <%= if access_attempt.access_allowed do %>

            Yes
          <% else %>
            No
          <% end %>

        <%= access_attempt.reason %>

          <%=
            {:ok, inserted_at} = Ecto.DateTime.dump access_attempt.inserted_at
            local_time = Timex.Timezone.convert Timex.DateTime.from(inserted_at), Timex.Timezone.get("America/New_York")
            {:ok, time} = Timex.format(local_time, "%a, %b %e @ %l:%M:%S%P", :strftime)
            time
          %>

          <%= if member = access_attempt.member do %>
            <%= link member.name, to: company_member_path(@conn, :show, member.company, member) %> (<%= link member.company.name, to: company_path(@conn, :show, member.company) %>)
          <% else %>
            <%= link "Unassigned Token: #{access_attempt.rfid_token.identifier}", to: rfid_token_path(@conn, :show, access_attempt.rfid_token) %>
          <% end %>

        <%= link access_attempt.door.name, to: door_path(@conn, :show, access_attempt.door) %>

    <% end %>

  <%= pagination_links @page %>
<% else %>

No attempts to access a door

<% end %>

Access Log

<%= if length(@page.entries) > 0 do %>

      Allowed
      Why
      When
      Who
      Where

    <%= for access_attempt <- @page.entries do %>
      <tr class="door_access_attempt_allowed_<%= access_attempt.access_allowed %>">

          <%= if access_attempt.access_allowed do %>

            Yes
          <% else %>
            No
          <% end %>

        <%= access_attempt.reason %>

          <%=
            {:ok, inserted_at} = Ecto.DateTime.dump access_attempt.inserted_at
            local_time = Timex.Timezone.convert Timex.Date.from(inserted_at), Timex.Timezone.get("America/New_York")
            {:ok, time} = Timex.DateFormat.format(local_time, "%a, %b %e @ %l:%M:%S%P", :strftime)
            time
          %>

          <%= if member = access_attempt.member do %>
            <%= link member.name, to: company_member_path(@conn, :show, member.company, member) %> (<%= link member.company.name, to: company_path(@conn, :show, member.company) %>)
          <% else %>
            <%= link "Unassigned Token: #{access_attempt.rfid_token.identifier}", to: rfid_token_path(@conn, :show, access_attempt.rfid_token) %>
          <% end %>

        <%= link access_attempt.door.name, to: door_path(@conn, :show, access_attempt.door) %>

    <% end %>

  <%= pagination_links @page %>
<% else %>

No attempts to access a door

<% end %>


Add group:show template

Add group:show template

Closes #25

<%= render Org.SharedView, "nav.html", assigns %>

<%= @group.title %>

Managed by: <%= @group.user.name %>

About <%= @group.title %>

<%= @group.description %>

    <a href="<%= @group.url %>">Go to Meetup
    <%= if @current_user && @current_user.role == "admin" do %>
    <%= link "Edit", to: group_path(@conn, :edit, @group) %>
    <% end %>
    <%= link "Back", to: group_path(@conn, :index) %>

Show group

    Title:
    <%= @group.title %>

    URL:
    <%= @group.url %>

    Description:
    <%= @group.description %>

    Added by:
    <%= @group.user.name %>

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


Switching to GetSiteControl

Switching to GetSiteControl

<!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">

    <%= render_existing(@view_module, "meta." <> @view_template, assigns) || render(Ap.LayoutView, "meta.html", assigns) %>

    <link rel="dns-prefetch" href="//res.cloudinary.com">

    <%= render Ap.LayoutView, "common_social_meta.html" %>
    <%= render_existing(@view_module, "social_meta." <> @view_template, assigns) || render(Ap.LayoutView, "social_meta.html", assigns) %>

    <link rel="icon" href="/favicon.ico" />
    <link rel="icon" href="/images/favicon.png" sizes="16x16" type="image/png">

    <%= if Mix.env == :prod do %>

    <% end %>

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

    <meta name="msvalidate.01" content="3F3F0DA3D9FF8AE3DA64D767717C782B" />

    <%= render Ap.SharedView, "header.html", conn: @conn, product_categories: @product_categories %>

          <%= show_flash(@conn) %>
          <%= render @view_module, @view_template, assigns %>

    <%= render Ap.SharedView, "footer.html", conn: @conn %>


Use style instead.

Use style instead.

    <%= for user <- Map.keys(@prs) do %>
      <%= for commit <- @prs[user] do %>

            <img src="<%= commit.github_user_avatar %>" style="width: 32px; height: 32px;" />
            <%= user %>

          <%= link "Travis", to: commit.travis_url %>
          <%= link "Github", to: commit.pr.html_url %>

            <span class="label label-<%= status_class(commit.status) %> text-uppercase">
              <%= to_string(commit.status) %>

      <% end %>
    <% end %>

    <%= for user <- Map.keys(@prs) do %>
      <%= for commit <- @prs[user] do %>

            <img src="<%= commit.github_user_avatar %>" width="32" height="32" />
            <%= user %>

          <%= link "Travis", to: commit.travis_url %>
          <%= link "Github", to: commit.pr.html_url %>

            <span class="label label-<%= status_class(commit.status) %> text-uppercase">
              <%= to_string(commit.status) %>

      <% end %>
    <% end %>


Make logo fit on iPhone browser.

Make logo fit on iPhone browser.

<img src='<%= static_path(@conn, "/images/readerl-icon-text.png") %>' alt='ReadErl' width='227' height='48'/>™

An RSS feed aggregator written in Elixir/Phoenix

I'm working on it: github.com/billstclair/readerl

  <%= :erlang.system_info(:system_version) %>

  Elixir: <%= System.version %>, Phoenix: <%= {:ok, vsn} = :application.get_key(:phoenix, :vsn); vsn %>

<img src='<%= static_path(@conn, "/images/readerl-icon-text.png") %>' alt='ReadErl' width='455' height='95'/>™

An RSS feed aggregator written in Elixir/Phoenix

I'm working on it: github.com/billstclair/readerl

  <%= :erlang.system_info(:system_version) %>

  Elixir: <%= System.version %>, Phoenix: <%= {:ok, vsn} = :application.get_key(:phoenix, :vsn); vsn %>


4th of july stuff

4th of july stuff

 Happy 4th of July!

via GIPHY

    Calls will resume July 5th at 10am eastern

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.0.3/leaflet.css" />


Confirmation page formatting

Confirmation page formatting

We have received your call back request. One of our parenting practitioners will be in touch on the next working day to confirm when you can expect your phone call.

Whilst you are waiting to speak to one of our parenting practitioners, you can get general parenting advice on our parenting tips section of the website.

If you have immediate concerns about your child's health, please call NHS Direct on 111.

Thanks,
Action for Children Parenting Practitioners


allow null candidate

allow null candidate

<%= 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
%>

  <%= 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 BNC

           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" -> "dailer@justicedemocrats.com"
                  "bnc" -> "dailer@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 %>

<%= render Core.LayoutView, "h1.html", [brand: @brand, text: "Call Voters"] %>
<% csl =
  if String.contains?(@calling_script_link, "https://") do
    @calling_script_link
  else
    core_deployment(@brand) <> @calling_script_link
  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 BNC

           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" -> "dailer@justicedemocrats.com"
                  "bnc" -> "dailer@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 %>


tweak formatting of map template

tweak formatting of map template

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 %>

-------------------------

Markers

      Name
      Img url
      Text
      Lat
      Long

    <%= for marker <- @map.markers do %>

        <%= marker.name %>
        <img src="<%= marker.img_URL %>" width="150px">

            <%= marker.img_URL %>

        <%= marker.text %>
        <%= marker.lat %>
        <%= marker.long %>

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

<% end %>

<%= link "New marker", to: edit_map_marker_path(@conn, :new, @map) %>

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

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 %>


reverse order episode -> podcast -> category

Fortuna opted for the following episode

<%= render Pan.EpisodeFrontendView, "show.html",
           episode: @episode,
           current_user: @current_user,
           player: @player,
           changeset: @changeset,
           conn: @conn %>

... from the podcast

<%= render Pan.PodcastFrontendView, "_header.html",
           podcast: @podcast,
           current_user: @current_user,
           changeset: @changeset,
           conn: @conn %>

... in the category

<%= render Pan.CategoryFrontendView, "show.html",
           category: @category,
           current_user: @current_user,
           conn: @conn %>

Fortuna opted for the category:

<%= render Pan.CategoryFrontendView, "show.html",
           category: @category,
           current_user: @current_user,
           conn: @conn %>

... and there she opted for the podcast:

<%= render Pan.PodcastFrontendView, "_header.html",
           podcast: @podcast,
           current_user: @current_user,
           changeset: @changeset,
           conn: @conn %>

... and the random episode:

<%= render Pan.EpisodeFrontendView, "show.html",
           episode: @episode,
           current_user: @current_user,
           player: @player,
           changeset: @changeset,
           conn: @conn %>


remove google optimize, slows things down

<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 %>


Increased the copyright year.

Increased the copyright year.

Just changed 2015 to 2016.

<!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><%= site_title %></title>
    <link rel="stylesheet" media="screen" type="text/css" href="<%= static_path(@conn, "/css/active_admin.css.css") %>">

  <% resource_label = ExAdmin.Utils.get_resource_label(@conn) |> String.downcase %>

  <body class="index admin_<%= resource_label %> active_admin logged_in admin_namespace">

<%= site_title %>

          <%= ExAdmin.Navigation.nav_view(@conn) %>
          <%= if use_authentication?(@conn) do %>

              <%= current_user_name(@conn) %>
              <%= link "Logout", to: session_path(@conn, :destroy), "data-method": "delete", "data-csrf": Plug.CSRFProtection.get_csrf_token, rel: "nofollow" %>

          <% end %>

        <%= title_bar(@conn, @resource) %>
        <%= ExAdmin.ViewHelpers.flashes(@conn) %>
        <% {sidebars?, klass} = check_for_sidebars(@conn, @filters, @defn) %>
        <div id="active_admin_content" class="<%= klass %>">

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

          <%= if sidebars? do %>

              <%= ExAdmin.Filter.filter_view(@conn, @filters, @defn) %>
              <%= ExAdmin.Sidebar.sidebar_view(@conn, @defn, @resource) %>

          <% end %>

          Powered by ExAdmin. Licensed by
          E-MetroTel
           &copy 2013-2016.

<!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><%= site_title %></title>
    <link rel="stylesheet" media="screen" type="text/css" href="<%= static_path(@conn, "/css/active_admin.css.css") %>">

  <% resource_label = ExAdmin.Utils.get_resource_label(@conn) |> String.downcase %>

  <body class="index admin_<%= resource_label %> active_admin logged_in admin_namespace">

<%= site_title %>

          <%= ExAdmin.Navigation.nav_view(@conn) %>
          <%= if use_authentication?(@conn) do %>

              <%= current_user_name(@conn) %>
              <%= link "Logout", to: session_path(@conn, :destroy), "data-method": "delete", "data-csrf": Plug.CSRFProtection.get_csrf_token, rel: "nofollow" %>

          <% end %>

        <%= title_bar(@conn, @resource) %>
        <%= ExAdmin.ViewHelpers.flashes(@conn) %>
        <% {sidebars?, klass} = check_for_sidebars(@conn, @filters, @defn) %>
        <div id="active_admin_content" class="<%= klass %>">

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

          <%= if sidebars? do %>

              <%= ExAdmin.Filter.filter_view(@conn, @filters, @defn) %>
              <%= ExAdmin.Sidebar.sidebar_view(@conn, @defn, @resource) %>

          <% end %>

          Powered by ExAdmin. Licensed by
          E-MetroTel
           &copy 2013-2015.


updates the show page

updates the show page

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

              <%= for system_variable <- @non_program_system_variables do %>

 <%= system_variable.key %>

                    <%= system_variable.value %>

              <% end %>

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

        <% end %>
      <% end %>

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

              <%= for system_variable <- @program_system_variables do %>

 <%= system_variable.key %>

                    <%= system_variable.value %>

              <% end %>

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

        <% end %>
      <% end %>

Show settings

System settings

      Name
      Value

    <%= for system_variable <- @non_program_system_variables do %>

        <%= system_variable.key %>
        <%= system_variable.value %>

    <% end %>

<%= link "Edit system setting", to: setting_edit_path(@conn, :edit, "system_settings") %>

Program settings

      Name
      Value

    <%= for system_variable <- @program_system_variables do %>

        <%= system_variable.key %>
        <%= system_variable.value %>

    <% end %>

<%= link "Edit program setting", to: setting_edit_path(@conn, :edit, "program_settings") %>


Make description form field bigger

Make description form field bigger

      <%= form_for @changeset, asciicast_path(@conn, :update, @changeset.data), fn f -> %>
        <legend>Asciicast settings</legend>

          <%= label f, :title, class: "col-sm-4 col-md-3 col-lg-3 col-form-label" %>

            <%= text_input f, :title, class: "form-control", autofocus: true %>
            <%= error_tag f, :title %>

          <%= label f, :description, class: "col-sm-4 col-md-3 col-lg-3 col-form-label" %>

            <%= textarea f, :description, class: "form-control", rows: 10 %>
            <%= error_tag f, :description %>

          <%= label f, :theme_name, "Terminal theme", class: "col-sm-4 col-md-3 col-lg-3 col-form-label" %>

            <%= select f, :theme_name, theme_options(), class: "form-control", prompt: "Default (#{default_theme_name(@changeset.data)})" %>

          <%= label f, :snapshot_at, "Thumbnail frame", class: "col-sm-4 col-md-3 col-lg-3 col-form-label" %>

            <%= text_input f, :snapshot_at, class: "form-control", type: "number", min: 0, step: "0.1" %>
            <%= error_tag f, :snapshot_at %>
            Time of the frame to be displayed as snapshot/poster (float, in seconds, for example: 10.5)

            <%= submit "Save", class: "btn btn-primary" %>
            <%= link "Cancel", to: asciicast_path(@conn, :show, @changeset.data), class: "btn" %>

      <% end %>

      <%= form_for @changeset, asciicast_path(@conn, :update, @changeset.data), fn f -> %>
        <legend>Asciicast settings</legend>

          <%= label f, :title, class: "col-sm-4 col-md-3 col-lg-3 col-form-label" %>

            <%= text_input f, :title, class: "form-control", autofocus: true %>
            <%= error_tag f, :title %>

          <%= label f, :description, class: "col-sm-4 col-md-3 col-lg-3 col-form-label" %>

            <%= textarea f, :description, class: "form-control" %>
            <%= error_tag f, :description %>

          <%= label f, :theme_name, "Terminal theme", class: "col-sm-4 col-md-3 col-lg-3 col-form-label" %>

            <%= select f, :theme_name, theme_options(), class: "form-control", prompt: "Default (#{default_theme_name(@changeset.data)})" %>

          <%= label f, :snapshot_at, "Thumbnail frame", class: "col-sm-4 col-md-3 col-lg-3 col-form-label" %>

            <%= text_input f, :snapshot_at, class: "form-control", type: "number", min: 0, step: "0.1" %>
            <%= error_tag f, :snapshot_at %>
            Time of the frame to be displayed as snapshot/poster (float, in seconds, for example: 10.5)

            <%= submit "Save", class: "btn btn-primary" %>
            <%= link "Cancel", to: asciicast_path(@conn, :show, @changeset.data), class: "btn" %>

      <% end %>


add bars

add bars

<%= if @mobile do %>

<% else %>

<% end %>

 <%= @event.title %>

    <%= raw(scrub(@event.description)) %>

 When

 <%= @event.date_line %>

 Where

      <%= if @event.location.public do %>

 <%= @event.location.address_lines |> List.first() %>

 <%= @event.location.locality %> <%= @event.location.region %>

      <% else %>

 The address is hidden to protect the privacy of the host. You will find out when you RSVP!

      <% end %>

 Contact

      <%= if @event.host.public do %>

 <%= @event.host.name %>

 <a href="mailto:<%= @event.host.email %>"> <%= @event.host.email %>

 <%= @event.host.phone %>

      <% else %>

 The host's contact information is hidden to protect their privacy. You will find out when you RSVP!

      <% end %>

    <%= if assigns[:person] == nil do %>

 Who is coming?

      <form method="post" action="/events/<%= @event.name %>">
        <input type="hidden" name="_csrf_token" value="<%= csrf_token() %>" />

             First Name

            <input name="first_name" type="text" />

             Last Name

            <input name="last_name" type="text" />

             Email

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

             Phone

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

          <input type="submit" value="I'm coming!" class="primary-button" style="width: 200px; padding: 10px;">

      </form>
    <% else %>

 Thanks for rsvping!

 We'll be in touch soon with details and reminders.

 In the meantime, share the event and try to get some of your friends to come!

    <% end %>


Remove some phoenix boilerplate

Remove some phoenix boilerplate

<%= gettext "Welcome to %{name}", name: "Phoenix!" %>

A productive web framework that
does not compromise speed and maintainability.

Resources

        Guides

        Docs

        Source

Help

        Mailing list

        #elixir-lang on freenode IRC

        @elixirphoenix

    <input id="username" type="text" placeholder="Username"></input>
    <button id="createRoom">Create Room</button>
    <button id="createGuess">Create Guess</button>


use the new css... yay!

use the new css... yay!

  <%= if @current_user do %>

      <li role='presentation' class='<%= active_on_current(@conn, private_page_path(@conn, :index)) %>'>
        <%= link "Prayers", to: private_page_path(@conn, :index) %>

      <li role='presentation' class='<%= active_on_current(@conn, private_page_path(@conn, :index)) %>'>
        <%= link "Private", to: private_page_path(@conn, :index) %>

      <li role='presentation' class='<%= active_on_current(@conn, authorization_path(@conn, :index)) %>'>
        <%= link "Authorizations", to: authorization_path(@conn, :index) %>

      <li role='presentation' class='<%= active_on_current(@conn, token_path(@conn, :index)) %>'>
        <%= link "Tokens", to: token_path(@conn, :index) %>

      <%= if @conn.request_path != auth_path(@conn, :login, "identity") do %>
        <li class="<%= active_on_current(@conn, authorization_path(@conn, :index)) %>">
          <%= link "Connect", to: auth_path(@conn, :login, "identity") %>

      <% end %>

      <li role="presentation" class="<%= active_on_current(@conn, authorization_path(@conn, :index)) %>">
        <%= link "Logout", to: auth_path(@conn, :logout), method: :delete %>

  <% else %>

        <%= if @conn.request_path != auth_path(@conn, :login, "identity") do %>
          <%= link "Login", to: auth_path(@conn, :login, "identity") %>
        <% end %>

  <% end %>

  <%= if @current_user do %>

      <li role='presentation' class='<%= active_on_current(@conn, private_page_path(@conn, :index)) %>'>
        <%= link "Private", to: private_page_path(@conn, :index) %>

      <li role='presentation' class='<%= active_on_current(@conn, authorization_path(@conn, :index)) %>'>
        <%= link "Authorizations", to: authorization_path(@conn, :index) %>

      <li role='presentation' class='<%= active_on_current(@conn, token_path(@conn, :index)) %>'>
        <%= link "Tokens", to: token_path(@conn, :index) %>

      <%= if @conn.request_path != auth_path(@conn, :login, "identity") do %>

          <%= link "Connect", to: auth_path(@conn, :login, "identity") %>

      <% end %>

        <%= link "Logout", to: auth_path(@conn, :logout), method: :delete %>

  <% else %>

        <%= if @conn.request_path != auth_path(@conn, :login, "identity") do %>
          <%= link "Login", to: auth_path(@conn, :login, "identity") %>
        <% end %>

  <% end %>


maybe this fixes space

maybe this fixes space

    Thanks for signing up to make calls! Here's your username and password.

    Username: <%= @username %>

    Password: <%= @password %>

  <%= raw(@call_page) %>


better recommendations layout

better recommendations layout

Your Podcast Recommendations

        <%= for recommendation <- @podcast_recommendations do %>

            <%= link [fa_icon("podcast"), " ", recommendation.podcast.title],
                to: podcast_frontend_path(@conn, :show, recommendation.podcast),
                class: "btn btn-default btn-xs",
                style: "color: #666;" %>
            <%= recommendation.inserted_at %>

            <%= recommendation.comment %>

        <% end %>

Unrecommended Podcasts

        <%= for podcast <- @unrecommended_podcasts do %>
          <%= link [fa_icon("podcast"), " ", podcast.title],
                   to: podcast_frontend_path(@conn, :show, podcast),
                   class: "btn btn-default",
                   style: "color: #666;" %>
          <%= render Pan.PodcastFrontendView, "_recommend_form.html",
                     current_user: @current_user,
                     changeset: @changeset,
                     conn: @conn,
                     podcast_id: podcast.id %>
        <% end %>

<%= if @podcast_recommendations != [] do %>

Your Podcast Recommendations

      <%= for recommendation <- @podcast_recommendations do %>

          <%= link [fa_icon("podcast"), " ", recommendation.podcast.title],
              to: podcast_frontend_path(@conn, :show, recommendation.podcast),
              class: "btn btn-default btn-xs",
              style: "color: #666;" %>
          <%= recommendation.comment %>
          <%= recommendation.inserted_at %>

      <% end %>

<% end %>

Unrecommended Podcasts

      <%= for podcast <- @unrecommended_podcasts do %>

            <%= link [fa_icon("podcast"), " ", podcast.title],
                to: podcast_frontend_path(@conn, :show, podcast),
                class: "btn btn-default",
                style: "color: #666;" %>

            <%= render Pan.PodcastFrontendView, "_recommend_form.html",
                       current_user: @current_user,
                       changeset: @changeset,
                       conn: @conn,
                       podcast_id: podcast.id %>

      <% end %>


add time zone thing

add time zone thing

<%= render Core.LayoutView, "h1.html", [brand: @brand, text: "Call Voters"] %>

  <%= 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 BNC

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

           Third,

            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

                dialer@brandnewcongress.org
              .
              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 %>

<%= render Core.LayoutView, "h1.html", [brand: @brand, text: "Call Voters"] %>

  <%= 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 BNC

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

           Third,

            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,
              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

                dialer@brandnewcongress.org
              .
              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,
          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.

          Please fill out

            this form

          and we'll help you get set up soon.

      <% end %>

    <% end %>


Fixing bug where clicking nok12 would uncheck personalized email

  <%= form_for @conn, user_path(@conn, :submit), [name: :search], fn _ -> %>
  <%= raw ParamSession.form_session @conn %>

Welcome to the interactive features in this MOOC. First we need to ask
        you a few questions

Apart from your nickname, none of this information will be shared with other students, but it will help us provide you with more relevant resources and connections. You are required to register before you access any of the course's interactive features.

Items with red stars are required.

      <fieldset>

What do you want us to call you? *

          This does not have to be your real name, and it will be publicly visible
            to all MOOC participants.

        <input name="f[nick]" type="text">

      </fieldset>
      <fieldset>

Would you like us to send you personalized emails?

If you give us permissions, we will send you personalized emails not more than once or twice a week. These might contain information about your contributions, resources that might be relevant to you, and reminders for events. All emails will contain a link to stop further emails.

       If you do not wish to receive personalized emails, you might still receive a few generic e-mails from EdX. You can control your EdX e-mail settings in the EdX.

          <input class='fieldlevel' name="f[allow_email]" value="true" type="checkbox" checked="true">
          Yes, I would like to receive occasional personalized emails

      </fieldset>
      <fieldset>

Choose a Special Interest Group (SIG) *

These SIGs were designed based on responses from the early students in this course. Most of the collaborative work in this MOOC will happen within your SIG, and some of the discussion forums will only be for your SIG (it might take a day for you to gain access to these).

              <select name='f[sig_id]'>
                <option value=noselection>Please select from this list</option>
                <%= for sig <- sigs do %>
                <option value=<%= sig.id %>><%= sig.name %></option>
                <% end %>
              </select>
            </fieldset>
      <fieldset>

At what grade levels do you currently teach? *

          <input class='fieldlevel k12' name="f[grade|K-3]" value="true" type="checkbox">
          K-3

          <input class='fieldlevel k12' name="f[grade|4-6]" value="true" type="checkbox">
          4-6

          <input class='fieldlevel k12' name="f[grade|7-8]" value="true" type="checkbox">
          7-8

          <input class='fieldlevel k12' name="f[grade|9-12]" value="true" type="checkbox">
          9-12

          <input class='fieldlevel nok12' name="f[grade|noK12]" value="true" type="checkbox">
          I do not currently teach in a K-12 educational system

      </fieldset>
      <fieldset>

STEAM+ *

          Please choose one or several of the topics below as covering your own
            teaching

          <input name="f[steam|S]" value="true" type="checkbox">
          S - Science

          <input name="f[steam|T]" value="true" type="checkbox">
          T - Technology

          <input name="f[steam|E]" value="true" type="checkbox">
          E - Engineering

          <input name="f[steam|A]" value="true" type="checkbox">
          A - Arts

          <input name="f[steam|M]" value="true" type="checkbox">
          M - Mathematics

          <input name="f[steam|+]" value="true" type="checkbox">
          + - Anything else

      </fieldset>

Section 2

      <fieldset>

Tags

Please enter a number of tags to describe your teaching areas. These tags will help us connect you with other people, resources, and groups relevant to your interests.

            While you type, you will see suggestions based on what other people with your teaching interests have entered - in this way we hope to build up a "folksonomic" tag cloud.

 Tags can have spaces. Press enter to add a new tag.

        <input name='f[tags]' class="form-control" id="ms-suggest">

Loading...
      </fieldset>

Section 3

      <fieldset>

How many years have you been teaching any subject in K-12 education?:

          Please enter a whole number (for example: 15, or 0 if you have never taught)

        <input name="f[yearsteaching]" type="text" class="numeric">

      </fieldset>
      <fieldset>

If you do not currently teach in a K-12 educational system, please specify
          your role.

          <input name="f[role]" value="informal" type="radio">
          Informal education (museums, after school, etc):

          <input name="f[role]" value="school_admin" type="radio">
          School administration (leadership, technology specialists, etc):

          <input name="f[role]" value="highered" type="radio">
          Higher education (college, university, etc):

          <input name="f[role]" value="continuing_ed" type="radio">
          Adult and continuing education:

      </fieldset>
      <fieldset>

Other: (please specify)

        <input name="f[other_role]" type="text">

      </fieldset>

  <% end %>

  <%= form_for @conn, user_path(@conn, :submit), [name: :search], fn _ -> %>
  <%= raw ParamSession.form_session @conn %>

Welcome to the interactive features in this MOOC. First we need to ask
        you a few questions

Apart from your nickname, none of this information will be shared with other students, but it will help us provide you with more relevant resources and connections. You are required to register before you access any of the course's interactive features.

Items with red stars are required.

      <fieldset>

What do you want us to call you? *

          This does not have to be your real name, and it will be publicly visible
            to all MOOC participants.

        <input name="f[nick]" type="text">

      </fieldset>
      <fieldset>

Would you like us to send you personalized emails?

If you give us permissions, we will send you personalized emails not more than once or twice a week. These might contain information about your contributions, resources that might be relevant to you, and reminders for events. All emails will contain a link to stop further emails.

       If you do not wish to receive personalized emails, you might still receive a few generic e-mails from EdX. You can control your EdX e-mail settings in the EdX.

          <input class='fieldlevel k12' name="f[allow_email]" value="true" type="checkbox" checked="true">
          Yes, I would like to receive occasional personalized emails

      </fieldset>
      <fieldset>

Choose a Special Interest Group (SIG) *

These SIGs were designed based on responses from the early students in this course. Most of the collaborative work in this MOOC will happen within your SIG, and some of the discussion forums will only be for your SIG (it might take a day for you to gain access to these).

              <select name='f[sig_id]'>
                <option value=noselection>Please select from this list</option>
                <%= for sig <- sigs do %>
                <option value=<%= sig.id %>><%= sig.name %></option>
                <% end %>
              </select>
            </fieldset>
      <fieldset>

At what grade levels do you currently teach? *

          <input class='fieldlevel k12' name="f[grade|K-3]" value="true" type="checkbox">
          K-3

          <input class='fieldlevel k12' name="f[grade|4-6]" value="true" type="checkbox">
          4-6

          <input class='fieldlevel k12' name="f[grade|7-8]" value="true" type="checkbox">
          7-8

          <input class='fieldlevel k12' name="f[grade|9-12]" value="true" type="checkbox">
          9-12

          <input class='fieldlevel nok12' name="f[grade|noK12]" value="true" type="checkbox">
          I do not currently teach in a K-12 educational system

      </fieldset>
      <fieldset>

STEAM+ *

          Please choose one or several of the topics below as covering your own
            teaching

          <input name="f[steam|S]" value="true" type="checkbox">
          S - Science

          <input name="f[steam|T]" value="true" type="checkbox">
          T - Technology

          <input name="f[steam|E]" value="true" type="checkbox">
          E - Engineering

          <input name="f[steam|A]" value="true" type="checkbox">
          A - Arts

          <input name="f[steam|M]" value="true" type="checkbox">
          M - Mathematics

          <input name="f[steam|+]" value="true" type="checkbox">
          + - Anything else

      </fieldset>

Section 2

      <fieldset>

Tags

Please enter a number of tags to describe your teaching areas. These tags will help us connect you with other people, resources, and groups relevant to your interests.

            While you type, you will see suggestions based on what other people with your teaching interests have entered - in this way we hope to build up a "folksonomic" tag cloud.

 Tags can have spaces. Press enter to add a new tag.

        <input name='f[tags]' class="form-control" id="ms-suggest">

Loading...
      </fieldset>

Section 3

      <fieldset>

How many years have you been teaching any subject in K-12 education?:

          Please enter a whole number (for example: 15, or 0 if you have never taught)

        <input name="f[yearsteaching]" type="text" class="numeric">

      </fieldset>
      <fieldset>

If you do not currently teach in a K-12 educational system, please specify
          your role.

          <input name="f[role]" value="informal" type="radio">
          Informal education (museums, after school, etc):

          <input name="f[role]" value="school_admin" type="radio">
          School administration (leadership, technology specialists, etc):

          <input name="f[role]" value="highered" type="radio">
          Higher education (college, university, etc):

          <input name="f[role]" value="continuing_ed" type="radio">
          Adult and continuing education:

      </fieldset>
      <fieldset>

Other: (please specify)

        <input name="f[other_role]" type="text">

      </fieldset>

  <% end %>


Fix responsive meta tag

Fix responsive meta tag

<!DOCTYPE html>
<html>
<head>
  <title><%= content_for(:title) || "Cheko" %></title>
  <meta content="True" name="HandheldFriendly"/>
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
  <meta name="viewport" content="width=device-width"/>
  <meta name="google" value="notranslate" />

  <script type="text/javascript" src="/static/assets/application.js"></script>
  <link rel="stylesheet" href="/static/assets/application.css"/>
  <link rel="shortcut icon" href="/static/favicon.ico" />
</head>
<body>
  <%= content_for(:template) %>
</body>
</html>

<!DOCTYPE html>
<html>
<head>
  <title><%= content_for(:title) || "Cheko" %></title>
  <meta content="True" name="HandheldFriendly"/>
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"/>
  <meta name="viewport" content="width=device-width"/>
  <meta name="google" value="notranslate" />

  <script type="text/javascript" src="/static/assets/application.js"></script>
  <link rel="stylesheet" href="/static/assets/application.css"/>
  <link rel="shortcut icon" href="/static/favicon.ico" />
</head>
<body>
  <%= content_for(:template) %>
</body>
</html>


recommendations fix

recommendations fix

Your Podcast Recommendations

        <%= for recommendation <- @podcast_recommendations do %>

            <%= link [fa_icon("podcast"), " ", recommendation.podcast.title],
                to: podcast_frontend_path(@conn, :show, recommendation.podcast),
                class: "btn btn-default btn-xs",
                style: "color: #666;" %>
            <%= recommendation.inserted_at %>

            <%= recommendation.comment %>

        <% end %>

Unrecommended Podcasts

        <%= for podcast <- @unrecommended_podcasts do %>

            <%= form_for @changeset,
                         recommendation_frontend_path(@conn, :create), [style: "margin-top: 0px;
                                                                               margin-bottom: 0px;"],
                         fn f -> %>

                  <%= label f, "Your recommendation", class: "control-label" %> for :   <%= podcast.title %>
                  <small class="text-muted pull-right" id='remaining<%= podcast.id %>'>255
                  <%= hidden_input f, :podcast_id, value: podcast.id  %>
                  <%= text_input f, :comment, class: "form-control", maxlength: 255,
                                              data: [chapter: podcast.id ] %>

<%= submit [fa_icon("thumbs-o-up"), " Recommend"], class: "btn btn-primary" %>

            <% end %>

        <% end %>

Your Podcast Recommendations

        <%= for recommendation <- @podcast_recommendations do %>

            <%= link [fa_icon("podcast"), " ", recommendation.podcast.title],
                to: podcast_frontend_path(@conn, :show, recommendation.podcast),
                class: "btn btn-default btn-xs",
                style: "color: #666;" %>
            <%= recommendation.inserted_at %>

            <%= recommendation.comment %>

        <% end %>

Unrecommended Podcasts

        <%= for podcast <- @unrecommended_podcasts do %>

            <%= form_for @changeset,
                         recommendation_frontend_path(@conn, :index), [style: "margin-top: 0px;
                                                                               margin-bottom: 0px;"],
                         fn f -> %>

                  <%= label f, "Your recommendation", class: "control-label" %> for :   <%= podcast.title %>
                  <small class="text-muted pull-right" id='remaining<%= podcast.id %>'>255
                  <%= hidden_input f, :podcast_id, value: podcast.id  %>
                  <%= text_input f, :comment, class: "form-control", maxlength: 255,
                                              data: [chapter: podcast.id ] %>

<%= submit [fa_icon("thumbs-o-up"), " Recommend"], class: "btn btn-primary" %>

            <% end %>

        <% end %>


remove p-tag

remove p-tag

<!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="Online Experiments System for Economic Education">
    <meta name="author" content="Ryohei HAYASHI">

    <%= if assigns[:title] do %>
      <title>XEE.JP - <%= @title %> -</title>
    <% else %>
      <title>XEE.JP</title>
    <% end %>

    <link rel="stylesheet" href="<%= static_path(@conn, "/css/app.css") %>">
    <link rel="shortcut icon" href="<%= static_path(@conn, "/favicon.ico") %>">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.6/css/materialize.min.css">

    <link href="https://cdnjs.cloudflare.com/ajax/libs/intro.js/2.1.0/introjs.min.css" rel="stylesheet" type="text/css">
    <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">

<a href="<%= host_path(@conn, :index) %>">実験管理画面

<%= link "ログアウト", to: session_path(@conn, :delete) %>

            XEE.JP
            <%= if assigns[:title] do %>
              <%= @title %>
            <%= end %>

              <%= if logged_in?(@conn) do %>

<%= current_user(@conn).name %>

              <% else %>

<%= link "教師用ページ", to: registration_path(@conn, :new) %>

<%= link "ログイン", to: session_path(@conn, :new) %>

              <% end %>

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

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

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

© 2015 Ryohei HAYASHI All Rights Reserved.

Powered by <a href="<%= page_path(@conn, :about) %>">Xee System.


Adding an link to edit any topic from the index page.


clarify

clarify

<%= 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 %>

    <%= label f, :name, "What's your name?", class: "control-label" %>
    <%= text_input f, :name, class: "form-control" %>

    <%= label f, :prediction, "Who do you think will win (just for fun - you'll get the names of your sweepstake entries in a second!)?", class: "control-label" %>
    <%= text_input f, :prediction, class: "form-control" %>

    <%= 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 %>

    <%= label f, :name, "What's your name?", class: "control-label" %>
    <%= text_input f, :name, class: "form-control" %>

    <%= label f, :prediction, "Who do you think will win?", class: "control-label" %>
    <%= text_input f, :prediction, class: "form-control" %>

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

<% end %>


add comment about reloading

add comment about reloading

defmodule <%= @module %>.WWW do

  def child_spec([config, server_options]) do
    {:ok, port} = Keyword.fetch(server_options, :port)
    %{
      id: {__MODULE__, port},
      start: {__MODULE__, :start_link, [config, server_options]},
      type: :supervisor
    }
  end

  # This works even if the reference file is not available at start up,
  # i.e. it will be generated by npm scripts.
  @external_resource "lib/<%= @name %>/www/public/main.css"
  @external_resource "lib/<%= @name %>/www/public/main.js"
  @static_setup Raxx.Static.setup(source: Path.join(__DIR__, "www/public"))

  def start_link(config, server_options) do
    stack =
      Raxx.Stack.new(
        [
          {Raxx.Static, @static_setup}
        ],
        {__MODULE__.Router, config}
      )

    Ace.HTTP.Service.start_link(stack, server_options)
  end
end

defmodule <%= @module %>.WWW do

  def child_spec([config, server_options]) do
    {:ok, port} = Keyword.fetch(server_options, :port)
    %{
      id: {__MODULE__, port},
      start: {__MODULE__, :start_link, [config, server_options]},
      type: :supervisor
    }
  end

  @external_resource "lib/<%= @name %>/www/public/main.css"
  @external_resource "lib/<%= @name %>/www/public/main.js"
  @static_setup Raxx.Static.setup(source: Path.join(__DIR__, "www/public"))

  def start_link(config, server_options) do
    stack =
      Raxx.Stack.new(
        [
          {Raxx.Static, @static_setup}
        ],
        {__MODULE__.Router, config}
      )

    Ace.HTTP.Service.start_link(stack, server_options)
  end
end


User show links to videos, not entries (#199)

closes #198

    <%= img_tag SignDict.User.avatar_url(@user), alt: gettext("The avatar image of this user"), class: "so-user-show--avatar" %>

<%= @user.name %>

      <%= gettext("User since %{since}", since: relative_date(@user.inserted_at)) %>

      <%= if @user.biography do %>
        <%= text_to_html @user.biography %>
      <% else %>

          <%= gettext("This user doesn't have a bio yet") %>

      <% end %>

      <%= if Canada.Can.can? @current_user, :edit, @user do %>
        <%= link gettext("Edit"), to: user_path(@conn, :edit, @user), class: "btn btn-default btn-xs" %>
      <% end %>

      <%= @videos.total_entries %>

      <%= gettext("Uploaded videos") %>

    <%= for video <- @videos.entries do %>

          <a href="<%= entry_video_path(@conn, :show, video.entry, video) %>">
            <%= img_tag(video.thumbnail_url, class: "o-image", alt: gettext("Thumbnail for Video")) %>

            <%= link video.entry.text, to: entry_video_path(@conn, :show, video.entry, video), class: "so-search-result--link" %>

          <%= if String.length(video.entry.description) > 0 do %>

<%= video.entry.description %>

          <% end %>

    <% end %>

    <%= if @videos.total_entries > 0 do %>
      <%= pagination_links @videos %>
    <% end %>

    <%= img_tag SignDict.User.avatar_url(@user), alt: gettext("The avatar image of this user"), class: "so-user-show--avatar" %>

<%= @user.name %>

      <%= gettext("User since %{since}", since: relative_date(@user.inserted_at)) %>

      <%= if @user.biography do %>
        <%= text_to_html @user.biography %>
      <% else %>

          <%= gettext("This user doesn't have a bio yet") %>

      <% end %>

      <%= if Canada.Can.can? @current_user, :edit, @user do %>
        <%= link gettext("Edit"), to: user_path(@conn, :edit, @user), class: "btn btn-default btn-xs" %>
      <% end %>

      <%= @videos.total_entries %>

      <%= gettext("Uploaded videos") %>

    <%= for video <- @videos.entries do %>

          <a href="<%= entry_path(@conn, :show, video.entry) %>">
            <%= img_tag(video.thumbnail_url, class: "o-image", alt: gettext("Thumbnail for Video")) %>

            <%= link video.entry.text, to: entry_path(@conn, :show, video.entry), class: "so-search-result--link" %>

          <%= if String.length(video.entry.description) > 0 do %>

<%= video.entry.description %>

          <% end %>

    <% end %>

    <%= if @videos.total_entries > 0 do %>
      <%= pagination_links @videos %>
    <% end %>


Change mailto address in phoenix email template.

<% results_url = "https://parkinsons-and-me.herokuapp.com/#my-results/#{@uuid}" %>
<% button_style = "ph3 pv2 f3 outline-0 pointer bg-white b--green-blue ba bw1 black no-underline mh2" %>

Hi <%= String.capitalize @name %> - here's your personalised list of Parkinson's services

Remember you can revisit your recommended page of information and support at any time. Or share the link with your family and friends.

      <a href="<%= results_url %>" class="green-blue no-underline"><%= results_url %>

    <%= for x <- @top3services do %>

 <%= x.title %>

 <%= x.body %>

        <a
        href="<%= x.cta %>",
        class="<%= button_style %>"
        >
          <%= x.cta %>

    <% end %>

Psst... one more thing...

Thank you for testing Parkinson's and Me. You've caught it hot off the press - it's not quite live yet and we're still making improvements. We'd love to know what you thought and if you have any suggestions on how we could make it better.

Can you spare ten minutes to share your feedback?

      <a href="#", class="<%= button_style %>">Fill out this quick survey
      <a href="web@parkinsons.org.uk", class="<%= button_style %>">Drop us an email

We're the Parkinson's charity that drives better care, treatments and quality of life. Together we can bring forward the day when no one fears Parkinson's. Parksinson's UK is the operating name of the Parkinson's Disease Society of the Uniteed Kingdom, a registered charity in England, Wales (258197) and in Scotalnd (SC037544).

Copyright © 2017 Parkinson's UK, All rights reserved.

Our mailing address is :

Parkinson's UK

215 Vauxhall Bridge Road

London, England SW1V 1EJ

United Kingdom

<% results_url = "https://parkinsons-and-me.herokuapp.com/#my-results/#{@uuid}" %>
<% button_style = "ph3 pv2 f3 outline-0 pointer bg-white b--green-blue ba bw1 black no-underline mh2" %>

Hi <%= String.capitalize @name %> - here's your personalised list of Parkinson's services

Remember you can revisit your recommended page of information and support at any time. Or share the link with your family and friends.

      <a href="<%= results_url %>" class="green-blue no-underline"><%= results_url %>

    <%= for x <- @top3services do %>

 <%= x.title %>

 <%= x.body %>

        <a
        href="<%= x.cta %>",
        class="<%= button_style %>"
        >
          <%= x.cta %>

    <% end %>

Psst... one more thing...

Thank you for testing Parkinson's and Me. You've caught it hot off the press - it's not quite live yet and we're still making improvements. We'd love to know what you thought and if you have any suggestions on how we could make it better.

Can you spare ten minutes to share your feedback?

      <a href="#", class="<%= button_style %>">Fill out this quick survey
      <a href="mailto:someone@example.com?Subject=Hello%20again", class="<%= button_style %>">Drop us an email

We're the Parkinson's charity that drives better care, treatments and quality of life. Together we can bring forward the day when no one fears Parkinson's. Parksinson's UK is the operating name of the Parkinson's Disease Society of the Uniteed Kingdom, a registered charity in England, Wales (258197) and in Scotalnd (SC037544).

Copyright © 2017 Parkinson's UK, All rights reserved.

Our mailing address is :

Parkinson's UK

215 Vauxhall Bridge Road

London, England SW1V 1EJ

United Kingdom


fixed token issue via using a phoenix form, and fixed form issue via passing button class variables to phoenix, and for class variable through li element it is nested in

<!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>ResuGen</title>
    <link rel="stylesheet" href="<%= static_path(@conn, "/css/app.css") %>">

          <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
            Toggle navigation

          </button>
          ResuGen

Sign In

Sign Up

              <%= link "Sign Out", to: session_path(@conn, :delete), method: :delete, class: "btn btn-danger" %>

        <%= 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>ResuGen</title>
    <link rel="stylesheet" href="<%= static_path(@conn, "/css/app.css") %>">

          <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
            Toggle navigation

          </button>
          ResuGen

Sign In

Sign Up

              <form action="/sessions" class="navbar-form navbar-right " method="post">
                <input name="_method" type="hidden" value="delete">
                <input name="_csrf_token" type="hidden" value="BxZ/FkgPXjYgAhs2MgcRHlQyGHJzJgAAnGGTx7lTXKMxCIY/5PQ0KQ==">
                <button class="btn btn-danger" type="submit">Log Out</button>
              </form>

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


User form helpers

User form helpers

<%= form_for @conn, login_path(@conn, :index), [name: :login], fn f -> %>

    Login:
      <%= text_input f, :login %>

    Password:
      <%= password_input f, :login %>

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

<% end %>

<%= form_for @conn, login_path(@conn, :index), [name: :login], fn f -> %>

    Login
    <input type="text" name="login" class="form-control" />

    Password
    <input type="password" name="password" class="form-control" />

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

<% end %>


Text improvement.

Text improvement.

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

vutuv is more than just a career network:
Securly share whatever you want with whomever you want.

It's a little bit like LinkedIn but fast and free. And we will not flood your inbox with senseless e-mails. Bonus: It's open-source.

    <%= form_for @changeset, user_path(@conn, :create), [multipart: true, class: "imagebox__form"], fn f -> %>
      <%= if @changeset.action do %>

<%= gettext "Oops, something went wrong! Please check the errors below." %>

      <% end %>

Get started now. It only takes 30 seconds.

      <%= text_input f, :first_name, class: "imagebox__input", placeholder: "Type your first name", autofocus: true %>
      <%= error_tag f, :first_name %>
      <%= text_input f, :last_name, class: "imagebox__input", placeholder: "Enter your last name" %>
      <%= error_tag f, :last_name %>
      <%= inputs_for f, :emails, fn ef -> %>
        <%= text_input ef, :value, class: "imagebox__input", placeholder: "Enter your email" %>
        <%= error_tag ef, :value %>
      <% end %>
      <%= submit gettext("Sign up now"), class: "imagebox__input" %>
      <a href="<%= session_path(@conn, :new) %>" class="imagebox__alreadymember">Already a member? Sign in here.
    <% end %>

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

vutuv is more than just a career network:
Share what you want to share with whom you want to share it.

It's a little bit like LinkedIn or XING but faster and free. And we will not flood your inbox with senseless e-mails. Bonus: It's open-source.

    <%= form_for @changeset, user_path(@conn, :create), [multipart: true, class: "imagebox__form"], fn f -> %>
      <%= if @changeset.action do %>

<%= gettext "Oops, something went wrong! Please check the errors below." %>

      <% end %>

Get started now. It only takes 30 seconds.

      <%= text_input f, :first_name, class: "imagebox__input", placeholder: "Type your first name", autofocus: true %>
      <%= error_tag f, :first_name %>
      <%= text_input f, :last_name, class: "imagebox__input", placeholder: "Enter your last name" %>
      <%= error_tag f, :last_name %>
      <%= inputs_for f, :emails, fn ef -> %>
        <%= text_input ef, :value, class: "imagebox__input", placeholder: "Enter your email" %>
        <%= error_tag ef, :value %>
      <% end %>
      <%= submit gettext("Sign up now"), class: "imagebox__input" %>
      <a href="<%= session_path(@conn, :new) %>" class="imagebox__alreadymember">Already a member? Sign in here.
    <% end %>


Add trademark after logo

Add trademark after logo

<img src='<%= static_path(@conn, "/images/readerl-icon-text.png") %>' alt='ReadErl' width='455' height='95'/>™

An RSS feed aggregator written in Elixir/Phoenix

I'm working on it: github.com/billstclair/readerl

  <%= :erlang.system_info(:system_version) %>

  Elixir: <%= System.version %>, Phoenix: <%= {:ok, vsn} = :application.get_key(:phoenix, :vsn); vsn %>

<img src='<%= static_path(@conn, "/images/readerl-icon-text.png") %>' alt='ReadErl' width='455' height='95'/>

An RSS feed aggregator written in Elixir/Phoenix

I'm working on it: github.com/billstclair/readerl

  <%= :erlang.system_info(:system_version) %>

  Elixir: <%= System.version %>, Phoenix: <%= {:ok, vsn} = :application.get_key(:phoenix, :vsn); vsn %>


bump angular

bump angular

<!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>Rongduan Zhu</title>
    <link href="//fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
    <link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/angular-material/1.0.6/angular-material.min.css">
    <link rel="stylesheet" href="<%= static_path(@conn, "/css/style.css") %>">
  </head>
  <body ng-app="app">
    <resume class="resume" layout="column" layout-align="start stretch">
    </resume>
    <script src="//cdnjs.cloudflare.com/ajax/libs/angular.js/1.5.3/angular.min.js"></script>
    <script src="//cdnjs.cloudflare.com/ajax/libs/angular.js/1.5.3/angular-animate.min.js"></script>
    <script src="//cdnjs.cloudflare.com/ajax/libs/angular.js/1.5.3/angular-aria.min.js"></script>
    <script src="//cdnjs.cloudflare.com/ajax/libs/angular.js/1.5.3/angular-messages.min.js"></script>
    <script src="//cdnjs.cloudflare.com/ajax/libs/angular-material/1.0.6/angular-material.min.js"></script>
    <script src="//cdnjs.cloudflare.com/ajax/libs/lodash.js/4.6.1/lodash.min.js"></script>
    <script src="//cdn.rawgit.com/princemaple/scroll-trigger/v0.5.4/dist/scroll-trigger.min.js"></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">
    <meta name="description" content="">
    <meta name="author" content="">
    <title>Rongduan Zhu</title>
    <link href="//fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
    <link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/angular-material/1.0.6/angular-material.min.css">
    <link rel="stylesheet" href="<%= static_path(@conn, "/css/style.css") %>">
  </head>
  <body ng-app="app">
    <resume class="resume" layout="column" layout-align="start stretch">
    </resume>
    <script src="//cdnjs.cloudflare.com/ajax/libs/angular.js/1.5.2/angular.min.js"></script>
    <script src="//cdnjs.cloudflare.com/ajax/libs/angular.js/1.5.2/angular-animate.min.js"></script>
    <script src="//cdnjs.cloudflare.com/ajax/libs/angular.js/1.5.2/angular-aria.min.js"></script>
    <script src="//cdnjs.cloudflare.com/ajax/libs/angular.js/1.5.2/angular-messages.min.js"></script>
    <script src="//cdnjs.cloudflare.com/ajax/libs/angular-material/1.0.6/angular-material.min.js"></script>
    <script src="//cdnjs.cloudflare.com/ajax/libs/lodash.js/4.6.1/lodash.min.js"></script>
    <script src="//cdn.rawgit.com/princemaple/scroll-trigger/v0.5.4/dist/scroll-trigger.min.js"></script>
    <script src="<%= static_path(@conn, "/js/app.js") %>"></script>
  </body>
</html>


guard for non existant language

guard for non existant language

      <%= @podcast.title %>
      <a class="pull-right" href="<%= @podcast.website %>"><%= @podcast.website %>

        <img class=" thumbnail" src="<%= @podcast.image_url %>" alt="<%= @podcast.image_title%>" width="150">

<%= @podcast.summary %>

Description

<%= @podcast.description %>

Author

<%= @podcast.author %>

Support

<%= link @podcast.payment_link_title, to: @podcast.payment_link_url %>

Language

<%= if @podcast.language do @podcast.language.name end %>

last modified

<%= @podcast.last_build_date %>

Owner

<%= @podcast.owner.name %>

Explicit

<%= @podcast.explicit %>

        scan to subscribe

<%= for {episode, counter} <- Enum.with_index(@podcast.episodes) do %>
  <%= if 0 == rem(counter, 2) do %>

  <% end %>

    <div class="panel <%= panel_cycle(counter) %>">

        <%= link episode.title, to: episode_frontend_path(@conn, :show, episode) %>

<%= episode.subtitle %>

Author

<%= episode.author %>

Support

<%= link episode.payment_link_title, to: episode.payment_link_url %>

Duration

<%= episode.duration %>

Publishing date

<%= episode.publishing_date %>

Link

<a href="<%= episode.link %>"><%= episode.link %>

Deep link

<a href="<%= episode.deep_link %>"><%= episode.deep_link %>

Description

<%= episode. description %>

Summary

<%= episode.summary %>

  <%= if 1 == rem(counter, 2) do %>

  <% end %>
<% end %>

      <%= @podcast.title %>
      <a class="pull-right" href="<%= @podcast.website %>"><%= @podcast.website %>

        <img class=" thumbnail" src="<%= @podcast.image_url %>" alt="<%= @podcast.image_title%>" width="150">

<%= @podcast.summary %>

Description

<%= @podcast.description %>

Author

<%= @podcast.author %>

Support

<%= link @podcast.payment_link_title, to: @podcast.payment_link_url %>

Language

<%= @podcast.language.name %>

last modified

<%= @podcast.last_build_date %>

Owner

<%= @podcast.owner.name %>

Explicit

<%= @podcast.explicit %>

        scan to subscribe

<%= for {episode, counter} <- Enum.with_index(@podcast.episodes) do %>
  <%= if 0 == rem(counter, 2) do %>

  <% end %>

    <div class="panel <%= panel_cycle(counter) %>">

        <%= link episode.title, to: episode_frontend_path(@conn, :show, episode) %>

<%= episode.subtitle %>

Author

<%= episode.author %>

Support

<%= link episode.payment_link_title, to: episode.payment_link_url %>

Duration

<%= episode.duration %>

Publishing date

<%= episode.publishing_date %>

Link

<a href="<%= episode.link %>"><%= episode.link %>

Deep link

<a href="<%= episode.deep_link %>"><%= episode.deep_link %>

Description

<%= episode. description %>

Summary

<%= episode.summary %>

  <%= if 1 == rem(counter, 2) do %>

  <% end %>
<% end %>


Adds a /users URL for the breadcrumb.

Adds a /users URL for the breadcrumb.

<%# 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 %>