Prevent unwanted space after queue log PR links

Right now the spaces in between PR links in the log are also links, because there's extra whitespace in the `a` tag here. If we remove that extra whitespace in the `a` tag, then we should still have a space between links because of the indentation before the `a` tag giving us our needed whitespace, but it won't be inside the `a` tag so it won't be part of the link.

    <a href="<%= Confex.fetch_env!(:bors, :html_github_root) %>/<%= @project.name %>/">
      <%= @project.name %>

  <%= link "Pull requests", to: project_path(@conn, :show, @project), class: "tab" %>
  History
  <%= link "Settings", to: project_path(@conn, :settings, @project), class: "tab" %>

<%= for entry <- @entries do %>
  <%= case entry do %>
  <% %BorsNG.Database.Crash{component: component, crash: crash, updated_at: updated_at} -> %>

      <%= htmlify_naive_datetime(updated_at) %>
      Crash
      <%= component %>

<%= crash %>

  <% %BorsNG.Database.Batch{id: id, state: state, patches: patches, updated_at: updated_at} -> %>
    <tr role=row id=batch-<%= id %>>
      <%= htmlify_naive_datetime(updated_at) %>
      Batch
      <%= stringify_state(state) %>

      <%= for patch <- patches do %>
        <a href="<%= Confex.fetch_env!(:bors, :html_github_root) %>/<%= @project.name %>/pull/<%= patch.pr_xref %>">#<%= patch.pr_xref %>
      <% end %>

  <% end %>
<% end %>

    <a href="<%= Confex.fetch_env!(:bors, :html_github_root) %>/<%= @project.name %>/">
      <%= @project.name %>

  <%= link "Pull requests", to: project_path(@conn, :show, @project), class: "tab" %>
  History
  <%= link "Settings", to: project_path(@conn, :settings, @project), class: "tab" %>

<%= for entry <- @entries do %>
  <%= case entry do %>
  <% %BorsNG.Database.Crash{component: component, crash: crash, updated_at: updated_at} -> %>

      <%= htmlify_naive_datetime(updated_at) %>
      Crash
      <%= component %>

<%= crash %>

  <% %BorsNG.Database.Batch{id: id, state: state, patches: patches, updated_at: updated_at} -> %>
    <tr role=row id=batch-<%= id %>>
      <%= htmlify_naive_datetime(updated_at) %>
      Batch
      <%= stringify_state(state) %>

      <%= for patch <- patches do %>
        <a href="<%= Confex.fetch_env!(:bors, :html_github_root) %>/<%= @project.name %>/pull/<%= patch.pr_xref %>">
          #<%= patch.pr_xref %>

      <% end %>

  <% end %>
<% end %>


Preload icons and late-latin-fonts to avoid flash of unstyled content

<!DOCTYPE html>

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

    <% else %>

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

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

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

    <% end %>

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

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

RemoteRetro

Built by

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

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

    <% end %>

<!DOCTYPE html>

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

    <% else %>

    <% end %>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="A real-time application for conducting Agile retrospectives">
    <meta name="google-site-verification" content="T5W8sjrjt-BmTK5SYTjPM-FQZD8oGNatTNAJSyRex7o" />
    <meta name="author" content="">
    <title>RemoteRetro</title>
    <link rel="stylesheet" href="<%= static_path(@conn, "/css/semantic-ui/semantic.min.css") %>">
    <link rel="stylesheet" href="<%= app_css(@conn) %>">

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

    <% end %>

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

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

RemoteRetro

Built by

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

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

    <% end %>


fixed script

fixed script

#!/bin/bash
# Fleet Stop Script
#

echo "Prepping SSH keys..."
eval `ssh-agent -s`
if [ -f /root/.ssh/id_rsa ]; then
  chmod 0600 /root/.ssh/id_rsa > /dev/null
  if [ $? -ne 0 ]; then
    echo "ERROR: adding key for OpenAperture to ssh agent." 1>&2
  fi

  ssh-add /root/.ssh/id_rsa 1> /dev/null 2> /dev/null
fi

# Done setting up SSH keys
echo "Executing stop command:  yes | fleetctl --tunnel=<%= host_ip %> stop <%= unit_name %>"
yes | fleetctl --tunnel=<%= host_ip %> stop <%= unit_name %>

if [ $? -ne 0 ]; then
	if [ <%= verify_result %> = true ] ; then
	  echo "Stop command has failed!!"
	  ssh-agent -k
	  exit 1
	fi
fi

ssh-agent -k
echo "Stop command finished successfully!"

#!/bin/bash
# Fleet Kill Script
#

echo "Prepping SSH keys..."
eval `ssh-agent -s`
if [ -f /root/.ssh/id_rsa ]; then
  chmod 0600 /root/.ssh/id_rsa > /dev/null
  if [ $? -ne 0 ]; then
    echo "ERROR: adding key for OpenAperture to ssh agent." 1>&2
  fi

  ssh-add /root/.ssh/id_rsa 1> /dev/null 2> /dev/null
fi

echo "Current running image is:"
yes | fleetctl --tunnel=<%= host_ip %> cat <%= unit_name %> | grep ExecStart= | awk '{print $NF}'

# Done setting up SSH keys
echo "Executing kill command:  yes | fleetctl --tunnel=<%= host_ip %> kill <%= unit_name %>"
yes | fleetctl --tunnel=<%= host_ip %> kill <%= unit_name %>

if [ $? -ne 0 ]; then
	if [ <%= verify_result %> = true ] ; then
	  echo "Kill command has failed!!"
	  ssh-agent -k
	  exit 1
	fi
fi

ssh-agent -k
echo "Kill command finished successfully!"


Autofocus the regex input

Autofocus the regex input

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

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

<result data="case">

      Regex
      <input name="regex"
             type="text"
             ng-model="regex"
             ng-change="test(regex,subject)"
             ng-model-options="{ debounce: 100 }"/>

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

<result data="case">


Add 'Connecting...' + loading indicator while waiting to render retro state

RemoteRetroBETA

Built by

    Connecting...


Elixir marketing link points to elixir page

Looking for help? Elixir is quickly gaining momentum for web applications that
need concurrency, performance, and the ability to connect to many different
clients. The developers at
Hashrocket
are learning along with the rest of the development community that Elixir and
Phoenix are viable Rails alternatives for the right application.
Contact us
if you need help with your Elixir project.


another approach with two generators...

another approach with two generators...

Top 5 liked Podcasts

    <%= for {[count, id, title], rank} <- Enum.with_index(@liked_podcasts),
             [last_count, _, _] <- [[0, nil, nil] | @liked_podcasts] do %>

        <%= if count != last_count do %>
          <%= rank + 1 %>.:
        <% else %>

        <% end %>
        <%= link [fa_icon("podcast"), " ", truncate(title, 50)],
                 to: podcast_frontend_path(@conn, :show, id),
                 class: "btn btn-default btn-xs",
                 style: "color: #000" %>
        <%= count %> <%= fa_icon("user") %>

    <% end %>

Top 5 liked Podcasts

  <% last_count = 0 %>
    <%= for {[count, id, title], rank} <- Enum.with_index(@liked_podcasts) do %>

        <%= if count != last_count do %>
          <%= rank + 1 %>.:
        <% else %>

        <% end %>
        <%= link [fa_icon("podcast"), " ", truncate(title, 50)],
                 to: podcast_frontend_path(@conn, :show, id),
                 class: "btn btn-default btn-xs",
                 style: "color: #000" %>
        <%= count %> <%= fa_icon("user") %>
        <% last_count = count %>

    <% end %>


Add link that uses the route

Add link that uses the route

       <img src="<%=  Routes.static_path(@conn, "/images/eef-logo-transparent.png") %>" width="75" height="75" alt="">

              Erlang Ecosystem Foundation

Supporting the BEAM community

        <button class="navbar-toggler" type="button" data-toggle="collapse"
                                                     data-target="#navbarCollapse"
                                                     aria-controls="navbarCollapse"
                                                     aria-expanded="false"
                                                     aria-label="Toggle navigation">

        </button>

Home

Join Us!

                                Sponsors

                        Sponsors
                        Become a sponsor!

Working Groups

Stipends

News

Events

Academic Papers

                  About

                        Board Members
                        Contact
                        Bylaws
                        FAQ

       <img src="<%=  Routes.static_path(@conn, "/images/eef-logo-transparent.png") %>" width="75" height="75" alt="">

              Erlang Ecosystem Foundation

Supporting the BEAM community

        <button class="navbar-toggler" type="button" data-toggle="collapse"
                                                     data-target="#navbarCollapse"
                                                     aria-controls="navbarCollapse"
                                                     aria-expanded="false"
                                                     aria-label="Toggle navigation">

        </button>

Home

Join Us!

                                Sponsors

                        Sponsors
                        Become a sponsor!

Working Groups

Stipends

News

Events

                  About

                        Board Members
                        Contact
                        Bylaws
                        FAQ


Add search form to search page.

Add search form to search page.

<%= if @type == "posts" do %>

Post Search

  <form method="GET" action="<%= webapp_url("/search") %>">
    <input type="search" name="terms" />
    <button type="submit">Search</button>
  </form>
  <%= link "User Search", to: webapp_url("/search", type: "users") %>
<% else %>

User Search

  <form method="GET" action="<%= webapp_url("/search") %>">
    <input type="hidden" name="type" value="users" />
    <input type="search" name="terms" />
    <button type="submit">Search</button>
  </form>
  <%= link "Post Search", to: webapp_url("/search") %>
<% end %>

<%= for item <- @search.results do %>
  <%= if @type == "posts" do %>
    <%= render Ello.Serve.Webapp.PostView, "summary.html", Map.put(assigns, :post, item) %>
  <% else %>
    <%= render Ello.Serve.Webapp.UserView, "summary.html", Map.put(assigns, :user, item) %>
  <% end %>
<% end %>

<%= if @search.total_pages_remaining > 0 do %>
  <%= link "Next Page", to: next_search_page_url(@search, @type) %>
<% end %>


Change UI while JS-file loading

Change UI while JS-file loading

<%= if @host do %>

実験記号: <%= @x_token %>

      実験記号を表示

<% end %>

実験プログラムをダウンロードしています。

このまましばらくお待ちください。


Change button text

Change button text

Scheduled jobs

<%= if @scheduled_jobs |> Enum.empty? do %>

No scheduled jobs.

<% else %>

    <%= form_for @conn, scheduled_path(@conn, :modify), [as: :modify, method: "POST"], fn _ -> %>
      <input name="jobs_to_modify[]" type="hidden" value="" />

            When
            Queue
            Id
            Class/Worker
            Arguments

        <%= for job <- scheduled_jobs(@scheduled_jobs) do %>

            <input name="jobs_to_modify[]" type="checkbox" value="<%= job.job.original_json %>" id="job_<%= job.jid %>" />
            <%= perform_at(job.perform_at) %>
            <%= job.queue %>
            <%= job.jid %>
            <%= job.class %>
            <%= job.args %>

              <button type="button" class="btn btn-primary btn-xs" data-toggle="modal" data-target="#job-<%= job.jid %>-modal">
                Details
              </button>

              <%= render VerkWeb.SharedView, "job_modal.html", job: job.job, perform_at: job.perform_at, conn: @conn %>

        <% end %>

          <%= submit "Delete selected", class: "btn btn-danger btn-sm", name: "action", value: "delete" %>

          <%= submit "Enqueue selected now", class: "btn btn-success btn-sm", name: "action", value: "requeue" %>

          <%= if @has_prev do %>
            <%= link "Previous", to: scheduled_path(@conn, :index, page: @page - 1, per_page: @per_page), class: "btn btn-default" %>
          <% end %>

          <%= if @has_next do %>
            <%= link "Next", to: scheduled_path(@conn, :index, page: @page + 1, per_page: @per_page), class: "btn btn-default" %>
          <% end %>

    <% end %>

    <%= button "Delete all", to: scheduled_path(@conn, :destroy), method: :delete, data: [confirm: "Are you sure?"], class: "btn btn-danger btn-sm" %>

<% end %>

Scheduled jobs

<%= if @scheduled_jobs |> Enum.empty? do %>

No scheduled jobs.

<% else %>

    <%= form_for @conn, scheduled_path(@conn, :modify), [as: :modify, method: "POST"], fn _ -> %>
      <input name="jobs_to_modify[]" type="hidden" value="" />

            When
            Queue
            Id
            Class/Worker
            Arguments

        <%= for job <- scheduled_jobs(@scheduled_jobs) do %>

            <input name="jobs_to_modify[]" type="checkbox" value="<%= job.job.original_json %>" id="job_<%= job.jid %>" />
            <%= perform_at(job.perform_at) %>
            <%= job.queue %>
            <%= job.jid %>
            <%= job.class %>
            <%= job.args %>

              <button type="button" class="btn btn-primary btn-xs" data-toggle="modal" data-target="#job-<%= job.jid %>-modal">
                Details
              </button>

              <%= render VerkWeb.SharedView, "job_modal.html", job: job.job, perform_at: job.perform_at, conn: @conn %>

        <% end %>

          <%= submit "Delete selected", class: "btn btn-danger btn-sm", name: "action", value: "delete" %>

          <%= submit "Queue selected now", class: "btn btn-success btn-sm", name: "action", value: "requeue" %>

          <%= if @has_prev do %>
            <%= link "Previous", to: scheduled_path(@conn, :index, page: @page - 1, per_page: @per_page), class: "btn btn-default" %>
          <% end %>

          <%= if @has_next do %>
            <%= link "Next", to: scheduled_path(@conn, :index, page: @page + 1, per_page: @per_page), class: "btn btn-default" %>
          <% end %>

    <% end %>

    <%= button "Delete all", to: scheduled_path(@conn, :destroy), method: :delete, data: [confirm: "Are you sure?"], class: "btn btn-danger btn-sm" %>

<% end %>


update copyright

update copyright

<!DOCTYPE>

<meta charset="utf-8">
	<title>NEOSCAN | <%= get_page(@conn) %></title>
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<meta name="format-detection" content="telephone=no"/>
	<meta name="mobile-web-app-capable" content="yes">
	<meta name="apple-mobile-web-app-capable" content="yes">
	<link rel="shortcut icon" href="<%= static_path(@conn, "/favicon.ico") %>">

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

	<meta property="og:title" content="NeoScan - NEO Blockchain Explorer" />
	<meta property="og:url" content="[neoscan.io]" />
	<meta property="og:type" content="website" />
	<meta property="og:description" content="A blockchain explorer for the NEO project. Track blocks, addresses, balances, transactions, NEO, GAS and other assets on the platform." />
	<meta property="og:image" content="<%= static_path(@conn, "/images/coz.png") %>" />

	<link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,400i,600,600i,700,700i|Teko:300,500" rel="stylesheet">

			<button class="hamburger hamburger--spin" type="button">

			</button>

<%= get_lang_text(@conn) %>

          <li value="en" class="<%= if get_language(@conn) == "en" do %>active-lang<% end %>">English

          <li value="nl" class="<%= if get_language(@conn) == "nl" do %>active-lang<% end %>">Nederlands

          <li value="de" class="<%= if get_language(@conn) == "de" do %>active-lang<% end %>">Deutsch

          <li value="fr" class="<%= if get_language(@conn) == "fr" do %>active-lang<% end %>">Français

          <li value="it" class="<%= if get_language(@conn) == "it" do %>active-lang<% end %>">Italiano

          <li value="pt_BR" class="<%= if get_language(@conn) == "pt_BR" do %>active-lang<% end %>">Português

          <li value="ro" class="<%= if get_language(@conn) == "ro" do %>active-lang<% end %>">Română

          <li value="ru" class="<%= if get_language(@conn) == "ru" do %>active-lang<% end %>">Русский

          <li value="zh" class="<%= if get_language(@conn) == "zh" do %>active-lang<% end %>">中文

          <li value="ja" class="<%= if get_language(@conn) == "ja" do %>active-lang<% end %>">日本語

          <img src="<%= static_path(@conn, "/images/NEOSCAN_Logo.svg") %>" alt="<%= gettext "NEOSCAN Home" %>" title="<%= gettext "NEOSCAN Home" %>" width="163px" height="32px" class="neoscan-logo" />

      <%= form_for @conn, home_path(@conn, :index), [as: :search], fn f -> %>
        <%= text_input f, :for,placeholder: gettext("Block Height, Hash, Address or Transaction id"),class: "searchbar fa fa-search", type: "search" %>
				<%= submit "", [class: "icon search-btn fa fa-search"]  %>
        <%= error_tag f, :for %>
      <% end %>

						<a href="<%= home_path(@conn, :index) %>" alt="Explorer" title="Explorer" class="nav-link <%= if is_home_path(@conn), do: " active" %>"><%= gettext "Explorer" %>

						<a href="<%= transactions_path(@conn, :index) %>" alt="Explorer" title="Explorer" class="nav-link <%= if is_transactions_path(@conn), do: " active" %>"><%= gettext "Transactions" %>

						<a href="<%= addresses_path(@conn, :index) %>" alt="Explorer" title="Explorer" class="nav-link <%= if is_addresses_path(@conn), do: " active" %>"><%= gettext "Wallet Addresses" %>

						<a href="<%= blocks_path(@conn, :index) %>" alt="Explorer" title="Explorer" class="nav-link <%= if is_blocks_path(@conn), do: " active" %>"><%= gettext "Blocks" %>

						<a href="<%= doc_path(@conn, :index) %>" alt="Explorer" title="Explorer" class="nav-link <%= if is_doc_path(@conn), do: " active" %>"><%= gettext "API" %>

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

					<img src="<%= static_path(@conn, "/images/NEOSCAN_Logo.svg") %>" alt="NEOSCAN Home" title="NEOSCAN Home" class="neoscan-logo-footer" width="136px" height="27px" />

<%= gettext "The source code is" %> <a href="http://opensource.org/licenses/mit-license.php" alt="<%= gettext "View MIT License"%>" title="<%= gettext "View MIT License"%>" class="large-blue-link"><%= gettext "licensed" %> MIT

<%= gettext "The website content is licensed" %> CC ANS 4.0

<a href="https://neoscan-testnet.io/" alt="<%= gettext "NEOSCAN Testnet"%>" title="<%= gettext "NEOSCAN Testnet"%>" class="large-blue-link"><%= gettext "NEOSCAN Testnet" %>

© 2018 <a href="http://cityofzion.io/" alt="<%= gettext "Visit City of Zion"%>" title="<%= gettext "Visit City of Zion"%>" class="large-blue-link"><%= gettext "City Of Zion" %>

						<a href="https://discord.gg/Md676aR" alt="<%= gettext "NEO Discord"%>" title="<%= gettext "NEO Discord"%>" class="coz-discord"><%= gettext "NEO Discord" %>

						<a href="https://github.com/CityOfZion" alt="<%= gettext "City of Zion Github" %>" title="<%= gettext "City of Zion Github" %>" class="coz-github"><%= gettext "City of Zion Github" %>

						<a href="<%= doc_path(@conn, :index) %>" alt="<%= gettext "NEOSCAN API" %>" title="<%= gettext "NEOSCAN API" %>" class="coz-api"><%= gettext "NEOSCAN API" %>

              <%= if get_tooltips(@conn) == "on" do %><%= gettext "Tooltips On " %><% end %>
              <%= if get_tooltips(@conn) == "off" do %><%= gettext "Tooltips Off " %><% end %>

<!DOCTYPE>

<meta charset="utf-8">
	<title>NEOSCAN | <%= get_page(@conn) %></title>
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<meta name="format-detection" content="telephone=no"/>
	<meta name="mobile-web-app-capable" content="yes">
	<meta name="apple-mobile-web-app-capable" content="yes">
	<link rel="shortcut icon" href="<%= static_path(@conn, "/favicon.ico") %>">

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

	<meta property="og:title" content="NeoScan - NEO Blockchain Explorer" />
	<meta property="og:url" content="[neoscan.io]" />
	<meta property="og:type" content="website" />
	<meta property="og:description" content="A blockchain explorer for the NEO project. Track blocks, addresses, balances, transactions, NEO, GAS and other assets on the platform." />
	<meta property="og:image" content="<%= static_path(@conn, "/images/coz.png") %>" />

	<link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,400i,600,600i,700,700i|Teko:300,500" rel="stylesheet">

			<button class="hamburger hamburger--spin" type="button">

			</button>

<%= get_lang_text(@conn) %>

          <li value="en" class="<%= if get_language(@conn) == "en" do %>active-lang<% end %>">English

          <li value="nl" class="<%= if get_language(@conn) == "nl" do %>active-lang<% end %>">Nederlands

          <li value="de" class="<%= if get_language(@conn) == "de" do %>active-lang<% end %>">Deutsch

          <li value="fr" class="<%= if get_language(@conn) == "fr" do %>active-lang<% end %>">Français

          <li value="it" class="<%= if get_language(@conn) == "it" do %>active-lang<% end %>">Italiano

          <li value="pt_BR" class="<%= if get_language(@conn) == "pt_BR" do %>active-lang<% end %>">Português

          <li value="ro" class="<%= if get_language(@conn) == "ro" do %>active-lang<% end %>">Română

          <li value="ru" class="<%= if get_language(@conn) == "ru" do %>active-lang<% end %>">Русский

          <li value="zh" class="<%= if get_language(@conn) == "zh" do %>active-lang<% end %>">中文

          <li value="ja" class="<%= if get_language(@conn) == "ja" do %>active-lang<% end %>">日本語

          <img src="<%= static_path(@conn, "/images/NEOSCAN_Logo.svg") %>" alt="<%= gettext "NEOSCAN Home" %>" title="<%= gettext "NEOSCAN Home" %>" width="163px" height="32px" class="neoscan-logo" />

      <%= form_for @conn, home_path(@conn, :index), [as: :search], fn f -> %>
        <%= text_input f, :for,placeholder: gettext("Block Height, Hash, Address or Transaction id"),class: "searchbar fa fa-search", type: "search" %>
				<%= submit "", [class: "icon search-btn fa fa-search"]  %>
        <%= error_tag f, :for %>
      <% end %>

						<a href="<%= home_path(@conn, :index) %>" alt="Explorer" title="Explorer" class="nav-link <%= if is_home_path(@conn), do: " active" %>"><%= gettext "Explorer" %>

						<a href="<%= transactions_path(@conn, :index) %>" alt="Explorer" title="Explorer" class="nav-link <%= if is_transactions_path(@conn), do: " active" %>"><%= gettext "Transactions" %>

						<a href="<%= addresses_path(@conn, :index) %>" alt="Explorer" title="Explorer" class="nav-link <%= if is_addresses_path(@conn), do: " active" %>"><%= gettext "Wallet Addresses" %>

						<a href="<%= blocks_path(@conn, :index) %>" alt="Explorer" title="Explorer" class="nav-link <%= if is_blocks_path(@conn), do: " active" %>"><%= gettext "Blocks" %>

						<a href="<%= doc_path(@conn, :index) %>" alt="Explorer" title="Explorer" class="nav-link <%= if is_doc_path(@conn), do: " active" %>"><%= gettext "API" %>

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

					<img src="<%= static_path(@conn, "/images/NEOSCAN_Logo.svg") %>" alt="NEOSCAN Home" title="NEOSCAN Home" class="neoscan-logo-footer" width="136px" height="27px" />

<%= gettext "The source code is" %> <a href="http://opensource.org/licenses/mit-license.php" alt="<%= gettext "View MIT License"%>" title="<%= gettext "View MIT License"%>" class="large-blue-link"><%= gettext "licensed" %> MIT

<%= gettext "The website content is licensed" %> CC ANS 4.0

<a href="https://neoscan-testnet.io/" alt="<%= gettext "NEOSCAN Testnet"%>" title="<%= gettext "NEOSCAN Testnet"%>" class="large-blue-link"><%= gettext "NEOSCAN Testnet" %>

© 2017 <a href="http://cityofzion.io/" alt="<%= gettext "Visit City of Zion"%>" title="<%= gettext "Visit City of Zion"%>" class="large-blue-link"><%= gettext "City Of Zion" %>

						<a href="https://discord.gg/Md676aR" alt="<%= gettext "NEO Discord"%>" title="<%= gettext "NEO Discord"%>" class="coz-discord"><%= gettext "NEO Discord" %>

						<a href="https://github.com/CityOfZion" alt="<%= gettext "City of Zion Github" %>" title="<%= gettext "City of Zion Github" %>" class="coz-github"><%= gettext "City of Zion Github" %>

						<a href="<%= doc_path(@conn, :index) %>" alt="<%= gettext "NEOSCAN API" %>" title="<%= gettext "NEOSCAN API" %>" class="coz-api"><%= gettext "NEOSCAN API" %>

              <%= if get_tooltips(@conn) == "on" do %><%= gettext "Tooltips On " %><% end %>
              <%= if get_tooltips(@conn) == "off" do %><%= gettext "Tooltips Off " %><% end %>


Pass all assigns from board_members.eex to gallery.eex

EEF Board Members

  <%= render_shared "gallery.html", assigns %>

EEF Board Members

  <%= render_shared "gallery.html", members: @members %>


Update new.html.eex

Update new.html.eex

<%= gettext("Hire a great Elixir/Erlang developer") %>

<%= raw gettext("Elixir/Erlang community is in a very vibrant moment. Start looking for your next hiring in the right place.") %>

<%= gettext("How does this work?") %>

<%= raw gettext("Once you submit your offer, we will review it (just to avoid SPAM or dead links) and, if everything is correct, we will publish it as soon as possible!") %>

<%= raw gettext("Publishing an offer on Elixir Jobs is free and will be also posted to our Twitter account, so feel free of %{follow_link} and retweet your offer when published!",
    follow_link: "#{gettext("follow us")}") %>

<%= render "_form.html",
  changeset: @changeset,
  action: offer_path(@conn, :create),
  conn: @conn,
  css_class: "offer-new" %>

<%= gettext("Hire a great Elixir/Erlang developer") %>

<%= raw gettext("Elixir/Erlang community is in a very vibrant moment. Start looking for your next hiring in the right place.") %>

<%= gettext("How does this works?") %>

<%= raw gettext("Once you submit your offer, we will review it (just to avoid SPAM or dead links) and, if everything is correct, we will publish it as soon as possible!") %>

<%= raw gettext("Publishing an offer on Elixir Jobs is free and will be also posted to our Twitter account, so feel free of %{follow_link} and retweet your offer when published!",
    follow_link: "#{gettext("follow us")}") %>

<%= render "_form.html",
  changeset: @changeset,
  action: offer_path(@conn, :create),
  conn: @conn,
  css_class: "offer-new" %>


Adding google analytics

Adding google analytics

<!DOCTYPE html>

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

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

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

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

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

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

Menu

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

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

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

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

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

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

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

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

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

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

      <% else %>

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

      <% end %>

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

<%= msg %>

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

<%= msg %>

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

<%= msg %>

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

<%= msg %>

    <% end %>

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


better responsiveness

better responsiveness

Your Podcast Recommendations

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

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

            <%= recommendation.comment %>

        <% end %>

Unrecommended Podcasts

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

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

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

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

            <% end %>

        <% end %>


Move the PR page toolbar to the bottom

Move the PR page toolbar to the bottom

These options are all niche, so they shouldn't get pride of placement.

  <a href="<%= project_path(@conn, :index) %>">
    Repositories

  ›

    <a href="https://github.com/<%= @project.name %>/">
      <%= @project.name %>

  Pull requests
  <%= if @mode == :rw do %>
  <%= link "History", to: project_path(@conn, :log, @project), class: "tab" %>
  <%= link "Settings", to: project_path(@conn, :settings, @project), class: "tab" %>
  <% end %>

<%= if not is_nil get_flash(@conn, :ok) do %>

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

<% end %>

<%= if not is_nil get_flash(@conn, :error) do %>

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

<% end %>

<template id="js--on-project-ping" data-bors-project-id="<%= @project.id %>">

This list is out of date. Reload

</template>

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

Awaiting review

#	Title

  <%= for patch <- @unbatched_patches do %>

        <%= patch.pr_xref %>

        <a href="https://github.com/<%= @project.name %>/pull/<%= patch.pr_xref %>">
          <%= patch.title %>

  <% end %>

<% end %>
<%= for batch <- @batches do %>

<%= stringify_state batch.state %>

#	Title

  <%= for patch <- batch.patches do %>

        <%= patch.pr_xref %>

        <a href="https://github.com/<%= @project.name %>/pull/<%= patch.pr_xref %>">
          <%= patch.title %>

  <% end %>

<% end %>

<%= if @mode == :rw do %>

<%= if @is_synchronizing do %>
  Synchronizing...
<% else %>
  <%= link "Sync pull requests", to: project_path(@conn, :synchronize, @project), method: :put, class: "toolbar-item" %>
<% end %>
<%= if @batches != [] do %>
  <%= link "Cancel all", to: project_path(@conn, :cancel_all, @project), method: :delete, class: "toolbar-item toolbar-item--remove", data: [confirm: "Commenting `bors r-` on a PR will cancel just the one. You asked to cancel all of them, which is a PITA to undo.\n\nAre you sure you want to cancel all running and waiting pull requests?"] %>
<% end %>

<% end %>

  <a href="<%= project_path(@conn, :index) %>">
    Repositories

  ›

    <a href="https://github.com/<%= @project.name %>/">
      <%= @project.name %>

  Pull requests
  <%= if @mode == :rw do %>
  <%= link "History", to: project_path(@conn, :log, @project), class: "tab" %>
  <%= link "Settings", to: project_path(@conn, :settings, @project), class: "tab" %>
  <% end %>

<%= if @mode == :rw do %>

<%= if @batches != [] do %>
  <%= link "Cancel all", to: project_path(@conn, :cancel_all, @project), method: :delete, class: "toolbar-item toolbar-item--remove", data: [confirm: "Commenting `bors r-` on a PR will cancel just the one. You asked to cancel all of them, which is a PITA to undo.\n\nAre you sure you want to cancel all running and waiting pull requests?"] %>
<% end %>
<%= if @is_synchronizing do %>
  Synchronizing...
<% else %>
  <%= link "Sync pull requests", to: project_path(@conn, :synchronize, @project), method: :put, class: "toolbar-item" %>
<% end %>

<% end %>

<%= if not is_nil get_flash(@conn, :ok) do %>

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

<% end %>

<%= if not is_nil get_flash(@conn, :error) do %>

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

<% end %>

<template id="js--on-project-ping" data-bors-project-id="<%= @project.id %>">

This list is out of date. Reload

</template>

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

Awaiting review

#	Title

  <%= for patch <- @unbatched_patches do %>

        <%= patch.pr_xref %>

        <a href="https://github.com/<%= @project.name %>/pull/<%= patch.pr_xref %>">
          <%= patch.title %>

  <% end %>

<% end %>
<%= for batch <- @batches do %>

<%= stringify_state batch.state %>

#	Title

  <%= for patch <- batch.patches do %>

        <%= patch.pr_xref %>

        <a href="https://github.com/<%= @project.name %>/pull/<%= patch.pr_xref %>">
          <%= patch.title %>

  <% end %>

<% end %>


add href=user_path(:new) to static_pages/home

PH Microblog

This is the home page of this sample application.

  <a href="<%= user_path :new %>" class="btn btn-primary btn-lg">Sign up

PH Microblog

This is the home page of this sample application.

  Sign up


done i think

done i think

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

<script>

  function showHiddenContent (ev) {
    debugger;

    var el = document.querySelector('#vol-events');
    if (el.style.display == 'none') {
      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) {
    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>


Hide the link to /users/:user_id/followers if less than 5 followers.

<%= full_name(@user) %>

      <%= if @user.first_name do %>

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

      <% end %>

      <%= if @user.last_name do %>

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

      <% end %>

      <%= if @user.middlename do %>

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

      <% end %>

      <%= if @user.nickname do %>

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

      <% end %>

      <%= if @user.honorific_prefix do %>

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

      <% end %>

      <%= if @user.honorific_suffix do %>

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

      <% end %>

      <%= if @user.gender do %>

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

      <% end %>

      <%= if @user.birthdate do %>

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

      <% end %>

      <%= if @user.verified do %>

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

      <% end %>

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

    <%= if gravatar_url(@user) do %>
      <img src="<%= gravatar_url(@user) %>"  class="img-responsive img-rounded" alt="Avatar <%= full_name(@user) %>" />
    <% end %>

    <%= if @user.id != @current_user.id do %>
      <%= form_for @changeset, connection_path(@conn, :create), fn f -> %>
        <%= hidden_input f, :follower_id %>
        <%= hidden_input f, :followee_id %>

          <%= submit gettext("Follow"), class: "btn btn-primary" %>

      <% end %>
    <% end %>

    <%= unless Enum.empty?(@user.emails) do %>
      <%= render Vutuv.EmailView, "index.html", conn: @conn, emails: @user.emails, user: @user, emails_counter: @emails_counter %>
    <% end %>

    <%= unless Enum.empty?(@user.groups) do %>
      <%= render Vutuv.GroupView, "index.html", conn: @conn, groups: @user.groups, user: @user %>
    <% end %>

    <%= unless Enum.empty?(@user.follower_connections) do %>
      <%= if Enum.count(@user.follower_connections) > 5 do %>

The Latest Followers

      <%= else %>

Followers

      <%= end %>

            Inserted At
            Name

      <%= for connection <- @user.follower_connections do %>

              <%= time_ago_in_words connection.inserted_at %> ago

            <%= link full_name(connection.follower), to: user_path(@conn, :show, connection.follower) %>

              <%= if Enum.any?(@user.followee_connections, fn(x) -> x.followee_id == connection.follower_id end) do %>
                 You already follow back.
              <% else %>
                <%= link "Follow back", to: user_path(@conn, :follow_back, connection.follower), class: "btn btn-default btn-xs", role: "button" %>
              <% end %>

      <% end %>

      <%= if Enum.count(@user.follower_connections) > 5 do %>

          <%= link gettext("List of all Followers (%{followers_count}).", followers_count: @followers_count), to: user_follower_path(@conn, :index, @user) %>

      <%= end %>
    <% end %>

    <%= unless Enum.empty?(@user.followee_connections) do %>
      <%= if Enum.count(@user.followee_connections) > 5 do %>

The Latest Followees

      <%= else %>

Followees

      <%= end %>

            Inserted At
            Name

      <%= for connection <- @user.followee_connections do %>

              <%= time_ago_in_words connection.inserted_at %> ago

            <%= link full_name(connection.followee), to: user_path(@conn, :show, connection.followee) %>

              <%= link gettext("Unfollow"), to: connection_path(@conn, :delete, connection), method: :delete, data: [confirm: "Are you sure?"], class: "btn btn-danger btn-xs" %>

      <% end %>

      <%= if Enum.count(@user.followee_connections) > 5 do %>

          <%= link gettext("List of all Followees (%{followees_count}).", followees_count: @followees_count), to: user_followee_path(@conn, :index, @user) %>

      <%= end %>
    <% end %>

<%= full_name(@user) %>

      <%= if @user.first_name do %>

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

      <% end %>

      <%= if @user.last_name do %>

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

      <% end %>

      <%= if @user.middlename do %>

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

      <% end %>

      <%= if @user.nickname do %>

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

      <% end %>

      <%= if @user.honorific_prefix do %>

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

      <% end %>

      <%= if @user.honorific_suffix do %>

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

      <% end %>

      <%= if @user.gender do %>

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

      <% end %>

      <%= if @user.birthdate do %>

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

      <% end %>

      <%= if @user.verified do %>

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

      <% end %>

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

    <%= if gravatar_url(@user) do %>
      <img src="<%= gravatar_url(@user) %>"  class="img-responsive img-rounded" alt="Avatar <%= full_name(@user) %>" />
    <% end %>

    <%= if @user.id != @current_user.id do %>
      <%= form_for @changeset, connection_path(@conn, :create), fn f -> %>
        <%= hidden_input f, :follower_id %>
        <%= hidden_input f, :followee_id %>

          <%= submit gettext("Follow"), class: "btn btn-primary" %>

      <% end %>
    <% end %>

    <%= unless Enum.empty?(@user.emails) do %>
      <%= render Vutuv.EmailView, "index.html", conn: @conn, emails: @user.emails, user: @user, emails_counter: @emails_counter %>
    <% end %>

    <%= unless Enum.empty?(@user.groups) do %>
      <%= render Vutuv.GroupView, "index.html", conn: @conn, groups: @user.groups, user: @user %>
    <% end %>

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

Followers

            Inserted At
            Name

      <%= for connection <- @user.follower_connections do %>

              <%= time_ago_in_words connection.inserted_at %> ago

            <%= link full_name(connection.follower), to: user_path(@conn, :show, connection.follower) %>

              <%= if Enum.any?(@user.followee_connections, fn(x) -> x.followee_id == connection.follower_id end) do %>
                 You already follow back.
              <% else %>
                <%= link "Follow back", to: user_path(@conn, :follow_back, connection.follower), class: "btn btn-default btn-xs", role: "button" %>
              <% end %>

      <% end %>

        <%= link gettext("List of all Followers (%{followers_count}).", followers_count: @followers_count), to: user_follower_path(@conn, :index, @user) %>

    <% end %>

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

Followees

            Inserted At
            Name

      <%= for connection <- @user.followee_connections do %>

              <%= time_ago_in_words connection.inserted_at %> ago

            <%= link full_name(connection.followee), to: user_path(@conn, :show, connection.followee) %>

              <%= link gettext("Unfollow"), to: connection_path(@conn, :delete, connection), method: :delete, data: [confirm: "Are you sure?"], class: "btn btn-danger btn-xs" %>

      <% end %>

        <%= link gettext("List of all Followees (%{followees_count}).", followees_count: @followees_count), to: user_followee_path(@conn, :index, @user) %>

    <% end %>


Using javascript to share

Using javascript to share

Statistics

Cards
Charts
Share Progress

    <%= render "statistic_card.html", conn: @conn, stat: @stats.current_month, previous: @stats.previous_month, title: "Current Month", type: "current_month" %>

    <%= render "statistic_card.html", conn: @conn, stat: @stats.current_year, previous: @stats.previous_year, title: "Current Year", type: "current_year" %>

    <%= render "statistic_card.html", conn: @conn, stat: @stats.all_time, previous: 0, title: "All Time", type: "all_time"  %>


trim payement links

trim payement links

<%= if @current_user && @current_user.admin do %>
  <%= link fa_icon("cogs"), to: podcast_path(@conn, :show, @podcast),
                            class: "btn btn-xs btn-default" %>
  <%= link fa_icon("rss"), to: feed_path(@conn, :edit, List.first(@podcast.feeds)),
                           class: "btn btn-xs btn-default" %>

<% end %>

<%= @podcast.title %>

<%= if @podcast.retired do %>

    We retired this podcast, because we couldn't parse it for 10 consecutive times.

<% end %>

            <%= if @podcast_thumbnail do %>
              <%= img_tag(@podcast_thumbnail.path <> "/" <> @podcast_thumbnail.filename,
                          width: 150,
                          alt: @podcast.image_title,
                          class: "thumbnail",
                          id: "photo") %>
            <% else %>

            <% end %>

<%= raw @podcast.summary %>

          <%= render "_like_follow_unsubscribe_buttons.html",
                     current_user: @current_user, podcast: @podcast, conn: @conn %>

          <%= if @podcast.website do %>

Website

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

          <% end %>

Description

<%= @podcast.description %>

          <%= if @podcast.payment_link_url do %>

Support

<%= link @podcast.payment_link_title || "Support", to: String.trim(@podcast.payment_link_url) %>

          <% end %>

Language

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

          <%= if @podcast.last_build_date do %>

last modified

<%= Timex.format!(@podcast.last_build_date, "{ISOdate} {h24}:{m}") %>

          <% end %>
          <%= if @podcast.latest_episode_publishing_date do %>

last episode published

<%= Timex.format!(@podcast.latest_episode_publishing_date, "{ISOdate} {h24}:{m}") %>

          <% end %>
          <%= if @podcast.publication_frequency > 0 do %>

publication frequency

<%= Float.round(@podcast.publication_frequency, 2) %> days

          <% end %>

Contributors

          <%= for {persona, engagements} <- Enum.group_by(@podcast.engagements, &Map.get(&1, :persona)) do %>

              <%= link [fa_icon("user-o"), " ", persona.name],
                       to: persona_frontend_path(@conn, :show, persona),
                       class: "btn btn-xs truncate btn-lavender" %>
              <%= for engagement <- engagements do %>
                <%= engagement.role %>
              <% end %>

          <% end %>

Explicit

<%= @podcast.explicit %>

Number of Episodes

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

<%= fa_icon("feed") %> Rss-Feeds

<%= link "Detail page", to: podcast_frontend_path(@conn, :feeds, @podcast) %>

Categories

            <%= for category <- @podcast.categories do %>
              <%= link [fa_icon("folder-o"), " ", category.title],
                       to: category_frontend_path(@conn, :show, category),
                       class: "btn btn-xs btn-light-gray" %>
              <% end %>

    <%= render "_subscribe_button.html",
               podcast: @podcast, conn: @conn %>

<%= if @current_user && @current_user.admin do %>
  <%= link fa_icon("cogs"), to: podcast_path(@conn, :show, @podcast),
                            class: "btn btn-xs btn-default" %>
  <%= link fa_icon("rss"), to: feed_path(@conn, :edit, List.first(@podcast.feeds)),
                           class: "btn btn-xs btn-default" %>

<% end %>

<%= @podcast.title %>

<%= if @podcast.retired do %>

    We retired this podcast, because we couldn't parse it for 10 consecutive times.

<% end %>

            <%= if @podcast_thumbnail do %>
              <%= img_tag(@podcast_thumbnail.path <> "/" <> @podcast_thumbnail.filename,
                          width: 150,
                          alt: @podcast.image_title,
                          class: "thumbnail",
                          id: "photo") %>
            <% else %>

            <% end %>

<%= raw @podcast.summary %>

          <%= render "_like_follow_unsubscribe_buttons.html",
                     current_user: @current_user, podcast: @podcast, conn: @conn %>

          <%= if @podcast.website do %>

Website

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

          <% end %>

Description

<%= @podcast.description %>

          <%= if @podcast.payment_link_url do %>

Support

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

          <% end %>

Language

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

          <%= if @podcast.last_build_date do %>

last modified

<%= Timex.format!(@podcast.last_build_date, "{ISOdate} {h24}:{m}") %>

          <% end %>
          <%= if @podcast.latest_episode_publishing_date do %>

last episode published

<%= Timex.format!(@podcast.latest_episode_publishing_date, "{ISOdate} {h24}:{m}") %>

          <% end %>
          <%= if @podcast.publication_frequency > 0 do %>

publication frequency

<%= Float.round(@podcast.publication_frequency, 2) %> days

          <% end %>

Contributors

          <%= for {persona, engagements} <- Enum.group_by(@podcast.engagements, &Map.get(&1, :persona)) do %>

              <%= link [fa_icon("user-o"), " ", persona.name],
                       to: persona_frontend_path(@conn, :show, persona),
                       class: "btn btn-xs truncate btn-lavender" %>
              <%= for engagement <- engagements do %>
                <%= engagement.role %>
              <% end %>

          <% end %>

Explicit

<%= @podcast.explicit %>

Number of Episodes

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

<%= fa_icon("feed") %> Rss-Feeds

<%= link "Detail page", to: podcast_frontend_path(@conn, :feeds, @podcast) %>

Categories

            <%= for category <- @podcast.categories do %>
              <%= link [fa_icon("folder-o"), " ", category.title],
                       to: category_frontend_path(@conn, :show, category),
                       class: "btn btn-xs btn-light-gray" %>
              <% end %>

    <%= render "_subscribe_button.html",
               podcast: @podcast, conn: @conn %>


Reload page on resize

Reload page on resize

<!DOCTYPE html>
<html>
  <head lang="en">
    <meta charset="UTF-8">
    <title></title>
    <script src="/static/d3.v3.min.js" language="JavaScript"></script>
    <script src="/static/liquidFillGauge.js" language="JavaScript"></script>
    <script src="/static/jquery-1.12.3.min.js" language="JavaScript"></script>
    <script language="JavaScript">
      $(window).resize(function() {
          location.reload();
      });
    </script>
    <style>
        body {
          background-color: black;
        }

        .liquidFillGaugeText { font-family: Helvetica; font-weight: bold; }
    </style>
   </head>
  <body>

    <div style="padding-top: 250px">

      <!-- cpus -->
      <svg id="fillgauge1" width="33%" height="400"></svg>

      <!-- mem -->
      <svg id="fillgauge2" width="33%" height="400"></svg>

      <!-- disk -->
      <svg id="fillgauge3" width="33%" height="400"></svg>

  </div>

    <script language="JavaScript">

      var config1 = liquidFillGaugeDefaultSettings();
      config1.circleColor = "#c33";
      config1.circleFillGap = 0.08;
      config1.circleThickness = 0.08;
      config1.textColor = "#c33";
      config1.waveAnimateTime = 5000;
      config1.waveColor = "#c33";
      config1.waveCount = 1;
      config1.waveTextColor = "#fcc";
      var gauge1 = loadLiquidFillGauge("fillgauge1", 0, config1);

      var config2 = liquidFillGaugeDefaultSettings();
      config2.circleColor = "#3c3";
      config2.circleFillGap = 0.08;
      config2.circleThickness = 0.08;
      config2.textColor = "#3c3";
      config2.waveAnimateTime = 5000;
      config2.waveColor = "#3c3";
      config2.waveCount = 1;
      config2.waveTextColor = "#cfc";
      var gauge2 = loadLiquidFillGauge("fillgauge2", 0, config2);

      var config3 = liquidFillGaugeDefaultSettings();
      config3.circleColor = "#33c";
      config3.circleFillGap = 0.08;
      config3.circleThickness = 0.08;
      config3.textColor = "#33c";
      config3.waveAnimateTime = 5000;
      config3.waveColor = "#33c";
      config3.waveCount = 1;
      config3.waveTextColor = "#ccf";
      var gauge3 = loadLiquidFillGauge("fillgauge3", 0, config3);

      (function worker() {
          $.get('/events', function(data) {

          $.each(data, function(index, value) {
              if (value.service == 'mesos master/cpus_percent') {
                  gauge1.update((value.metric * 100).toFixed(0));
              } else if (value.service == 'mesos master/mem_percent') {
                  gauge2.update((value.metric * 100).toFixed(0));
              } else if (value.service == 'mesos master/disk_percent') {
                  gauge3.update((value.metric * 100).toFixed(0));
              }
          });

      }).always(function() {
          setTimeout(worker, 5000);
      })})();

    </script>
  </body>
</html>

<!DOCTYPE html>
<html>
  <head lang="en">
    <meta charset="UTF-8">
    <title></title>
    <script src="/static/d3.v3.min.js" language="JavaScript"></script>
    <script src="/static/liquidFillGauge.js" language="JavaScript"></script>
    <script src="/static/jquery-1.12.3.min.js" language="JavaScript"></script>
    <style>
        body {
          background-color: black;
        }

        .liquidFillGaugeText { font-family: Helvetica; font-weight: bold; }
    </style>
   </head>
  <body>

    <div style="padding-top: 250px">

      <!-- cpus -->
      <svg id="fillgauge1" width="33%" height="400"></svg>

      <!-- mem -->
      <svg id="fillgauge2" width="33%" height="400"></svg>

      <!-- disk -->
      <svg id="fillgauge3" width="33%" height="400"></svg>

  </div>

    <script language="JavaScript">

      var config1 = liquidFillGaugeDefaultSettings();
      config1.circleColor = "#c33";
      config1.circleFillGap = 0.08;
      config1.circleThickness = 0.08;
      config1.textColor = "#c33";
      config1.waveAnimateTime = 5000;
      config1.waveColor = "#c33";
      config1.waveCount = 1;
      config1.waveTextColor = "#fcc";
      var gauge1 = loadLiquidFillGauge("fillgauge1", 0, config1);

      var config2 = liquidFillGaugeDefaultSettings();
      config2.circleColor = "#3c3";
      config2.circleFillGap = 0.08;
      config2.circleThickness = 0.08;
      config2.textColor = "#3c3";
      config2.waveAnimateTime = 5000;
      config2.waveColor = "#3c3";
      config2.waveCount = 1;
      config2.waveTextColor = "#cfc";
      var gauge2 = loadLiquidFillGauge("fillgauge2", 0, config2);

      var config3 = liquidFillGaugeDefaultSettings();
      config3.circleColor = "#33c";
      config3.circleFillGap = 0.08;
      config3.circleThickness = 0.08;
      config3.textColor = "#33c";
      config3.waveAnimateTime = 5000;
      config3.waveColor = "#33c";
      config3.waveCount = 1;
      config3.waveTextColor = "#ccf";
      var gauge3 = loadLiquidFillGauge("fillgauge3", 0, config3);

      (function worker() {
          $.get('/events', function(data) {

          $.each(data, function(index, value) {
              if (value.service == 'mesos master/cpus_percent') {
                  gauge1.update((value.metric * 100).toFixed(0));
              } else if (value.service == 'mesos master/mem_percent') {
                  gauge2.update((value.metric * 100).toFixed(0));
              } else if (value.service == 'mesos master/disk_percent') {
                  gauge3.update((value.metric * 100).toFixed(0));
              }
          });

      }).always(function() {
          setTimeout(worker, 5000);
      })})();

    </script>
  </body>
</html>


Give vcard it's own card called Exports.

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

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

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

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

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

        <% end %>
        <%= if is_visitor?(@conn, @current_user) do %>
          <%= if user_follows_user?(@current_user, @user) do %>
            <%= button to: connection_path(@conn, :delete, user_follows_user?(@current_user, @user)), method: :delete , class: "button button-link 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(@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 %>
      <%= if @user.headline || same_user?(@user, @current_user) do %>

<%= gettext "Headline" %>

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

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

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

      <% end %>
      <% end %>

<%= gettext "Contact" %>

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

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

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

        <% end %>

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

<%= gettext "Exports" %>

<%= gettext "Vcard" %>

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

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

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

        <% end %>
        <% end %>

<%= gettext "Social Media" %>

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

<%= account.provider %>

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

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

<%= gettext "Skills" %>

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

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

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

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

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

    <% end %>

  <% end %>

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

<%= gettext "Followers" %>

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

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

    <% else %>

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

    <% end %>
    <%= if(@follower_count > 3) do %>
      <%= link "#{@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 %>

    <% else %>

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

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

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

<%= gettext "Experience" %>

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

    <% else %>

    <% end %>

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

  <% end %>

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

<%= gettext "Phone Numbers" %>

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

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

  <% end %>

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

<%= gettext "Links" %>

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

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

  <% end %>

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

<%= gettext "Addresses" %>

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

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

  <% end %>

<%# header tag begins in parent template %>
  <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 %>

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

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

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

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

        <% end %>
        <%= if is_visitor?(@conn, @current_user) do %>
          <%= if user_follows_user?(@current_user, @user) do %>
            <%= button to: connection_path(@conn, :delete, user_follows_user?(@current_user, @user)), method: :delete , class: "button button-link 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(@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 %>
      <%= if @user.headline || same_user?(@user, @current_user) do %>

<%= gettext "Headline" %>

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

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

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

      <% end %>
      <% end %>

<%= gettext "Contact" %>

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

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

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

        <% end %>

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

<%= gettext "Vcard" %>

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

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

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

        <% end %>
        <% end %>

<%= gettext "Social Media" %>

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

<%= account.provider %>

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

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

<%= gettext "Skills" %>

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

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

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

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

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

    <% end %>

  <% end %>

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

<%= gettext "Followers" %>

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

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

    <% else %>

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

    <% end %>
    <%= if(@follower_count > 3) do %>
      <%= link "#{@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 %>

    <% else %>

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

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

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

<%= gettext "Experience" %>

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

    <% else %>

    <% end %>

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

  <% end %>

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

<%= gettext "Phone Numbers" %>

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

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

  <% end %>

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

<%= gettext "Links" %>

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

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

  <% end %>

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

<%= gettext "Addresses" %>

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

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

  <% end %>


Display the number of upvotes only if > 0

  <%= for user_skill <- @user_skills do %>
    <li class="<%= if @current_user && Vutuv.Endorsement.skill_endorsed?(user_skill.id, @current_user_id), do: "upvoted" %>">
        <%= link to: user_user_skill_path(@conn, :show, @user, user_skill), class: "tag" do %>
          <%= Skill.resolve_name(user_skill.skill_id) %>
          <%= if @current_user || Enum.count(user_skill.endorsements) > 0 do %>
            <%= Enum.count(user_skill.endorsements) %>
          <% end %>
        <% end %>
      <%= if @current_user do %>
        <%= unless Vutuv.Endorsement.skill_endorsed?(user_skill.id, @current_user_id) do %>
          <%= button to: user_endorsement_path(@conn, :create, @user, id: user_skill), method: :post, class: "button-link", form: [class: "upvote button_list"] do %>

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

  <% end %>

  <%= for user_skill <- @user_skills do %>
    <li class="<%= if @current_user && Vutuv.Endorsement.skill_endorsed?(user_skill.id, @current_user_id), do: "upvoted" %>">
        <%= link to: user_user_skill_path(@conn, :show, @user, user_skill), class: "tag" do %>
          <%= Skill.resolve_name(user_skill.skill_id) %>
          <%= Enum.count(user_skill.endorsements) %>
        <% end %>
      <%= if @current_user do %>
        <%= unless Vutuv.Endorsement.skill_endorsed?(user_skill.id, @current_user_id) do %>
          <%= button to: user_endorsement_path(@conn, :create, @user, id: user_skill), method: :post, class: "button-link", form: [class: "upvote button_list"] do %>

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

  <% end %>


Show the build id on the view

Show the build id on the view

All projects

      Name
      Repository Url
      Plugins
      Delay
      Enabled?
      Last Build

<%= for project <- @projects do %>

      <%= project.name %>
      <%= project.url %>
      <%= project.plugins %>
      <%= project.delay %>
      <%= checkbox_btn project.enabled %>
      <%= project.last_build_id %>

        <%= link "Show", to: project_path(@conn, :show, project), class: "btn btn-default btn-xs" %>
        <%= link edit_label, to: project_path(@conn, :edit, project), class: "btn btn-default btn-xs" %>
        <%= link "Build", to: build_path(@conn, :index), class: "btn btn-xs" %>
        <%= link delete_label, to: project_path(@conn, :delete, project), method: :delete, data: [confirm: "Are you sure?"], class: "btn btn-danger btn-xs" %>

<% end %>

  <%= link new_label("project"), to: project_path(@conn, :new), class: "btn btn-default"%>

All projects

      Name
      Repository Url
      Plugins
      Delay
      Enabled?
      Last Build

<%= for project <- @projects do %>

      <%= project.name %>
      <%= project.url %>
      <%= project.plugins %>
      <%= project.delay %>
      <%= checkbox_btn project.enabled %>

        <%= link "Show", to: project_path(@conn, :show, project), class: "btn btn-default btn-xs" %>
        <%= link edit_label, to: project_path(@conn, :edit, project), class: "btn btn-default btn-xs" %>
        <%= link "Build", to: build_path(@conn, :index), class: "btn btn-xs" %>
        <%= link delete_label, to: project_path(@conn, :delete, project), method: :delete, data: [confirm: "Are you sure?"], class: "btn btn-danger btn-xs" %>

<% end %>

  <%= link new_label("project"), to: project_path(@conn, :new), class: "btn btn-default"%>


Better use of Bootstrap styles

Better use of Bootstrap styles

Show project

<%= tag :div, class: ".container-fluid" %>

  <%= tag :div, class: "form-group" %>
    <%= label :project, :name, class: "control-label" %>
    <%= content_tag :div, @project.name, class: "well well-sm" %>

  <%= tag :div, class: "form-group" %>
    <%= label :project, :url, class: "control-label" %>
    <%= content_tag :div, @project.url, class: "well well-sm" %>

  <%= tag :div, class: "form-group" %>
    <%= label :project, :plugins, class: "control-label" %>
    <%= content_tag :div, @project.plugins, class: "well well-sm" %>

  <%= tag :div, class: "form-group" %>
    <%= label :project, :delay, class: "control-label" %>
    <%= content_tag :div, @project.delay, class: "well well-sm" %>

  <%= tag :div, class: "form-group" %>
    <%= label :project, :enabled, class: "control-label" %>
    <%= content_tag :div, @project.enabled, class: "well well-sm" %>

  <button class="btn">
    <%= link "Edit", to: project_path(@conn, :edit, @project) %>
  </button>
  <button class="btn">
    <%= link "Back", to: project_path(@conn, :index) %>
  </button>

Show project

    Name:
    <%= @project.name %>

    Url:
    <%= @project.url %>

    Plugins:
    <%= @project.plugins %>

    Delay:
    <%= @project.delay %>

    Enabled:
    <%= checkbox :enabled, @project.enabled, value: @project.enabled %>

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


publications frequency

publications frequency

      <%= if @current_user && @current_user.admin do %>
        <%= link fa_icon("cogs"), to: podcast_path(@conn, :show, @podcast),
                                  class: "btn btn-xs btn-default" %>
        <%= link fa_icon("rss"), to: feed_path(@conn, :edit, List.first(@podcast.feeds)),
                                 class: "btn btn-xs btn-default" %>

      <% end %>

      <%= @podcast.title %>

                <object data="<%= @podcast.image_url %>"
                        alt="<%= @podcast.image_title%>"
                        type="image/png"
                        width="150"
                        class="thumbnail">

                </object>

<%= raw @podcast.summary %>

              <%= render "_like_follow_unsubscribe_buttons.html",
                         current_user: @current_user, podcast: @podcast, conn: @conn %>

              <%= if @podcast.website do %>

Website

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

              <% end %>

Description

<%= @podcast.description %>

              <%= 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.emoji %> <%= language.name %>
                <% end %>

              <%= if @podcast.last_build_date do %>

last modified

<%= Timex.format!(@podcast.last_build_date, "{ISOdate} {h24}:{m}") %>

              <% end %>
              <%= if @podcast.latest_episode_publishing_date do %>

last episode published

<%= Timex.format!(@podcast.latest_episode_publishing_date, "{ISOdate} {h24}:{m}") %>

              <% end %>
              <%= if @podcast.publication_frequency > 0 do %>

publication frequency

<%= Float.round(@podcast.publication_frequency, 2) %> days

              <% end %>

Contributors

              <%= for {persona, engagements} <- Enum.group_by(@podcast.engagements, &Map.get(&1, :persona)) do %>

                  <%= link [fa_icon("user-o"), " ", persona.name],
                           to: persona_frontend_path(@conn, :show, persona),
                           class: "btn btn-xs truncate btn-lavender" %>
                  <%= for engagement <- engagements do %>
                    <%= engagement.role %>
                  <% end %>

              <% end %>

Explicit

<%= @podcast.explicit %>

Number of Episodes

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

<%= fa_icon("feed") %> Rss-Feeds

<%= link "Detail page", to: podcast_frontend_path(@conn, :feeds, @podcast) %>

Categories

              <%= for category <- @podcast.categories do %>

                  <%= link [fa_icon("folder-o"), " ", category.title],
                           to: category_frontend_path(@conn, :show, category),
                           class: "btn btn-xs btn-light-gray" %>

              <% end %>

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

        <%= render "_subscribe_button.html",
                   podcast: @podcast, conn: @conn %>

      <%= if @current_user && @current_user.admin do %>
        <%= link fa_icon("cogs"), to: podcast_path(@conn, :show, @podcast),
                                  class: "btn btn-xs btn-default" %>
        <%= link fa_icon("rss"), to: feed_path(@conn, :edit, List.first(@podcast.feeds)),
                                 class: "btn btn-xs btn-default" %>

      <% end %>

      <%= @podcast.title %>

                <object data="<%= @podcast.image_url %>"
                        alt="<%= @podcast.image_title%>"
                        type="image/png"
                        width="150"
                        class="thumbnail">

                </object>

<%= raw @podcast.summary %>

              <%= render "_like_follow_unsubscribe_buttons.html",
                         current_user: @current_user, podcast: @podcast, conn: @conn %>

              <%= if @podcast.website do %>

Website

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

              <% end %>

Description

<%= @podcast.description %>

              <%= 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.emoji %> <%= language.name %>
                <% end %>

              <%= if @podcast.last_build_date do %>

last modified

<%= Timex.format!(@podcast.last_build_date, "{ISOdate} {h24}:{m}") %>

              <% end %>

Contributors

              <%= for {persona, engagements} <- Enum.group_by(@podcast.engagements, &Map.get(&1, :persona)) do %>

                  <%= link [fa_icon("user-o"), " ", persona.name],
                           to: persona_frontend_path(@conn, :show, persona),
                           class: "btn btn-xs truncate btn-lavender" %>
                  <%= for engagement <- engagements do %>
                    <%= engagement.role %>
                  <% end %>

              <% end %>

Explicit

<%= @podcast.explicit %>

Number of Episodes

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

<%= fa_icon("feed") %> Rss-Feeds

<%= link "Detail page", to: podcast_frontend_path(@conn, :feeds, @podcast) %>

Categories

              <%= for category <- @podcast.categories do %>

                  <%= link [fa_icon("folder-o"), " ", category.title],
                           to: category_frontend_path(@conn, :show, category),
                           class: "btn btn-xs btn-light-gray" %>

              <% end %>

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

        <%= render "_subscribe_button.html",
                   podcast: @podcast, conn: @conn %>


change static html

change static html

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

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

<input id="chat-input" type="text" style="width: 100%"></input>

Resources

        Guides

        Docs

        Source

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

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

<input id="chat-input" type="text"></input>

Resources

        Guides

        Docs

        Source

Help

        Mailing list

        #elixir-lang on freenode IRC

        @elixirphoenix


Frontend: Present repo language. Fix #20

  This project proposes an alternative to <%= link "github's trending page", to: "https://www.github.com/trending" %>,
  by exposing projects with high contribution rate, instead of daily stars (similarly to github's pulse page).
  The krihelimeter of each repository is calculated using the number of
  authors, commits, pull requests, and issues of that project, from the past week.
  <%= link "Read more...", to: page_path(@conn, :about) %>

  <%= render("claim_badge.html", conn: @conn) %>

        {{ repo.name }}
        <button data-toggle="collapse" class="pull-right btn btn-danger" data-target="#{{ repo.id }}">
          Krihelimeter {{ repo.krihelimeter }}
        </button>

{{ repo.language }}

Trending on github!

{{ repo.description }}

          {{ repo.authors }}

Authors

          {{ repo.commits }}

Commits

          {{ repo.merged_pull_requests }}

Merged Pull Requests

          {{ repo.proposed_pull_requests }}

Proposed Pull Requests

          {{ repo.closed_issues }}

Closed Issues

          {{ repo.new_issues }}

New Issues

  This project proposes an alternative to <%= link "github's trending page", to: "https://www.github.com/trending" %>,
  by exposing projects with high contribution rate, instead of daily stars (similarly to github's pulse page).
  The krihelimeter of each repository is calculated using the number of
  authors, commits, pull requests, and issues of that project, from the past week.
  <%= link "Read more...", to: page_path(@conn, :about) %>

  <%= render("claim_badge.html", conn: @conn) %>

        {{ repo.name }}
        <button data-toggle="collapse" class="pull-right btn btn-danger" data-target="#{{ repo.id }}">
          Krihelimeter {{ repo.krihelimeter }}
        </button>

Trending on github!

{{ repo.description }}

          {{ repo.authors }}

Authors

          {{ repo.commits }}

Commits

          {{ repo.merged_pull_requests }}

Merged Pull Requests

          {{ repo.proposed_pull_requests }}

Proposed Pull Requests

          {{ repo.closed_issues }}

Closed Issues

          {{ repo.new_issues }}

New Issues


improve language

improve language

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

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

  <% end %>

      Before Event email

The user will receive this email after accepting the invitation to the classroom.

          Edit
          Current

            <%= input f, :before_email_subject, using: :text_input %>

Subject

              <%= Event.before_email_subject(@event) %>

            <%= input f, :before_email_body_text, using: :textarea %>

Text

              <%= Event.before_email_body_text(@event) %>

      After Event email

The user will receive this email within 30 minutes after the event endet.

          Edit
          Current

            <%= input f, :after_email_subject, using: :text_input %>

Subject

              <%= Event.after_email_subject(@event) %>

            <%= input f, :after_email_body_text, using: :textarea %>

Text

              <%= Event.after_email_body_text(@event) %>

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

      Before Event email

The user will receive this email when he joins the classroom.

          Edit
          Current

            <%= input f, :before_email_subject, using: :text_input %>

Subject

              <%= Event.before_email_subject(@event) %>

            <%= input f, :before_email_body_text, using: :textarea %>

Text

              <%= Event.before_email_body_text(@event) %>

      After Event email

The user will receive this email within 30 minutes after the event endet.

          Edit
          Current

            <%= input f, :after_email_subject, using: :text_input %>

Subject

              <%= Event.after_email_subject(@event) %>

            <%= input f, :after_email_body_text, using: :textarea %>

Text

              <%= Event.after_email_body_text(@event) %>

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

<% end %>