Only include ToPhone if phone number is valid

<%# Prefix is either "From" or "To" %>
<%# Address1 is actually line 2 %>
<%# Zip4 can be blank %>
<% prefix = String.capitalize("#{@address}") %>
<% address = Map.get(@shipment, @address) %>

<%= if @shipment.international? do %>
  <<%= prefix %>FirstName><%= address.first_name %></<%= prefix %>FirstName>
  <<%= prefix %>LastName><%= address.last_name %></<%= prefix %>LastName>
<% else %>
  <<%= prefix %>Name><%= address.first_name %> <%= address.last_name %></<%= prefix %>Name>
<% end %>

<<%= prefix %>Firm><%= address.company_name %></<%= prefix %>Firm>
<<%= prefix %>Address1><%= address.address_line_2 %></<%= prefix %>Address1>
<<%= prefix %>Address2><%= address.address %></<%= prefix %>Address2>
<<%= prefix %>City><%= address.city %></<%= prefix %>City>

<%= if @shipment.international? and @address == :to do %>
  <<%= prefix %>Province><%= address.state %></<%= prefix %>Province>
  <<%= prefix %>Country><%= Util.abbreviation_to_country_name(address.country) %></<%= prefix %>Country>
  <<%= prefix %>PostalCode><%= address.zip %></<%= prefix %>PostalCode>
  <<%= prefix %>POBoxFlag>N</<%= prefix %>POBoxFlag>
  <<%= prefix %>Phone><%= address.phone %></<%= prefix %>Phone>
<% else %>
  <<%= prefix %>State><%= address.state %></<%= prefix %>State>
  <<%= prefix %>Zip5><%= address.zip %></<%= prefix %>Zip5>
  <<%= prefix %>Zip4></<%= prefix %>Zip4>
  <% phone = (address.phone || "") |> String.replace(~r/^\+1/, "") |> String.replace(~r/\D+/, "") %>
  <% if String.length(phone) == 10 do %>
    <<%= prefix %>Phone><%= phone %></<%= prefix %>Phone>
  <% end %>
<% end %>

<%# Prefix is either "From" or "To" %>
<%# Address1 is actually line 2 %>
<%# Zip4 can be blank %>
<% prefix = String.capitalize("#{@address}") %>
<% address = Map.get(@shipment, @address) %>

<%= if @shipment.international? do %>
  <<%= prefix %>FirstName><%= address.first_name %></<%= prefix %>FirstName>
  <<%= prefix %>LastName><%= address.last_name %></<%= prefix %>LastName>
<% else %>
  <<%= prefix %>Name><%= address.first_name %> <%= address.last_name %></<%= prefix %>Name>
<% end %>

<<%= prefix %>Firm><%= address.company_name %></<%= prefix %>Firm>
<<%= prefix %>Address1><%= address.address_line_2 %></<%= prefix %>Address1>
<<%= prefix %>Address2><%= address.address %></<%= prefix %>Address2>
<<%= prefix %>City><%= address.city %></<%= prefix %>City>

<%= if @shipment.international? and @address == :to do %>
  <<%= prefix %>Province><%= address.state %></<%= prefix %>Province>
  <<%= prefix %>Country><%= Util.abbreviation_to_country_name(address.country) %></<%= prefix %>Country>
  <<%= prefix %>PostalCode><%= address.zip %></<%= prefix %>PostalCode>
  <<%= prefix %>POBoxFlag>N</<%= prefix %>POBoxFlag>
  <<%= prefix %>Phone><%= address.phone %></<%= prefix %>Phone>
<% else %>
  <<%= prefix %>State><%= address.state %></<%= prefix %>State>
  <<%= prefix %>Zip5><%= address.zip %></<%= prefix %>Zip5>
  <<%= prefix %>Zip4></<%= prefix %>Zip4>
  <<%= prefix %>Phone><%= address.phone |> String.replace(~r/^\+1/, "") |> String.replace(~r/\D+/, "") %></<%= prefix %>Phone>
<% end %>


Use the new form_group function with error indicators

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

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

  <% end %>

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

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

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

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

  <%= form_group f, :enabled %>
    <%= label f, :enabled, class: "control-label" %>
    <%= checkbox f, :enabled, class: "form-control" %>
    <%= error_tag f, :enabled %>

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

  <% end %>

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

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

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

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

    <%= label f, :enabled, class: "control-label" %>
    <%= checkbox f, :enabled, class: "form-control" %>
    <%= error_tag f, :enabled %>

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

<% end %>


Pull QR code to the right

Pull QR code to the right

      <%= @podcast.title %>

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

<%= raw @podcast.summary %>

Website

<%= link @podcast.website, to: @podcast.website %>

Description

<%= @podcast.description %>

Author

<%= @podcast.author %>

          <%= if @podcast.payment_link_url do %>

Support

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

          <% end %>

Language

            <%= for language <- @podcast.languages do
                  language.name
                end %>

last modified

<%= @podcast.last_build_date %>

Owner

<%= @podcast.owner.name %>

Explicit

<%= @podcast.explicit %>

Number of Episodes

<%= Enum.count(@podcast.episodes) %>

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

          <%= if episode.payment_link_url do %>

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

Duration

          <% end %>

<%= episode.duration %>

Publishing date

<%= episode.publishing_date %>

Link

<a href="<%= episode.link %>"><%= C.String.truncate episode.link, 80 %>

Deep link

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

Description

<%= raw episode.description %>

Summary

<%= episode.summary %>

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

  <% end %>
<% end %>


adjust formatting on logged out home

adjust formatting on logged out home


polish chart

polish chart

<%= if Enum.empty?(@points) do %>

No data available.

<% else %>
	<svg viewBox="0 0 1060 200" class="chart">
		<%
			{min_x, max_x} = Enum.min_max(Enum.map(@points, & Timex.to_unix(elem(&1, 0))))
			{min_y, max_y} = Enum.min_max(Enum.map(@points, & elem(&1, 1)))

			min_y = min(0, min_y)
			max_y = max(0, max_y)

			zero_y =
				cond do
					min_y < 0 and max_y > 0 ->
						-min_y / (max_y - min_y)
					max_y > 0 ->
						0
					min_y < 0 ->
						1
				end

			normalized_points = Enum.map(@points, fn({x, y, w}) ->
				nx = if max_x == min_x do 0.5 else (Timex.to_unix(x) - min_x) / (max_x - min_x) end
				ny = if max_y == min_y do 0.5 else (y - min_y) / (max_y - min_y) end
				{nx, ny, w, x, y}
			end)
		%>

		<line x1="0" y1="<%= svg_y zero_y %>" x2="1060" y2="<%= svg_y zero_y %>" style="stroke: #aaa; stroke-width: 1;"></line>

		<path fill="none" stroke="#4aa5f3" stroke-width="2" d="<%= svg_path normalized_points %>"></path>

		<%= for {nx, ny, w, x, y} <- normalized_points do %>
			<%
				uuid = String.to_atom(UUID.uuid4(:hex))

				rw = round(w * 10 + 5)

				{tooltip_offset_mult, tooltip_alignment_baseline} =
					if ny > 0.5 do
						{1, "before-edge"}
					else
						{-1, "after-edge"}
					end

				tooltip_text_anchor =
					cond do
						nx < 0.05 -> "start"
						nx > 0.95 -> "end"
						true -> "middle"
					end
			%>

			<circle id="<%= uuid %>" cx="<%= svg_x nx %>" cy="<%= svg_y ny %>" r="<%= rw %>" fill="#1f8dd6"></circle>

			<text text-anchor="<%= tooltip_text_anchor %>" x="<%= svg_x nx %>" y="<%= svg_y(ny) + (rw + 4) * tooltip_offset_mult %>" fill="#333" visibility="hidden">
				<tspan x="<%= svg_x nx %>" alignment-baseline="<%= tooltip_alignment_baseline %>" font-size="18"><%= "#{Timex.format!(x, "{D}/{M}/{YYYY}")}" %></tspan><tspan x="<%= svg_x nx %>" alignment-baseline="<%= tooltip_alignment_baseline %>" dy="<%= 20 * tooltip_offset_mult %>" font-size="22"><%= "#{number_format_simple y}" %></tspan>

				<set attributeName="visibility" from="hidden" to="visible" begin="<%= uuid %>.mouseover" end="<%= uuid %>.mouseout"/>
			</text>
		<% end %>
	</svg>
<% end %>

<%= if Enum.empty?(@points) do %>

No data available.

<% else %>
	<svg viewBox="0 0 1060 200" class="chart">
		<%
			{min_x, max_x} = Enum.min_max(Enum.map(@points, & Timex.to_unix(elem(&1, 0))))
			{min_y, max_y} = Enum.min_max(Enum.map(@points, & elem(&1, 1)))

			min_y = min(0, min_y)
			max_y = max(0, max_y)

			zero_y =
				cond do
					min_y < 0 and max_y > 0 ->
						-min_y / (max_y - min_y)
					max_y > 0 ->
						0
					min_y < 0 ->
						1
				end

			normalized_points = Enum.map(@points, fn({x, y, w}) ->
				nx = if max_x == min_x do 0.5 else (Timex.to_unix(x) - min_x) / (max_x - min_x) end
				ny = if max_y == min_y do 0.5 else (y - min_y) / (max_y - min_y) end
				{nx, ny, w, x, y}
			end)
		%>

		<line x1="0" y1="<%= svg_y zero_y %>" x2="1060" y2="<%= svg_y zero_y %>" style="stroke: #aaa; stroke-width: 1;"></line>

		<path fill="none" stroke="#4aa5f3" stroke-width="2" d="<%= svg_path normalized_points %>"></path>

		<%= for {nx, ny, w, x, y} <- normalized_points do %>
			<%
				uuid = String.to_atom(UUID.uuid4(:hex))

				rw = round(w * 10 + 5)

				{tooltip_offset_mult, tooltip_alignment_baseline} =
					if ny > 0.5 do
						{1, "before-edge"}
					else
						{-1, "after-edge"}
					end

				tooltip_text_anchor =
					cond do
						nx < 0.1 -> "start"
						nx > 0.9 -> "end"
						true -> "middle"
					end
			%>

			<circle id="<%= uuid %>" cx="<%= svg_x nx %>" cy="<%= svg_y ny %>" r="<%= rw %>" fill="#1f8dd6"></circle>

			<text text-anchor="<%= tooltip_text_anchor %>" x="<%= svg_x nx %>" y="<%= svg_y(ny) + (rw + 4) * tooltip_offset_mult %>" fill="#333" visibility="hidden">
				<tspan x="<%= svg_x nx %>" alignment-baseline="<%= tooltip_alignment_baseline %>" font-size="18"><%= "#{Timex.format!(x, "{D}/{M}/{YYYY}")}" %></tspan><tspan x="<%= svg_x nx %>" alignment-baseline="<%= tooltip_alignment_baseline %>" dy="<%= 20 * tooltip_offset_mult %>" font-size="22"><%= "#{number_format_simple y}" %></tspan>

				<set attributeName="visibility" from="hidden" to="visible" begin="<%= uuid %>.mouseover" end="<%= uuid %>.mouseout"/>
			</text>
		<% end %>
	</svg>
<% end %>


remove an obsolete TODO in grammar

remove an obsolete TODO in grammar

document <- doctype? tags? eof;

doctype <- space? 'doctype' space name:(!eol .)+ eol;

tag <- comment / verbatim_text / tag_item;
tag_item <- space? (embedded_engine / inline_html / code / slime_tag);

tags <- (tag crlf*)+;
nested_tags <- crlf+ indent tags dedent;

inline_html <- &'<' text_item+ nested_tags?;

slime_tag <- tag_shortcut tag_spaces space? tag_attributes_and_content;

% NOTE: tag content cannot begin with attribute wrappers if attributes are not present.
tag_attributes_and_content <- attributes space? tag_content
  / !('<%= attr_list_delims |> Map.keys |> Enum.join("' / '") %>') tag_content;

tag_content <- '/' / inline_tag / nested_tags / dynamic_content / inline_text / '';

inline_tag <- ':' space? slime_tag;

inline_text <- !eol text_block;

dynamic_content <- '=' '='? space? (!eol .)+;

code <- output:('=' '='? tag_spaces? / '-') space?
  code:code_lines children:nested_tags? optional_else:code_else_condition?;
code_else_condition <- crlf* space? '-' space? 'else' children:nested_tags?;
code_lines <- code_line / code_line_with_break crlf code_lines;
code_line <- (!(. eol) .)* !code_line_break . &eol;
code_line_with_break <- (!(. eol) .)* code_line_break &eol;
code_line_break <-  ',' / '\\';

tag_spaces <- leading:'<'? trailing:'>'?;

tag_shortcut <- tag:tag_name attrs:shortcuts / tag:tag_name / attrs:shortcuts;

shortcuts <- head:shortcut tail:(shortcut)*;

shortcut <- type:('.' / '#' / '@' / '$' / '%' / '^' / '&' / '+' / '!') value:tag_name;

attributes <- wrapped_attributes / plain_attributes;

wrapped_attributes <-
  <%=
    attr_list_delims
    |> Enum.map(fn ({open, close}) -> "'#{open}' wrapped_attributes_list '#{close}'" end)
    |> Enum.join(" / ")
  %>;

wrapped_attributes_list <- head:wrapped_attribute tail:(space wrapped_attribute)*;

wrapped_attribute <- attribute:attribute / attribute_name:tag_name;

plain_attributes <- head:attribute tail:(space attribute)*;

attribute <- attribute_name '=' attribute_value;

attribute_value <- simple:string / dynamic:(string_with_interpolation / attribute_code);

string <- '"' ('\\' . / !('"' / '#') .)* '"';
string_with_interpolation <- '"' (interpolation / '\\' . / !'"' .)* '"';

attribute_code <- (parentheses / brackets / braces / !(space / eol / ')' / ']' / '}') .)+;

text_item <- static:text / dynamic:interpolation;
text <- ('\\' . / !('#{' / eol) .)+;
interpolation <- '#{' (string / string_with_interpolation / !'}' .)* '}';

parentheses <- '(' (parentheses / !')' .)* ')';
brackets <- '[' (brackets / !']' .)* ']';
braces <- '{' (braces / !'}' .)* '}';

comment <- html_comment / space? code_comment;

html_comment <- indent:space? type:'/!' content:text_block;

code_comment <- '/' text_block;

verbatim_text <- indent:space? type:[|'] content:text_block;

text_block <- indented_text_line (crlf
  indent lines:text_block_nested_lines dedent)?;
text_block_nested_lines <- indented_text_line (crlf (
  indent lines:text_block_nested_lines dedent / lines:text_block_nested_lines
))*;

embedded_engine <- tag_name ':' (crlf indent lines:embedded_engine_lines dedent);
embedded_engine_lines <- indented_text_line (crlf indented_text_line)*;

indented_text_line <- space? text_item*;

tag_name <- [a-zA-Z0-9_-]+;
attribute_name <- [a-zA-Z0-9_@:-]+;
space <- [ \t]+;
indent <- '\x{0E}';
dedent <- '\x{0F}';
crlf <- '\r'? '\n';
eof <- !.;
eol <- dedent / crlf / eof;

document <- doctype? tags? eof;

doctype <- space? 'doctype' space name:(!eol .)+ eol;

tag <- comment / verbatim_text / tag_item;
tag_item <- space? (embedded_engine / inline_html / code / slime_tag);

tags <- (tag crlf*)+;
nested_tags <- crlf+ indent tags dedent;

inline_html <- &'<' text_item+ nested_tags?;

slime_tag <- tag_shortcut tag_spaces space? tag_attributes_and_content;

% NOTE: tag content cannot begin with attribute wrappers if attributes are not present.
tag_attributes_and_content <- attributes space? tag_content
  / !('<%= attr_list_delims |> Map.keys |> Enum.join("' / '") %>') tag_content;

tag_content <- '/' / inline_tag / nested_tags / dynamic_content / inline_text / '';

inline_tag <- ':' space? slime_tag;

inline_text <- !eol text_block;

dynamic_content <- '=' '='? space? (!eol .)+;

code <- output:('=' '='? tag_spaces? / '-') space?
  code:code_lines children:nested_tags? optional_else:code_else_condition?;
code_else_condition <- crlf* space? '-' space? 'else' children:nested_tags?;
code_lines <- code_line / code_line_with_break crlf code_lines;
code_line <- (!(. eol) .)* !code_line_break . &eol;
code_line_with_break <- (!(. eol) .)* code_line_break &eol;
code_line_break <-  ',' / '\\';

tag_spaces <- leading:'<'? trailing:'>'?;

tag_shortcut <- tag:tag_name attrs:shortcuts / tag:tag_name / attrs:shortcuts;

shortcuts <- head:shortcut tail:(shortcut)*;

shortcut <- type:('.' / '#' / '@' / '$' / '%' / '^' / '&' / '+' / '!') value:tag_name;

attributes <- wrapped_attributes / plain_attributes;

wrapped_attributes <-
  <%=
    attr_list_delims
    |> Enum.map(fn ({open, close}) -> "'#{open}' wrapped_attributes_list '#{close}'" end)
    |> Enum.join(" / ")
  %>;

wrapped_attributes_list <- head:wrapped_attribute tail:(space wrapped_attribute)*;

wrapped_attribute <- attribute:attribute / attribute_name:tag_name;

plain_attributes <- head:attribute tail:(space attribute)*;

attribute <- attribute_name '=' attribute_value;

attribute_value <- simple:string / dynamic:(string_with_interpolation / attribute_code);

string <- '"' ('\\' . / !('"' / '#') .)* '"';

% TODO: separate static and dynamic blocks
string_with_interpolation <- '"' (interpolation / '\\' . / !'"' .)* '"';

attribute_code <- (parentheses / brackets / braces / !(space / eol / ')' / ']' / '}') .)+;

text_item <- static:text / dynamic:interpolation;
text <- ('\\' . / !('#{' / eol) .)+;
interpolation <- '#{' (string / string_with_interpolation / !'}' .)* '}';

parentheses <- '(' (parentheses / !')' .)* ')';
brackets <- '[' (brackets / !']' .)* ']';
braces <- '{' (braces / !'}' .)* '}';

comment <- html_comment / space? code_comment;

html_comment <- indent:space? type:'/!' content:text_block;

code_comment <- '/' text_block;

verbatim_text <- indent:space? type:[|'] content:text_block;

text_block <- indented_text_line (crlf
  indent lines:text_block_nested_lines dedent)?;
text_block_nested_lines <- indented_text_line (crlf (
  indent lines:text_block_nested_lines dedent / lines:text_block_nested_lines
))*;

embedded_engine <- tag_name ':' (crlf indent lines:embedded_engine_lines dedent);
embedded_engine_lines <- indented_text_line (crlf indented_text_line)*;

indented_text_line <- space? text_item*;

tag_name <- [a-zA-Z0-9_-]+;
attribute_name <- [a-zA-Z0-9_@:-]+;
space <- [ \t]+;
indent <- '\x{0E}';
dedent <- '\x{0F}';
crlf <- '\r'? '\n';
eof <- !.;
eol <- dedent / crlf / eof;


change dialer@ -> calling@

change dialer@ -> calling@

<%= if @calling_page_is_down["metadata"]["calling_page_is_down"] == "Show Message" do %>

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

      <%= raw(@calling_page_is_down["content"]) %>

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

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

    <% end %>

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

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

            <%= raw(@candidate_calling_page) %>

             First,

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

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

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

             Fourth,

              Login to our dialer, and get calling!

 Calling hours

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

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

 Questions?

                Please email
                <% email =
                  case @brand do
                    "jd" -> "calling@justicedemocrats.com"
                    "bnc" -> "calling@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 %>

<% end %>

<%= if @calling_page_is_down["metadata"]["calling_page_is_down"] == "Show Message" do %>

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

      <%= raw(@calling_page_is_down["content"]) %>

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

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

    <% end %>

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

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

            <%= raw(@candidate_calling_page) %>

             First,

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

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

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

             Fourth,

              Login to our dialer, and get calling!

 Calling hours

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

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

 Questions?

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

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

        <% else %>

          <%= if @candidate do %>

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

          <% else %>

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

          <% end %>

 Please make calls for one of our other candidates:

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

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

            <% end %>

        <% end %>

      <% else %>

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

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

 Please make calls for one of our other candidates:

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

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

            <% end %>

        <% else %>

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

            Please fill out

              this form

            and we'll help you get set up soon.

        <% end %>

      <% end %>

<% end %>


Add meta tags

Add meta tags

<!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="Chat anonymously with a randomly chosen stranger">
    <meta name="author" content="cazrin.net">

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

      <input class="sidebar__toggle" id="sidebar-toggle" type="checkbox">

          <svg viewBox="0 0 92.833 92.833">
            <use xlink:href="/images/menu_icon.svg#icon"/>
          </svg>

            Hello

            Stranger

Chat anonymously with a randomly chosen stranger.

          By using this site you accept the
          <%= link "User Agreement", to: page_path(@conn, :agreement) %>

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

    <%= render "_fonts_tracking_code.html" %>

<!DOCTYPE html>

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

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

      <input class="sidebar__toggle" id="sidebar-toggle" type="checkbox">

          <svg viewBox="0 0 92.833 92.833">
            <use xlink:href="/images/menu_icon.svg#icon"/>
          </svg>

            Hello

            Stranger

Chat anonymously with a randomly chosen stranger.

          By using this site you accept the
          <%= link "User Agreement", to: page_path(@conn, :agreement) %>

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

    <%= render "_fonts_tracking_code.html" %>


claim your account

claim your account

New User

<%= form_for @changeset, user_path(@conn, :create), fn f -> %>
  <%= if @changeset.action do %>

An error occured. Please check the errors below!

  <% end %>

  <%= if {"has already been taken", []} == @changeset.errors[:email] do %>

Welcome Podcaster!

Maybe you are surprised, that there is already a user account with this email address.

    This is valid for all email adresses, that we parsed from podcast feeds as itunes owners.

    In this case, please
    <%= link "Request a login link", to: user_path(@conn, :forgot_password),
                                     class: "alert-link" %>
    via email to claim your account and set your password.

  <% end %>

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

    <%= label f, :username, class: "control-label" %>
    <%= text_input f, :username, placeholder: "Username", class: "form-control" %>
    <%= error_tag f, :username %>

    <%= label f, :email, class: "control-label" %>
    <%= email_input f, :email, placeholder: "Email", class: "form-control" %>
    <%= error_tag f, :email %>

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

    <%= label f, :password_confirmation, class: "control-label" %>
    <%= password_input f, :password_confirmation, placeholder: "Password Confirmation", class: "form-control" %>
    <%= error_tag f, :password_confirmation %>

  <%= submit "Create User", class: "btn btn-primary" %>
<% end %>

New User

<%= form_for @changeset, user_path(@conn, :create), fn f -> %>
  <%= if @changeset.action do %>

An error occured. Please check the errors below!

  <% end %>

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

    <%= label f, :username, class: "control-label" %>
    <%= text_input f, :username, placeholder: "Username", class: "form-control" %>
    <%= error_tag f, :username %>

    <%= label f, :email, class: "control-label" %>
    <%= email_input f, :email, placeholder: "Email", class: "form-control" %>
    <%= error_tag f, :email %>

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

    <%= label f, :password_confirmation, class: "control-label" %>
    <%= password_input f, :password_confirmation, placeholder: "Password Confirmation", class: "form-control" %>
    <%= error_tag f, :password_confirmation %>

  <%= submit "Create User", class: "btn btn-primary" %>
<% end %>


Moved add buttons to botton of panel

Moved add buttons to botton of panel

Add your information!

    Enter your information to be included in the student directory. All fields are optional.
    <%= if @support_email do %>

Questions or comments? Email <a href='mailto:<%= @support_email %>?Subject=Support'>
        <%= @support_email %>
    <% end %>

  <%= form_for @conn, "/", [as: :entry, class: "form-horizontal"],  fn _ -> %>

Student Information

        <button id="add-student-button" type="button" class="btn btn-default btn-small pull-right">
           Add Another Student
        </button>

Parent Information

        <button id="add-parent-button" type="button" class="btn btn-default btn-small pull-right">
           Add Another Parent
        </button>

Notes

            Notes

              <textarea name="entry[notes]" id="notes" rows="3" class="form-control" placeholder="Anything you want the fine folks compiling the directory to know. Let us know if you are on the PTO, a classroom representative, on the School Committee, on the School Council, or on the Safety Committee."></textarea>

        <button type="submit" class="btn btn-lg btn-success btn-block">Submit</button>

<% end %>

Add your information!

    Enter your information to be included in the student directory. All fields are optional.
    <%= if @support_email do %>

Questions or comments? Email <a href='mailto:<%= @support_email %>?Subject=Support'>
        <%= @support_email %>
    <% end %>

  <%= form_for @conn, "/", [as: :entry, class: "form-horizontal"],  fn _ -> %>

        <button id="add-student-button" type="button" class="btn btn-default btn-small pull-right">
           Add Another Student
        </button>

Student Information

        <button id="add-parent-button" type="button" class="btn btn-default btn-small pull-right">
           Add Another Parent
        </button>

Parent Information

Notes

            Notes

              <textarea name="entry[notes]" id="notes" rows="3" class="form-control" placeholder="Anything you want the fine folks compiling the directory to know. Let us know if you are on the PTO, a classroom representative, on the School Committee, on the School Council, or on the Safety Committee."></textarea>

        <button type="submit" class="btn btn-lg btn-success btn-block">Submit</button>

<% end %>


dont show instructions box if no instructions

<%= if @mobile do %>

<% else %>

<% end %>
  <%= if @event != nil do %>

 <%= @event.title %>

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

    <%= if @event.instructions != nil and @event.instructions != "" do %>

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

    <% end %>

 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

 <%= @event.contact.name %>

 <a href="mailto:<%= @event.contact.email_address %>"> <%= @event.contact.email_address %>

 <%= @event.contact.phone_number %>

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

 RSVP: 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" />

               Address

              <input name="address" type="text" placeholder="1600 Pennsylvania Avenue" style="width: 100%;"/>

               Zip Code

              <input name="zip" type="text" placeholder="20500" style="width: 100%;"/>

               City

              <input name="city" type="text" placeholder="Washington" style="width: 100%;"/>

               State

              <input name="state" type="text" placeholder="DC" style="width: 100%;"/>

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

        </form>

More Events

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

  <% else %>

        Hm, it seems as if you've either stumbled upon an event that doesn't exist
        or is in the past.

        Go back to our events map to find an event in the future here.

More Events

  <% end %>

<%= if @mobile do %>

<% else %>

<% end %>
  <%= if @event != nil do %>

 <%= @event.title %>

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

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

 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

 <%= @event.contact.name %>

 <a href="mailto:<%= @event.contact.email_address %>"> <%= @event.contact.email_address %>

 <%= @event.contact.phone_number %>

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

 RSVP: 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" />

               Address

              <input name="address" type="text" placeholder="1600 Pennsylvania Avenue" style="width: 100%;"/>

               Zip Code

              <input name="zip" type="text" placeholder="20500" style="width: 100%;"/>

               City

              <input name="city" type="text" placeholder="Washington" style="width: 100%;"/>

               State

              <input name="state" type="text" placeholder="DC" style="width: 100%;"/>

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

        </form>

More Events

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

  <% else %>

        Hm, it seems as if you've either stumbled upon an event that doesn't exist
        or is in the past.

        Go back to our events map to find an event in the future here.

More Events

  <% end %>


typo :-)

typo :-)

Login

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

    <%= label f, :username_or_email, class: "control-label" %>
    <%= text_input f, :username, placeholder: "Username", class: "form-control" %>

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

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

<%= link "Forgot password", to: user_path(@conn, :forgot_password) %>

Login

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

    <%= label f, :username_or_password, class: "control-label" %>
    <%= text_input f, :username, placeholder: "Username", class: "form-control" %>

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

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

<%= link "Forgot password", to: user_path(@conn, :forgot_password) %>


Add some missing gettext

Add some missing gettext

<!DOCTYPE html>

    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">
    <meta name="apple-mobile-web-app-title" content="ElixirJobs">
    <meta name="application-name" content="<%= gettext("ElixirJobs") %>">
    <meta name="theme-color" content="#8652ad">
    <title><%= gettext("ElixirJobs") %></title>
    <link rel="apple-touch-icon" sizes="180x180" href="<%= static_path(@conn, "/icons/apple-touch-icon.png") %>">
    <link rel="icon" type="image/png" sizes="32x32" href="<%= static_path(@conn, "/icons/favicon-32x32.png") %>">
    <link rel="icon" type="image/png" sizes="16x16" href="<%= static_path(@conn, "/icons/favicon-16x16.png") %>">
    <link rel="manifest" href="/manifest.json">
    <link rel="alternate" type="application/rss+xml" title="ElixirJobs - RSS" href="<%= offer_path(@conn, :rss) %>" />
    <link rel="mask-icon" href="<%= static_path(@conn, "/icons/safari-pinned-tab.svg") %>" color="#8652ad">
    <link rel="stylesheet" href="<%= static_path(@conn, "/css/app.css") %>">

    <%= render_shared "_sidebar.html", conn: @conn %>

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

    <%= render_shared "_footer.html", conn: @conn %>

<!DOCTYPE html>

    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">
    <meta name="apple-mobile-web-app-title" content="ElixirJobs">
    <meta name="application-name" content="ElixirJobs">
    <meta name="theme-color" content="#8652ad">
    <title>ElixirJobs</title>
    <link rel="apple-touch-icon" sizes="180x180" href="<%= static_path(@conn, "/icons/apple-touch-icon.png") %>">
    <link rel="icon" type="image/png" sizes="32x32" href="<%= static_path(@conn, "/icons/favicon-32x32.png") %>">
    <link rel="icon" type="image/png" sizes="16x16" href="<%= static_path(@conn, "/icons/favicon-16x16.png") %>">
    <link rel="manifest" href="/manifest.json">
    <link rel="alternate" type="application/rss+xml" title="ElixirJobs - RSS" href="<%= offer_path(@conn, :rss) %>" />
    <link rel="mask-icon" href="<%= static_path(@conn, "/icons/safari-pinned-tab.svg") %>" color="#8652ad">
    <link rel="stylesheet" href="<%= static_path(@conn, "/css/app.css") %>">

    <%= render_shared "_sidebar.html", conn: @conn %>

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

    <%= render_shared "_footer.html", conn: @conn %>


Switch password to password field on template

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

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

  <% end %>

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

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

    <%= label f, :password_hash, class: "control-label" %>
    <%= password_input f, :password_hash, class: "form-control" %>
    <%= error_tag f, :password_hash %>

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

  <% end %>

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

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

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

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

<% end %>


Add missing quote

Add missing quote


Set <html> lang attribute to current locale

<!DOCTYPE html>
<html lang="<%= @conn.assigns.locale %>">

    <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="<%= assigns[:page_description] %>">
    <meta name="author" content="Dataskydd.net">
    <meta name="referrer" content="no-referrer">
    <meta property="og:image" content="<%= Routes.static_path(@conn, "/images/dataskydd_eye2.png") %>">
    <%= if @view_template == "status.html" do %>
      <meta http-equiv="refresh" content="5">
    <% end %>
    <title><%= assigns[:page_title] %> | Webbkoll - dataskydd.net</title>
    <link rel="stylesheet" href="<%= Routes.static_path(@conn, "/css/app.css") %>">

    <link rel="apple-touch-icon" sizes="57x57" href="/images/apple-touch-icon-57x57.png">
    <link rel="apple-touch-icon" sizes="114x114" href="/images/apple-touch-icon-114x114.png">
    <link rel="apple-touch-icon" sizes="72x72" href="/images/apple-touch-icon-72x72.png">
    <link rel="apple-touch-icon" sizes="144x144" href="/images/apple-touch-icon-144x144.png">
    <link rel="apple-touch-icon" sizes="60x60" href="/images/apple-touch-icon-60x60.png">
    <link rel="apple-touch-icon" sizes="120x120" href="/images/apple-touch-icon-120x120.png">
    <link rel="apple-touch-icon" sizes="76x76" href="/images/apple-touch-icon-76x76.png">
    <link rel="apple-touch-icon" sizes="152x152" href="/images/apple-touch-icon-152x152.png">
    <link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon-180x180.png">
    <link rel="icon" type="image/png" href="/images/favicon-192x192.png" sizes="192x192">
    <link rel="icon" type="image/png" href="/images/favicon-160x160.png" sizes="160x160">
    <link rel="icon" type="image/png" href="/images/favicon-96x96.png" sizes="96x96">
    <link rel="icon" type="image/png" href="/images/favicon-16x16.png" sizes="16x16">
    <link rel="icon" type="image/png" href="/images/favicon-32x32.png" sizes="32x32">

    <meta name="msapplication-TileColor" content="#da532c">
    <meta name="msapplication-TileImage" content="/images/mstile-144x144.png">

              <a href="/<%= @conn.assigns.locale %>">

                webbkoll | dataskydd.net

              <%= link gettext("News"), to: Routes.page_path(@conn, :news, @conn.assigns.locale) %>

              <%= link gettext("About"), to: Routes.page_path(@conn, :about, @conn.assigns.locale) %>

              <%= link gettext("FAQ"), to: Routes.page_path(@conn, :faq, @conn.assigns.locale) %>

            <% current_lang = @conn.assigns.locale %>

              <%= link language_from_code(current_lang), to: path_helper(@conn, current_lang), aria_haspopup: "true", class: "language-select" %>

                <%= for lang <- Map.keys(Application.get_env(:webbkoll, :locales)) |> Enum.reject(& &1 == current_lang) do %>

                  <%= link language_from_code(lang), to: path_helper(@conn, lang) %>

                <% end %>

           <form role="search" method="get" action="/<%= @conn.assigns.locale %>/check">
              <input name="url" type="search" placeholder="example.com" aria-label="<%= gettext("URL to check") %>">
              <button type="submit" aria-label="<%= gettext("Search") %>" title="<%= gettext("Search") %>">

              </button>
            </form>

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

            <%= gettext "Test results are stored in memory on our server for 24 hours. We don't show a list of tested URLs. We don't use URLs or test results. We don't log IP addresses and we don't use cookies." %>

            <%= gettext "Developed by" %> dataskydd.net.

<%= gettext("The code is available on GitHub.") |> raw %>

<%= gettext("Feedback? Questions? info@dataskydd.net") |> raw %>

Twitter: @dataskyddnet

<%= link gettext("Support us"), to: Routes.page_path(@conn, :donate, @conn.assigns.locale) %>

<%= Application.get_env(:webbkoll, :version) %>

<!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="<%= assigns[:page_description] %>">
    <meta name="author" content="Dataskydd.net">
    <meta name="referrer" content="no-referrer">
    <meta property="og:image" content="<%= Routes.static_path(@conn, "/images/dataskydd_eye2.png") %>">
    <%= if @view_template == "status.html" do %>
      <meta http-equiv="refresh" content="5">
    <% end %>
    <title><%= assigns[:page_title] %> | Webbkoll - dataskydd.net</title>
    <link rel="stylesheet" href="<%= Routes.static_path(@conn, "/css/app.css") %>">

    <link rel="apple-touch-icon" sizes="57x57" href="/images/apple-touch-icon-57x57.png">
    <link rel="apple-touch-icon" sizes="114x114" href="/images/apple-touch-icon-114x114.png">
    <link rel="apple-touch-icon" sizes="72x72" href="/images/apple-touch-icon-72x72.png">
    <link rel="apple-touch-icon" sizes="144x144" href="/images/apple-touch-icon-144x144.png">
    <link rel="apple-touch-icon" sizes="60x60" href="/images/apple-touch-icon-60x60.png">
    <link rel="apple-touch-icon" sizes="120x120" href="/images/apple-touch-icon-120x120.png">
    <link rel="apple-touch-icon" sizes="76x76" href="/images/apple-touch-icon-76x76.png">
    <link rel="apple-touch-icon" sizes="152x152" href="/images/apple-touch-icon-152x152.png">
    <link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon-180x180.png">
    <link rel="icon" type="image/png" href="/images/favicon-192x192.png" sizes="192x192">
    <link rel="icon" type="image/png" href="/images/favicon-160x160.png" sizes="160x160">
    <link rel="icon" type="image/png" href="/images/favicon-96x96.png" sizes="96x96">
    <link rel="icon" type="image/png" href="/images/favicon-16x16.png" sizes="16x16">
    <link rel="icon" type="image/png" href="/images/favicon-32x32.png" sizes="32x32">

    <meta name="msapplication-TileColor" content="#da532c">
    <meta name="msapplication-TileImage" content="/images/mstile-144x144.png">

              <a href="/<%= @conn.assigns.locale %>">

                webbkoll | dataskydd.net

              <%= link gettext("News"), to: Routes.page_path(@conn, :news, @conn.assigns.locale) %>

              <%= link gettext("About"), to: Routes.page_path(@conn, :about, @conn.assigns.locale) %>

              <%= link gettext("FAQ"), to: Routes.page_path(@conn, :faq, @conn.assigns.locale) %>

            <% current_lang = @conn.assigns.locale %>

              <%= link language_from_code(current_lang), to: path_helper(@conn, current_lang), aria_haspopup: "true", class: "language-select" %>

                <%= for lang <- Map.keys(Application.get_env(:webbkoll, :locales)) |> Enum.reject(& &1 == current_lang) do %>

                  <%= link language_from_code(lang), to: path_helper(@conn, lang) %>

                <% end %>

           <form role="search" method="get" action="/<%= @conn.assigns.locale %>/check">
              <input name="url" type="search" placeholder="example.com" aria-label="<%= gettext("URL to check") %>">
              <button type="submit" aria-label="<%= gettext("Search") %>" title="<%= gettext("Search") %>">

              </button>
            </form>

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

            <%= gettext "Test results are stored in memory on our server for 24 hours. We don't show a list of tested URLs. We don't use URLs or test results. We don't log IP addresses and we don't use cookies." %>

            <%= gettext "Developed by" %> dataskydd.net.

<%= gettext("The code is available on GitHub.") |> raw %>

<%= gettext("Feedback? Questions? info@dataskydd.net") |> raw %>

Twitter: @dataskyddnet

<%= link gettext("Support us"), to: Routes.page_path(@conn, :donate, @conn.assigns.locale) %>

<%= Application.get_env(:webbkoll, :version) %>


feat(admin): update inner template label

<%= unless @id == @skip_id || @id == :sort_order ||
           @id == :inserted_at || @id == :updated_at do %>
  <div class="form-group">
    <%= label @f, @column.label, class: "control-label" %>
    <%= case @column.type do
          :boolean -> checkbox @f, @id, class: "form-control"
          :integer -> number_input @f, @id, class: "form-control"
          :datetime -> datetime_select @f, @id, class: "form-control"
          :string -> text_input @f, @id, class: "form-control"
          _ ->

        end
    %>
    <%= error_tag @f, @id %>
  </div>
<% end %>

<%= unless @id == @skip_id || @id == :sort_order ||
           @id == :inserted_at || @id == :updated_at do %>

    <label class="control-label" for="<%= @id %>"><%= @column.label %>
    <%= case @column.type do
          :boolean -> checkbox @f, @id, class: "form-control"
          :integer -> number_input @f, @id, class: "form-control"
          :datetime -> datetime_select @f, @id, class: "form-control"
          :string -> text_input @f, @id, class: "form-control"
          _ ->

        end
    %>
    <%= error_tag @f, @id %>

<% end %>


hide learn page for now

hide learn page for now

A liquid democracy where anyone can vote on anything.

EXPLORE

		<%= for poll <- @examples do %>

				<a class="liquio-inline" href="/polls/<%= poll.id %>" style="text-decoration: none; display: inline-block;">
					<i class="fa fa-<%= poll.fa_icon %>" aria-hidden="true">

<%= poll.title %>

					<%= render Liquio.HtmlPollView, "embed.html", poll: poll %>

		<%= end %>

		View source on GitHub

A liquid democracy where anyone can vote on anything.

	<paper-button raised class="default">Learn more</paper-button>

EXPLORE

		<%= for poll <- @examples do %>

				<a class="liquio-inline" href="/polls/<%= poll.id %>" style="text-decoration: none; display: inline-block;">
					<i class="fa fa-<%= poll.fa_icon %>" aria-hidden="true">

<%= poll.title %>

					<%= render Liquio.HtmlPollView, "embed.html", poll: poll %>

		<%= end %>

		View source on GitHub


give me the help back

give me the help back

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

<script>

  function showHiddenContent (ev) {
    debugger;

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

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

  console.log(button)

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

</script>

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

<script>

  function showHiddenContent (ev) {

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

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

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

</script>


Added delete link to user#edit

Added delete link to user#edit

Closes #317

  <%= gen_breadcrumbs([
    gettext("Users"),
    {full_name(@user), user_path(@conn, :show, @user)},
    gettext("Edit")]) %>

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

    <%= render "form.html", changeset: @changeset, action: user_path(@conn, :update, @user), conn: @conn, current_user: @current_user, backlink: user_path(@conn, :show, @user) %>
    <%= button gettext("Delete Account"), to: user_path(@conn, :delete, @user), method: "delete", class: "link_button delete_link_button", form: [class: "link_button_form card__morelink-border"] %>

  <%= gen_breadcrumbs([
    gettext("Users"),
    {full_name(@user), user_path(@conn, :show, @user)},
    gettext("Edit")]) %>

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

    <%= button to: user_path(@conn, :delete, @user), method: "delete", class: "card__edit button button-link button--icon button--small", form: [class: "card__edit button button--icon button--small"] do %>

    <% end %>
    <%= render "form.html", changeset: @changeset, action: user_path(@conn, :update, @user), conn: @conn, current_user: @current_user, backlink: user_path(@conn, :show, @user) %>


Remove back link

Remove back link

<%= @title %>

<%= if @raga.time |> present? do %>

    Time

    <%= pretty_time @raga.time %>

<% end %>

<%= if @raga.chakra |> present? do %>

    Chakra

    <%= pretty_chakra @raga.chakra %>

  <%= chakra_image @raga.chakra %>
<% end %>

  Ascending Scale

  <%= @raga.ascending_scale %>

  Descending Scale

  <%= @raga.descending_scale %>

<%= if @raga.pakad |> present? do %>

    Pakad

    <%= @raga.pakad %>

<% end %>

<%= if @raga.drone |> present? do %>

    Drone

    <%= @raga.drone %>

<% end %>

<%= if @raga.samvaadi |> present? do %>

    Samvaadi

    <%= @raga.samvaadi %>

<% end %>

<%= if @raga.vaadi |> present? do %>

    Vaadi

    <%= @raga.vaadi %>

<% end %>

<%= if @raga.spotify_playlist_url do %>

  <iframe class="spotify-playlist" height="480" src="https://embed.spotify.com/?uri=<%= @raga.spotify_playlist_url %>" width="100%" frameborder="0" allowtransparency="true">
<% end %>

<%= link "Back", to: raga_path(@conn, :index) %>


change google analytics code.

change google analytics code.

<!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">
    <link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet">
    <meta name="description" content="">
    <meta name="author" content="">

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

  <body>

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

    <script>
      (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
      (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
      m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
      })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');

      ga('create', 'UA-4855628-21', 'auto');
      ga('send', 'pageview');
    </script>

    <script>
      /**
      * Function that tracks a click on an outbound link in Analytics.
      * This function takes a valid URL string as an argument, and uses that URL string
      * as the event label. Setting the transport method to 'beacon' lets the hit be sent
      * using 'navigator.sendBeacon' in browser that support it.
      */

      var trackOutboundLink = function(url) {
        ga('send', 'event', 'outbound', 'click', url, {
         'transport': 'beacon',
         'hitCallback': function(){document.location = url;}
        });
      }
    </script>
    <script src="<%= static_path(@conn, "/js/elm.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">
    <link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet">
    <meta name="description" content="">
    <meta name="author" content="">

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

  <body>

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

    <script>
      (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
      (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
      m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
      })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');

      ga('create', 'UA-4855628-20', 'auto');
      ga('send', 'pageview');
    </script>

    <script>
      /**
      * Function that tracks a click on an outbound link in Analytics.
      * This function takes a valid URL string as an argument, and uses that URL string
      * as the event label. Setting the transport method to 'beacon' lets the hit be sent
      * using 'navigator.sendBeacon' in browser that support it.
      */

      var trackOutboundLink = function(url) {
        ga('send', 'event', 'outbound', 'click', url, {
         'transport': 'beacon',
         'hitCallback': function(){document.location = url;}
        });
      }
    </script>
    <script src="<%= static_path(@conn, "/js/elm.js") %>"></script>
    <script src="<%= static_path(@conn, "/js/app.js") %>"></script>
  </body>
</html>


Change page title.

Change page title.

<!DOCTYPE html>

XEE.JP

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

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

トップページ

実験管理画面

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

        <% else %>

<%= link "新規登録", to: registration_path(@conn, :new) %>

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

        <% end %>

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

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

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

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

      <%= @inner %>

  Copyright (C) 2015-2016 Ryohei HAYASHI All Rights Reserved.

<!DOCTYPE html>

XEE.JP

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

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

トップページ

実験管理画面

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

        <% else %>

<%= link "新規登録", to: registration_path(@conn, :new) %>

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

        <% end %>

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

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

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

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

      <%= @inner %>

  Copyright (C) 2015-2016 Ryohei HAYASHI All Rights Reserved.


trasactions messages

trasactions messages

Transactions

<%= gettext "Type" %>

<%= gettext "Transaction ID" %>

<%= gettext "Block" %>

<%= gettext "Completed on" %>

      <%= for transaction <- @transactions do %>
        <div class="full-width-bar <%= get_class(transaction.type)%>">

            <%= if transaction.type == "ContractTransaction" do %>

<%= gettext "Contract" %>

            <% end %>
            <%= if transaction.type == "ClaimTransaction" do %>

<%= gettext "Gas Claim" %>

            <% end %>
            <%= if transaction.type == "InvocationTransaction" do %>

<%= gettext "Invocation" %>

            <% end %>
            <%= if transaction.type == "IssueTransaction" do %>

<%= gettext "Asset Issue" %>

            <% end %>
            <%= if transaction.type == "RegisterTransaction" do %>

<%= gettext "Asset Register" %>

            <% end %>
            <%= if transaction.type == "PublishTransaction" do %>

<%= gettext "Contract Publish" %>

            <% end %>
            <a href="<%=transaction_path(@conn, :index, transaction.txid )%>" alt="View transaction" title="View transaction" class="large-blue-link col-5-width"><%=transaction.txid%>…

   <a href="<%= block_path( @conn, :index, transaction.block_hash, 1) %>" alt="View block" title="View block" class="blue-link"><%= transaction.block_height %>

              <%=
                {:ok, date_time} = DateTime.from_unix(transaction.time, :second)
                DateTime.to_date(date_time)
              %> |
              <%=
                {:ok, date_time} = DateTime.from_unix(transaction.time, :second)
                DateTime.to_time(date_time)
              %>

          <button class="btn-accordion"><img src="<%= static_path(@conn, "/images/ICON_DownArrow.svg") %>" alt="Accordion down arrow" title="Accordion down arrow" class="accordion-down-arrow" width="13px" height="8px" /></button>

              <%= if transaction.type == "ContractTransaction" do %>

<%= gettext "Sent from" %>

                <%= for vin <- transaction.vin do %>

                    <a href='<%= address_path(@conn, :index, vin.address_hash)%>' alt="View wallet address" title="View wallet address" class="large-blue-link wallet-address"><%= vin.address_hash %>

<%= Helpers.round_or_not(vin.value) %> <%= Api.get_asset_name(vin.asset) %>

                <% end %>
              <% end %>
              <%= if transaction.type == "ClaimTransaction" do %>

<%= gettext "Claimed from" %>

                <%= for claim <- transaction.claims do %>

                    <a href='<%= address_path(@conn, :index, claim.address_hash)%>' alt="View wallet address" title="View wallet address" class="large-blue-link wallet-address"><%= claim.address_hash %>

<%= Helpers.round_or_not(claim.value) %> <%= Api.get_asset_name(claim.asset) %>

                <% end %>
              <% end %>

              <%= if transaction.type == "ContractTransaction" or transaction.type == "ClaimTransaction" or transaction.type == "IssueTransaction" do %>

<%= gettext "Sent to" %>

                <%= for vout <- transaction.vouts do %>

                    <a href='<%= address_path(@conn, :index, vout.address_hash)%>' alt="View wallet address" title="View wallet address" class="large-blue-link wallet-address"><%= vout.address_hash %>

<%= Helpers.round_or_not(vout.value) %> <%= Api.get_asset_name(vout.asset) %>

                <% end %>
              <% end %>

Network fee: <%=transaction.net_fee%> · <%= gettext "Gas System Fee" %>: <%=transaction.sys_fee%> GAS · <%= gettext "Data Size" %>: <%=transaction.size%> <%= gettext "bytes" %>

      <%end%>

<%= gettext "Showing 12 out of 120000 transactions" %>

  <a href="<%= transactions_path(@conn, :go_to_page, 2) %>" alt="Load more transactions" title="Load more transactions" class="btn-primary btn-transactions-primary"><%= gettext "Load more transactions" %>

Transactions

Type

Transaction ID

Block

Completed on

      <%= for transaction <- @transactions do %>
        <div class="full-width-bar <%= get_class(transaction.type)%>">

            <%= if transaction.type == "ContractTransaction" do %>

Contract

            <% end %>
            <%= if transaction.type == "ClaimTransaction" do %>

Gas Claim

            <% end %>
            <%= if transaction.type == "InvocationTransaction" do %>

Invocation

            <% end %>
            <%= if transaction.type == "IssueTransaction" do %>

Asset Issue

            <% end %>
            <%= if transaction.type == "RegisterTransaction" do %>

Asset Register

            <% end %>
            <%= if transaction.type == "PublishTransaction" do %>

Contract Publish

            <% end %>
            <a href="<%=transaction_path(@conn, :index, transaction.txid )%>" alt="View transaction" title="View transaction" class="large-blue-link col-5-width"><%=transaction.txid%>…

   <a href="<%= block_path( @conn, :index, transaction.block_hash, 1) %>" alt="View block" title="View block" class="blue-link"><%= transaction.block_height %>

              <%=
                {:ok, date_time} = DateTime.from_unix(transaction.time, :second)
                DateTime.to_date(date_time)
              %> |
              <%=
                {:ok, date_time} = DateTime.from_unix(transaction.time, :second)
                DateTime.to_time(date_time)
              %>

          <button class="btn-accordion"><img src="<%= static_path(@conn, "/images/ICON_DownArrow.svg") %>" alt="Accordion down arrow" title="Accordion down arrow" class="accordion-down-arrow" width="13px" height="8px" /></button>

              <%= if transaction.type == "ContractTransaction" do %>

Sent from

                <%= for vin <- transaction.vin do %>

                    <a href='<%= address_path(@conn, :index, vin.address_hash)%>' alt="View wallet address" title="View wallet address" class="large-blue-link wallet-address"><%= vin.address_hash %>

<%= Helpers.round_or_not(vin.value) %> <%= Api.get_asset_name(vin.asset) %>

                <% end %>
              <% end %>
              <%= if transaction.type == "ClaimTransaction" do %>

Claimed from

                <%= for claim <- transaction.claims do %>

                    <a href='<%= address_path(@conn, :index, claim.address_hash)%>' alt="View wallet address" title="View wallet address" class="large-blue-link wallet-address"><%= claim.address_hash %>

<%= Helpers.round_or_not(claim.value) %> <%= Api.get_asset_name(claim.asset) %>

                <% end %>
              <% end %>

              <%= if transaction.type == "ContractTransaction" or transaction.type == "ClaimTransaction" or transaction.type == "IssueTransaction" do %>

Sent to

                <%= for vout <- transaction.vouts do %>

                    <a href='<%= address_path(@conn, :index, vout.address_hash)%>' alt="View wallet address" title="View wallet address" class="large-blue-link wallet-address"><%= vout.address_hash %>

<%= Helpers.round_or_not(vout.value) %> <%= Api.get_asset_name(vout.asset) %>

                <% end %>
              <% end %>

Network fee: <%=transaction.net_fee%> · Gas System Fee: <%=transaction.sys_fee%> GAS · Data Size: <%=transaction.size%> bytes

      <%end%>

Showing 12 out of 120000 transactions

  <a href="<%= transactions_path(@conn, :go_to_page, 2) %>" alt="Load more transactions" title="Load more transactions" class="btn-primary btn-transactions-primary">Load more transactions


Bugfix. Adds missing {

Bugfix. Adds missing {

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


Add action to load history

Add action to load history


Add parameters for content template

Add parameters for content template

<?xml version='1.0' encoding='utf-8'?>
<package xmlns="http://www.idpf.org/2007/opf"
         xmlns:dc="http://purl.org/dc/elements/1.1/"
         unique-identifier="<%= config.project %>" version="3.0">
  <metadata>
    <dc:title><%= config.project %> - <%= config.version %></dc:title>
    <dc:identifier id="<%= config.project %>">urn:uuid:0cc33cbd-94e2-49c1-909a-72ae16bc2658</dc:identifier>
    <dc:language>en-US</dc:language>
  </metadata>
  <manifest>
    <item id="ncx" href="toc.ncx" media-type="application/x-dtbncx+xml" properties="nav"/>
    <item id="nav" href="nav.html" media-type="application/xhtml+xml"/>
    <item id="cover" href="title.html" media-type="application/xhtml+xml"/>
    <%= for node <- all do %>
      <item id="<%= node.id %>" href="modules/<%= node.id %>.html" media-type="application/xhtml+xml"/>
    <% end %>
    <item id="css" href="stylesheet.css" media-type="text/css"/>
  </manifest>
  <spine toc="ncx">
    <itemref idref="cover" linear="no"/>
    <%= for node <- all do %>
      <itemref idref="<%= node.id %>"/>
    <% end %>
  </spine>
</package>

<?xml version='1.0' encoding='utf-8'?>
<package xmlns="http://www.idpf.org/2007/opf"
            xmlns:dc="http://purl.org/dc/elements/1.1/"
            unique-identifier="bookid" version="2.0">
  <metadata>
    <dc:title>Hello World: My First EPUB</dc:title>
    <dc:creator>My Name</dc:creator>
    <dc:identifier
id="bookid">urn:uuid:0cc33cbd-94e2-49c1-909a-72ae16bc2658</dc:identifier>
    <dc:language>en-US</dc:language>
    <meta name="cover" content="cover-image" />
  </metadata>
  <manifest>
    <item id="ncx" href="toc.ncx" media-type="application/x-dtbncx+xml"/>
    <item id="cover" href="title.html" media-type="application/xhtml+xml"/>
    <item id="content" href="module.html"
media-type="application/xhtml+xml"/>
    <item id="cover-image" href="images/cover.png" media-type="image/png"/>
    <item id="css" href="stylesheet.css" media-type="text/css"/>
  </manifest>
  <spine toc="ncx">
    <itemref idref="cover" linear="no"/>
    <itemref idref="content"/>
  </spine>
  <guide>
    <reference href="title.html" type="cover" title="Cover"/>
  </guide>
</package>


Move mailto debug text into a textarea, for Jay TODO: a "totals" row at the bottom, just like on the cashout page. TODO: order players by winnings and then names. TODO: connect to a mailer so Jay doesn't care.

  <%= @game_night.yyyymmdd %>

      Player
      Chips
      Exact
      $1

    <%= for attendee_result <- @attendees do %>
      <% selected_player = Integer.to_string(attendee_result.player_id) == @selected_player_id %>

          <%= if selected_player do %>
            <%= render("cash_out_player_button.html",
                  game_night_id: @game_night.id,
                  player_id: -1,
                  nickname: attendee_result.player.nickname,
                  classname: "btn-primary") %>
          <%= else %>
            <%= render("cash_out_player_button.html",
                  game_night_id: @game_night.id,
                  player_id: attendee_result.player_id,
                  nickname: attendee_result.player.nickname,
                  classname: "btn-default") %>
          <%= end %>

          <%= attendee_result.chips / 100 %>

        <%= if selected_player do %>

            <a href="/attendee_result/<%= attendee_result.id %>/add/1000" >

                + 10

            <a href="/attendee_result/<%= attendee_result.id %>/add/500" >

                + 5

            <a href="/attendee_result/<%= attendee_result.id %>/add/100" >

                + 1

            <a href="/attendee_result/<%= attendee_result.id %>/add/025" >

                +25c

            <a href="/attendee_result/<%= attendee_result.id %>/subtract/100" >

                - 1

            <a href="/attendee_result/<%= attendee_result.id %>/subtract/500" >

                - 5

        <%= else %>

            <%= dollars_n_cents(attendee_result.exact_cents) %>

            $<%= round(attendee_result.rounded_cents / 100) %>

        <%= end %>

    <%= end %>

        TOTALS:

        <%= @total_chips %>

        <%= dollars_n_cents(@exact_cents) %>

        $<%= round(@rounded_1_cents / 100) %>

<a href="<%= @mailto_link %>" >

    Send Email with Results

<textarea rows="9" cols="80">
  <%= @mailto_link %>
</textarea>

  <%= @game_night.yyyymmdd %>

      Player
      Chips
      Exact
      $1

    <%= for attendee_result <- @attendees do %>
      <% selected_player = Integer.to_string(attendee_result.player_id) == @selected_player_id %>

          <%= if selected_player do %>
            <%= render("cash_out_player_button.html",
                  game_night_id: @game_night.id,
                  player_id: -1,
                  nickname: attendee_result.player.nickname,
                  classname: "btn-primary") %>
          <%= else %>
            <%= render("cash_out_player_button.html",
                  game_night_id: @game_night.id,
                  player_id: attendee_result.player_id,
                  nickname: attendee_result.player.nickname,
                  classname: "btn-default") %>
          <%= end %>

          <%= attendee_result.chips / 100 %>

        <%= if selected_player do %>

            <a href="/attendee_result/<%= attendee_result.id %>/add/1000" >

                + 10

            <a href="/attendee_result/<%= attendee_result.id %>/add/500" >

                + 5

            <a href="/attendee_result/<%= attendee_result.id %>/add/100" >

                + 1

            <a href="/attendee_result/<%= attendee_result.id %>/add/025" >

                +25c

            <a href="/attendee_result/<%= attendee_result.id %>/subtract/100" >

                - 1

            <a href="/attendee_result/<%= attendee_result.id %>/subtract/500" >

                - 5

        <%= else %>

            <%= dollars_n_cents(attendee_result.exact_cents) %>

            $<%= round(attendee_result.rounded_cents / 100) %>

        <%= end %>

    <%= end %>

        TOTALS:

        <%= @total_chips %>

        <%= dollars_n_cents(@exact_cents) %>

        $<%= round(@rounded_1_cents / 100) %>

<a href="<%= @mailto_link %>" >

    Send Email with Results

<%= @mailto_link %>


Make default environment == Mix.env

Make default environment == Mix.env

# Import all plugins from `rel/plugins`
# They can then be used by adding `plugin MyPlugin` to
# either an environment, or release definition, where
# `MyPlugin` is the name of the plugin module.
Path.join(["rel", "plugins", "*.exs"])
|> Path.wildcard()
|> Enum.map(&Code.eval_file(&1))

use Mix.Releases.Config,
    # This sets the default release built by `mix release`
    default_release: :default,
    # This sets the default environment used by `mix release`
    default_environment: Mix.env()
<%= unless no_docs do %>
# For a full list of config options for both releases
# and environments, visit https://hexdocs.pm/distillery/configuration.html
<% end %>
<%= unless no_docs do %>
# You may define one or more environments in this file,
# an environment's settings will override those of a release
# when building in that environment, this combination of release
# and environment configuration is called a profile
<% end %>
environment :dev do
  set dev_mode: true
  set include_erts: false
  set cookie: <%= inspect(get_cookie.()) %>
end

environment :prod do
  set include_erts: true
  set include_src: false
  set cookie: <%= inspect(get_cookie.()) %>
end
<%= unless no_docs do %>
# You may define one or more releases in this file.
# If you have not set a default release, or selected one
# when running `mix release`, the first release in the file
# will be used by default<% end %>
<%= for release <- releases do %><%= if Keyword.get(release, :is_umbrella) do %>
release :<%= Keyword.get(release, :release_name) %> do
  set version: "0.1.0"
  set applications: [
<%= Enum.map(Keyword.get(release, :release_applications), fn {app, start_type} ->
    "    #{app}: :#{start_type}"
    end) |> Enum.join(",\n") %>
  ]
end<% else %>
release :<%= Keyword.get(release, :release_name) %> do
  set version: current_version(:<%= Keyword.get(release, :release_name)%>)
end<% end %>
<% end %>

# Import all plugins from `rel/plugins`
# They can then be used by adding `plugin MyPlugin` to
# either an environment, or release definition, where
# `MyPlugin` is the name of the plugin module.
Path.join(["rel", "plugins", "*.exs"])
|> Path.wildcard()
|> Enum.map(&Code.eval_file(&1))

use Mix.Releases.Config,
    # This sets the default release built by `mix release`
    default_release: :default,
    # This sets the default environment used by `mix release`
    default_environment: :dev
<%= unless no_docs do %>
# For a full list of config options for both releases
# and environments, visit https://hexdocs.pm/distillery/configuration.html
<% end %>
<%= unless no_docs do %>
# You may define one or more environments in this file,
# an environment's settings will override those of a release
# when building in that environment, this combination of release
# and environment configuration is called a profile
<% end %>
environment :dev do
  set dev_mode: true
  set include_erts: false
  set cookie: <%= inspect(get_cookie.()) %>
end

environment :prod do
  set include_erts: true
  set include_src: false
  set cookie: <%= inspect(get_cookie.()) %>
end
<%= unless no_docs do %>
# You may define one or more releases in this file.
# If you have not set a default release, or selected one
# when running `mix release`, the first release in the file
# will be used by default<% end %>
<%= for release <- releases do %><%= if Keyword.get(release, :is_umbrella) do %>
release :<%= Keyword.get(release, :release_name) %> do
  set version: "0.1.0"
  set applications: [
<%= Enum.map(Keyword.get(release, :release_applications), fn {app, start_type} ->
    "    #{app}: :#{start_type}"
    end) |> Enum.join(",\n") %>
  ]
end<% else %>
release :<%= Keyword.get(release, :release_name) %> do
  set version: current_version(:<%= Keyword.get(release, :release_name)%>)
end<% end %>
<% end %>


ref: added license note

ref: added license note

<img src="<%= static_path(@conn, "/images/christian-kruse.jpg") %>" alt="" class="u-photo big">

Christian Kruse

      My name is Christian Kruse. I work as a software developer and
      system administator at <%= link "Termitel GmbH", to: "https://termitel.de/" %>.
      I live in Germany in a small town called
      <%= link "Steinfurt", to: "https://en.wikipedia.org/wiki/Steinfurt" %>.

      I am passionate about software development,
      <%= link "GNU/Linux", to: "https://en.wikipedia.org/wiki/Linux" %>,
      <%= link "FLOSS", to: "https://en.wikipedia.org/wiki/Free_and_open-source_software" %>
      as well as <%= link "OS X", to: "https://en.wikipedia.org/wiki/OS_X" %>.
      I am also a do-it-yourself apologetic: I did a lot of things in and
      around my house myself. I love the hacker culture. And last but not
      least I am a dog owner.

      This is my personal replacement for Twitter, Facebook and the other
      data silos. <%= link "My content is mine", to: "http://indiewebcamp.com/" %>
      — so if you are interested in my activity, just have a look at this
      page.

      All content on this site is available under
      CC BY-SA 3.0.

Personal information

Address

Christian Kruse

Friedenau 35

48565 Steinfurt

Germany

Email

<%= link "cjk@defunct.ch", to: "mailto:cjk@defunct.ch", class: "u-email" %>

Jabber

<%= link "cjk@defunct.ch", to: "xmpp:cjk@defunct.ch", class: "u-url" %>

PGP

A99A9D73

BC5D 9F4E F7FB 4382 6056  E834 B8E0 F342 A99A 9D73

<%= link "wwwtech.de/A99A9D73.asc", to: "/A99A9D73.asc" %>

Please send me encrypted mails if possible (see my public key above). Every
    bit of encrypted traffic increases the encrypted background noise
    and thus makes it harder to distinguish between important and
    unimportant traffic.

Social media

I also take part in several social services:

<%= link "forum.selfhtml.org/users/1", to: "http://forum.selfhtml.org/users/1", rel: "me" %> on SELFHTML

<%= link "@cjk101010", to: "https://twitter.com/cjk101010", rel: "me" %> on Twitter

<%= link "github.com/ckruse", to: "https://github.com/ckruse", rel: "me" %> on Github

<%= link "flattr.com/profile/cjk", to: "https://flattr.com/profile/cjk", rel: "me" %> on Flattr

<%= link "www.reddit.com/user/cjk101010/", to: "https://www.reddit.com/user/cjk101010/", rel: "me" %> on Reddit

<%= link "news.ycombinator.com/user?id=cjk101010", to: "https://news.ycombinator.com/user?id=cjk101010", rel: "me" %> on Hackernews

<%= link "keybase.io/ckruse", to: "https://keybase.io/ckruse", rel: "me" %> on Keybase.io

<%= link "stackoverflow.com/users/785998/ckruse", to: "http://stackoverflow.com/users/785998/ckruse", rel: "me" %> on StackOverflow

<img src="<%= static_path(@conn, "/images/christian-kruse.jpg") %>" alt="" class="u-photo big">

Christian Kruse

      My name is Christian Kruse. I work as a software developer and
      system administator at <%= link "Termitel GmbH", to: "https://termitel.de/" %>.
      I live in Germany in a small town called
      <%= link "Steinfurt", to: "https://en.wikipedia.org/wiki/Steinfurt" %>.

      I am passionate about software development,
      <%= link "GNU/Linux", to: "https://en.wikipedia.org/wiki/Linux" %>,
      <%= link "FLOSS", to: "https://en.wikipedia.org/wiki/Free_and_open-source_software" %>
      as well as <%= link "OS X", to: "https://en.wikipedia.org/wiki/OS_X" %>.
      I am also a do-it-yourself apologetic: I did a lot of things in and
      around my house myself. I love the hacker culture. And last but not
      least I am a dog owner.

      This is my personal replacement for Twitter, Facebook and the other
      data silos. <%= link "My content is mine", to: "http://indiewebcamp.com/" %>
      — so if you are interested in my activity, just have a look at this
      page.

Personal information

Address

Christian Kruse

Friedenau 35

48565 Steinfurt

Germany

Email

<%= link "cjk@defunct.ch", to: "mailto:cjk@defunct.ch", class: "u-email" %>

Jabber

<%= link "cjk@defunct.ch", to: "xmpp:cjk@defunct.ch", class: "u-url" %>

PGP

A99A9D73

BC5D 9F4E F7FB 4382 6056  E834 B8E0 F342 A99A 9D73

<%= link "wwwtech.de/A99A9D73.asc", to: "/A99A9D73.asc" %>

Please send me encrypted mails if possible (see my public key above). Every
    bit of encrypted traffic increases the encrypted background noise
    and thus makes it harder to distinguish between important and
    unimportant traffic.

Social media

I also take part in several social services:

<%= link "forum.selfhtml.org/users/1", to: "http://forum.selfhtml.org/users/1", rel: "me" %> on SELFHTML

<%= link "@cjk101010", to: "https://twitter.com/cjk101010", rel: "me" %> on Twitter

<%= link "github.com/ckruse", to: "https://github.com/ckruse", rel: "me" %> on Github

<%= link "flattr.com/profile/cjk", to: "https://flattr.com/profile/cjk", rel: "me" %> on Flattr

<%= link "www.reddit.com/user/cjk101010/", to: "https://www.reddit.com/user/cjk101010/", rel: "me" %> on Reddit

<%= link "news.ycombinator.com/user?id=cjk101010", to: "https://news.ycombinator.com/user?id=cjk101010", rel: "me" %> on Hackernews

<%= link "keybase.io/ckruse", to: "https://keybase.io/ckruse", rel: "me" %> on Keybase.io

<%= link "stackoverflow.com/users/785998/ckruse", to: "http://stackoverflow.com/users/785998/ckruse", rel: "me" %> on StackOverflow


ng-bind is better than {{}}

ng-bind is better than {{}}

      Regex
      <input name="regex"
             type="text"
             class="regex-input"
             autofocus
             ng-trim="false"
             ng-model="regex"
             ng-change="test(regex, subject, modifiers)"
             ng-model-options="{ debounce: 100 }"/>
      <input name="modifiers"
             type="text"
             class="modifiers-input"
             ng-model="modifiers"
             ng-pattern="validModifiers"
             ng-change="test(regex, subject, modifiers)"
             ng-model-options="{ debounce: 100 }"/>

      Subject
      <textarea name="subject"
                rows=5
                ng-trim="false"
                ng-model="subject"
                ng-change="test(regex, subject, modifiers)"
                ng-model-options="{ debounce: 100 }"
                ></textarea>
      Split on newlines?
      <input type="checkbox" name="split" class="subject-split"
             ng-change="test(regex,subject)" ng-model="split">

<result data="case">

Reference

. non-newline char

^ start of line

$ end of line

\b word boundary

\b word boundary

\A start of subject

\z end of subject

\d decimal digit

\D non-decimal digit

\s whitespace

\S non-whitespace

\w word character

\W non-word character

(a|z) a or z

[az] a or z

[^az] not a or z

[a-z] a through z

(foo) capture foo

a? 0 or 1 a

a* 0 or more a

a+ 1 or more a

a{3} 3 of a

a{3,} 3 or more a

a{3,5} 3 through 5 a

Modifiers

u unicode

i case insensitive

s dot matches newline

m multiline

x whitespace ignored

f start on first line

r inverts greediness

  For more information see the Elixir

    Regex documentation, and the Erlang
  re
  documentation.

      Regex
      <input name="regex"
             type="text"
             class="regex-input"
             autofocus
             ng-trim="false"
             ng-model="regex"
             ng-change="test(regex, subject, modifiers)"
             ng-model-options="{ debounce: 100 }"/>
      <input name="modifiers"
             type="text"
             class="modifiers-input"
             ng-model="modifiers"
             ng-pattern="validModifiers"
             ng-change="test(regex, subject, modifiers)"
             ng-model-options="{ debounce: 100 }"/>

      Subject
      <textarea name="subject"
                rows=5
                ng-trim="false"
                ng-model="subject"
                ng-change="test(regex, subject, modifiers)"
                ng-model-options="{ debounce: 100 }"
                ></textarea>
      Split on newlines?
      <input type="checkbox" name="split" class="subject-split"
             ng-change="test(regex,subject)" ng-model="split">

Compilation Error!{{ '\n' + (return.error | json) }}

# {{ return.regex + '\n\n'}}

<result data="case">

Reference

. non-newline char

^ start of line

$ end of line

\b word boundary

\b word boundary

\A start of subject

\z end of subject

\d decimal digit

\D non-decimal digit

\s whitespace

\S non-whitespace

\w word character

\W non-word character

(a|z) a or z

[az] a or z

[^az] not a or z

[a-z] a through z

(foo) capture foo

a? 0 or 1 a

a* 0 or more a

a+ 1 or more a

a{3} 3 of a

a{3,} 3 or more a

a{3,5} 3 through 5 a

Modifiers

u unicode

i case insensitive

s dot matches newline

m multiline

x whitespace ignored

f start on first line

r inverts greediness

  For more information see the Elixir

    Regex documentation, and the Erlang
  re
  documentation.


Display cookie warning. closes #131

Display cookie warning. closes #131


first draft on standard call page

first draft on standard call page

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

    Username: <%= @username %>

    <a id="username-button" data-username="<%= @username %>" class="button" onclick="">
      Copy Username

      Password: <%= @password %>

      <a id="password-button" data-password="<%= @password %>" class="button">
        Copy Password

  <%= raw(@call_page) %>

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

  <% end %>

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

    Username: <%= @username %>

    Password: <%= @password %>

  <%= raw(@call_page) %>

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

  <% end %>


Trying Sumome plugin

Trying Sumome plugin

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