Updating app id

Updating app id

<!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="csrf" content="<%= Plug.CSRFProtection.get_csrf_token() %>">
    <meta name="description" content="">
    <meta name="author" content="">

    <%= ogtags(assigns) %>

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

          <img src="<%= static_path(@conn, "/assets/couchjitsu_large_logo.png") %>" class="ui mini image" />

        <%= if(@conn.assigns[:current_user]) do %>
          <a href='/activityfeed' class='item <%= active_class(@conn, activity_feed_path(@conn, :index)) %>'>History
          <a href='/activityfeed/new' class='item <%= active_class(@conn, activity_feed_path(@conn, :new)) %>'>New
          <a href='/statistics' class='item <%= active_class(@conn, statistics_path(@conn, :index)) %>'>Statistics
        <% end %>

        <%= if(@conn.assigns[:current_user]) do %>
          <%= get_user(@conn) %>
        <% else %>

            Sign In

        <% end %>

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


Fix the footer position

Fix the footer position

<!DOCTYPE html>

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

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

    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.6/css/materialize.min.css">

実験管理画面

テーマ一覧

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

            XEE.JP

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

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

              <% else %>

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

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

              <% end %>

        </dev>

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

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

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

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


Fixes wrong https links

Fixes wrong https links

<!DOCTYPE html>

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

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

<%= link "*Nix Academy", to: user_path(@conn, :index) %>

<%= link "About", to: page_path(@conn, :about) %>

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

<%= link "My account", to: user_path(@conn, :show_self) %>

<%= link "Available skills", to: skill_path(@conn, :index) %>

<%= link "Logout", to: session_path(@conn, :delete) %>

          <%= else %>

<%= link "Login", to: session_path(@conn, :create) %>

          <% end %>

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

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

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

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

clubnix.fr

        <%#
chat.clubnix.fr
%>

git.clubnix.fr

        <%#
docs.clubnix.fr
%>

codecademy.com

exercism.io

projecteuler.net

c.learncodethehardway.org

learncpp.com

learnpythonthehardway.org

elixir-lang.org

linuxjourney.com

overthewire.org


one more fluid-container

one more fluid-container

<!DOCTYPE html>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="theme-color" content="#434a54">

    <title>Panoptikum</title>
    <link rel="stylesheet"
          href="<%= static_path(@conn, "/css/app.css") %>">
    <link rel="icon" sizes="192x192" href="/images/icon.png">

    <%= render_existing @view_module, "scripts.html", assigns %>

    <link rel="search" type="application/opensearchdescription+xml"
          title="Panoptikum" href="https://panoptikum.io/opensearch.xml">

  <body data-js-view-name="<%= js_view_name(@conn, @view_template) %>">

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

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

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

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


article title with link

article title with link


submit button position

submit button position

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

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

  <% end %>

<%= input f, :email, placeholder: "email@domain.com" %>

<%= input f, :first_name, placeholder: "(optional)" %>

<%= input f, :last_name, placeholder: "(optional)" %>

<%= input f, :role_id, collection: role_collection(@roles), using: :select %>

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

<% end %>


Add registration link in layout

Add registration link in layout

<!DOCTYPE html>

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

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

<%= link "Register", to: user_path(@conn, :new) %>

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

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

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

<!DOCTYPE html>

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

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

Get Started

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

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

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


Explicitly state what employee fields are optional

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

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

  <% end %>

Basic Information

  <fieldset class="form-group">

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

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

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

      <%= text_input f, :phone, class: "form-control", placeholder: "Phone (optional)" %>
      <%= error_tag f, :phone %>

      <%= text_input f, :avatar_url, class: "form-control", placeholder: "Avatar URL (optional)" %>
      <%= error_tag f, :avatar_url %>

  </fieldset>

Access

  <fieldset class="form-group">

        <%= radio_button f, :role, "restricted", checked: true %>
        Restricted: Cannot manage their own calendar. Cannot login to the appointments dashboard.

        <%= radio_button f, :role, "self" %>
        Self Access: Can only manage their own calendar.

        <%= radio_button f, :role, "full" %>
        Full Access: Access to the calendar of every employee.

  </fieldset>

Biography

  <fieldset class="form-group">

      <%= textarea f, :bio, class: "form-control", rows: 3 %>
      <%= error_tag f, :bio %>

  </fieldset>

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

Basic Information

  <fieldset class="form-group">

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

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

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

      <%= text_input f, :phone, class: "form-control", placeholder: "Phone" %>
      <%= error_tag f, :phone %>

      <%= text_input f, :avatar_url, class: "form-control", placeholder: "Avatar URL" %>
      <%= error_tag f, :avatar_url %>

  </fieldset>

Access

  <fieldset class="form-group">

        <%= radio_button f, :role, "restricted", checked: true %>
        Restricted: Cannot manage their own calendar. Cannot login to the appointments dashboard.

        <%= radio_button f, :role, "self" %>
        Self Access: Can only manage their own calendar.

        <%= radio_button f, :role, "full" %>
        Full Access: Access to the calendar of every employee.

  </fieldset>

Biography

  <fieldset class="form-group">

      <%= textarea f, :bio, class: "form-control", rows: 3 %>
      <%= error_tag f, :bio %>

  </fieldset>

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

<% end %>


tweak the footer (add attribution for materializecss)

      © David Salgado 2017.

      Cards logo © Brennan Novak.

      Uses MaterializeCSS

© David Salgado 2017

Cards logo © Brennan Novak


Link Recent Bills on Chamber #show to Bill #show pages

    <%= @chamber_presenter.chamber %>

Recent Bills Passed

  <%= for bill <- Enum.slice(@chamber_presenter.bills_passed, 0, 5) do %>

      <a href="<%= WhoWeb.RoutesHelper.bill_id_path(bill["bill_slug"]) %>">
        <%= bill["title"] %>

      <%= gettext("%{title} %{sponsor_name} (%{party} - %{state})", title: bill["sponsor_title"], sponsor_name: bill["sponsor_name"], party: bill["sponsor_party"] , state: bill["sponsor_state"]) %>

  <% end %>

Recent Bills Introduced

  <%= for bill <- Enum.slice(@chamber_presenter.bills_introduced, 0, 5) do %>

      <a href="<%= bill["congressdotgov_url"] %>">
        <%= bill["title"] %>

    <% end %>

Recent Floor Actions

  <%= for action <- Enum.slice(@chamber_presenter.floor_actions, 0, 5) do %>

<%= action["description"] %>

      <%= action["timestamp"] %>

  <% end %>

Members

  <%= for member <- Enum.slice(@chamber_presenter.chamber_members, 0, 5) do %>
    <a href=<%= WhoWeb.RoutesHelper.member_id_path(member["id"]) %>>

<%= member["first_name"] %> <%= member["last_name"] %>

  <% end %>

    <%= @chamber_presenter.chamber %>

Recent Bills Passed

  <%= for bill <- Enum.slice(@chamber_presenter.bills_passed, 0, 5) do %>

      <a href="<%= bill["congressdotgov_url"] %>">
        <%= bill["title"] %>

      <%= gettext("%{title} %{sponsor_name} (%{party} - %{state})", title: bill["sponsor_title"], sponsor_name: bill["sponsor_name"], party: bill["sponsor_party"] , state: bill["sponsor_state"]) %>

  <% end %>

Recent Bills Introduced

  <%= for bill <- Enum.slice(@chamber_presenter.bills_introduced, 0, 5) do %>

      <a href="<%= bill["congressdotgov_url"] %>">
        <%= bill["title"] %>

    <% end %>

Recent Floor Actions

  <%= for action <- Enum.slice(@chamber_presenter.floor_actions, 0, 5) do %>

<%= action["description"] %>

      <%= action["timestamp"] %>

  <% end %>

Members

  <%= for member <- Enum.slice(@chamber_presenter.chamber_members, 0, 5) do %>
    <a href=<%= WhoWeb.RoutesHelper.member_id_path(member["id"]) %>>

<%= member["first_name"] %> <%= member["last_name"] %>

  <% end %>


fix contributor button color in episode show view

    <%= fa_icon("podcast") %> <%= link @episode.podcast.title, to: podcast_frontend_path(@conn, :show, @episode.podcast), style: "color: #fff" %> /
    <%= fa_icon("headphones") %> <%= @episode.title %>

Subtitle

<%= @episode.subtitle %>

          <%= if @episode.payment_link_url do %>

Support

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

          <% end %>

Duration

<%= @episode.duration %>

Publishing date

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

Link

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

Deep link

<a href="<%= @episode.deep_link %>" id="metadata"><%= @episode.deep_link %>

Contributors

          <%= for gig <- @episode.gigs do %>

              <%= link [fa_icon("user-o"), " ", gig.persona.name],
                       to: persona_frontend_path(@conn, :show, gig.persona),
                       class: "btn btn-xs truncate btn-lavender" %>
              <span class="label label-success" id="gig-<%= gig.id %>"><%= gig.role %>

          <% end %>

Enclosures

          <%= for enclosure <- @episode.enclosures do %>

<%= enclosure.type %>

              <%= link String.split(enclosure.url, "/") |> List.last, to: enclosure.url %>

              <%= if is_integer(enclosure.length) do %>
                (<%= Float.round(String.to_integer(enclosure.length) / 1048576, 1) %> MB)
              <% end %>

          <% end %>

    <%= if @current_user do %>
      <%= like_or_unlike(@current_user.id, @episode.id) %>
    <% end %>

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

    <%= if @episode.description do %>

Description

<%= truncate(HtmlSanitizeEx.strip_tags(@episode.description), 1000) %>

    <% end %>

    <%= if @episode.summary && @episode.summary != @episode.description do %>

Summary

<%= truncate(@episode.summary, 1000) %>

    <% end %>

    <%= fa_icon("podcast") %> <%= link @episode.podcast.title, to: podcast_frontend_path(@conn, :show, @episode.podcast), style: "color: #fff" %> /
    <%= fa_icon("headphones") %> <%= @episode.title %>

Subtitle

<%= @episode.subtitle %>

          <%= if @episode.payment_link_url do %>

Support

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

          <% end %>

Duration

<%= @episode.duration %>

Publishing date

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

Link

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

Deep link

<a href="<%= @episode.deep_link %>" id="metadata"><%= @episode.deep_link %>

Contributors

          <%= for {gig, index} <- Enum.with_index(@episode.gigs) do %>

              <%= link [fa_icon("user-o"), " ", gig.persona.name],
                       to: persona_frontend_path(@conn, :show, gig.persona),
                       class: "btn btn-xs truncate " <> btn_cycle(index) %>
              <span class="label label-success" id="gig-<%= gig.id %>"><%= gig.role %>

          <% end %>

Enclosures

          <%= for enclosure <- @episode.enclosures do %>

<%= enclosure.type %>

              <%= link String.split(enclosure.url, "/") |> List.last, to: enclosure.url %>

              <%= if is_integer(enclosure.length) do %>
                (<%= Float.round(String.to_integer(enclosure.length) / 1048576, 1) %> MB)
              <% end %>

          <% end %>

    <%= if @current_user do %>
      <%= like_or_unlike(@current_user.id, @episode.id) %>
    <% end %>

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

    <%= if @episode.description do %>

Description

<%= truncate(HtmlSanitizeEx.strip_tags(@episode.description), 1000) %>

    <% end %>

    <%= if @episode.summary && @episode.summary != @episode.description do %>

Summary

<%= truncate(@episode.summary, 1000) %>

    <% end %>


Revert disabling empty contest category option in registration form

Strangely, when `disabled` is added, submitting an empty form results in the "performance" param not being present at all, causing a crash due to controller method signature mismatch.

  <%= gettext("Register") %>

  <%= name_with_flag(@contest) %>

    <%= form_for @changeset, performance_path(@conn, :create, @contest), fn _ -> %>
      <%= render "_form_error_summary.html" %>

            <%= gettext("Category") %>

          <select
            id="performance_contest_category_id"
            name="performance[contest_category_id]"
            class="form-control"
            v-model="contest_category_id"
            v-on:change="contestCategoryChanged">
            <option value=""><%= gettext("Please choose") %></option>
            <option
              v-for="option in contest_category_options"
              v-bind:value="option.id"
              v-text="option.name">
            </option>
          </select>
          <form-field-error v-bind:errors="errors.contest_category_id" />

<%= gettext("Participants") %>

        <%= render "_appearance_panels.html" %>

      <button type="button" class="btn btn-link" v-on:click="addAppearance()">
        <%= icon_tag("plus") %> <%= gettext("Add participant") %>
      </button>

<%= gettext("Pieces") %>

        <%= render "_piece_panels.html" %>

      <button type="button" class="btn btn-link" v-on:click="addPiece()">
        <%= icon_tag("plus") %> <%= gettext("Add piece") %>
      </button>

      <%= submit class: "btn btn-primary pull-right" do %>
        <%= gettext("Submit registration") %> <%= icon_tag("send") %>
      <% end %>
    <% end %>

  <%= gettext("Register") %>

  <%= name_with_flag(@contest) %>

    <%= form_for @changeset, performance_path(@conn, :create, @contest), fn _ -> %>
      <%= render "_form_error_summary.html" %>

            <%= gettext("Category") %>

          <select
            id="performance_contest_category_id"
            name="performance[contest_category_id]"
            class="form-control"
            v-model="contest_category_id"
            v-on:change="contestCategoryChanged">
            <option disabled value=""><%= gettext("Please choose") %></option>
            <option
              v-for="option in contest_category_options"
              v-bind:value="option.id"
              v-text="option.name">
            </option>
          </select>
          <form-field-error v-bind:errors="errors.contest_category_id" />

<%= gettext("Participants") %>

        <%= render "_appearance_panels.html" %>

      <button type="button" class="btn btn-link" v-on:click="addAppearance()">
        <%= icon_tag("plus") %> <%= gettext("Add participant") %>
      </button>

<%= gettext("Pieces") %>

        <%= render "_piece_panels.html" %>

      <button type="button" class="btn btn-link" v-on:click="addPiece()">
        <%= icon_tag("plus") %> <%= gettext("Add piece") %>
      </button>

      <%= submit class: "btn btn-primary pull-right" do %>
        <%= gettext("Submit registration") %> <%= icon_tag("send") %>
      <% end %>
    <% end %>


responsive persona table

responsive persona table

      <%= @persona.name %>

Panoptikum-ID

<%= @persona.pid %>

Permalink (URI)

<%= PanWeb.Endpoint.url %>/<%= @persona.pid %>

Name

<%= @persona.name %>

          <%= if @persona.uri do %>

Uri

<%= @persona.uri %>

          <% end %>

Business Cards

<%= link [fa_icon("vcard-o"), " Show"], to: persona_frontend_url(@conn, :business_card, @persona) %>

        Id: <%= @persona.id %>

        <%= if @persona.image_url do %>
          <object data="<%= @persona.image_url %>"
                  alt="<%= @persona.image_title%>"
                  type="image/png"
                  width="150"
                  class="thumbnail"
                  id="photo">

          </object>
        <% else %>

        <% end %>

    <%= if @current_user do %>

        <%= like_or_unlike(@current_user.id, @persona.id) %>
        <%= follow_or_unfollow(@current_user.id, @persona.id) %>

    <% end %>

<%= if @persona.description || @persona.long_description do %>

<%= @persona.description %>

      <%= markdown(@persona.long_description) %>

<% end %>

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

Engagements, <%= @persona.name %> has entered

          Podcast
          Role

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

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

              <%= for engagement <- engagements do %>
                <%= engagement.role %>
              <% end %>

        <% end %>

<% end %>

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

Gigs, <%= @persona.name %> has been engaged in

          Date
          Podcast
          Episode
          Role

        <%= for episode <- ordered_episodes(@gigs) do %>

            <%= if episode.publishing_date, do: format_date(episode.publishing_date) %>
            <%= link [fa_icon("podcast"), " ", episode.podcast.title],
                           to: podcast_frontend_path(@conn, :show, episode.podcast),
                           class: "btn btn-default btn-xs truncate",
                           style: "color: #000" %>
            <%= link [fa_icon("headphones"), " ", episode.title],
                        to: episode_frontend_path(@conn, :show, episode),
                        class: "btn btn-primary btn-xs truncate" %>

              <%= for gig <- @grouped_gigs[episode] do %>
                <%= gig.role %>
              <% end %>

        <% end %>

<% end %>

<%= if @messages.total_entries > 0 do %>

Messages created by <%= @persona.name %>

      <%= pagination_links @conn, @messages, [Integer.to_string(@persona.id)],
                   path: &persona_frontend_path/4,
                   action: :show,
                   view_style: :bootstrap %>

        <%= for message <- @messages.entries do %>
          <li class="list-group-item message-<%= message.type %>">

              <%= if message.creator, do: message.creator.name, else: message.persona.name %>:

            <%= raw message.content %>
            <%= message.inserted_at %>

        <% end %>

<% end %>

<%= if @current_user && @current_user.podcaster == true  && @current_user.email_confirmed && @persona.email != nil do %>
  <%= link "Claim", to: persona_frontend_path(@conn, :claim, @persona),
                    class: "btn btn-normal",
                    method: :post,
                    data: [confirm: "Are you sure?"] %>

  <button class="btn btn-primary btn-sm"
          data-toggle="popover"
          data-placement="right"
          data-title="Personas"
          data-html="true"
          data-content="You can send an email to the owner of this persona and ask her for permission
                        to add you as a manifestation of this persona.

                        Your name, username and email address will be sent alongside in the email
                        to give the owner a chance to get in contact with you.">
    <%= fa_icon "info-circle" %> Help
  </button>
<% end %>


Don't display follow button if the @current_user already is a follower.

<%= 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 %>
      <%= unless Enum.any?(@user.follower_connections, fn(x) -> x.follower_id == @current_user.id end) 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 %>
    <% 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 %>
      <%= 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 %>


sams little function has actual display

sams little function has actual display

<script>
  window.showHiddenContent = function (ev) {
    var el = document.querySelector('#vol-event');
    if (el.style.display == 'hidden') {
      el.style.display = 'block';
    } else {
      el.style.display = 'none';
    }
  }
</script>
<div style="padding: 40px;">
  <%= raw(@content) %>
</div>

<script>
  window.showHiddenContent = function (ev) {
    var el = document.querySelector('#vol-event');
    if (el.style.display == 'hidden') {
      el.style.display = 'block';
    } else {
      el.style.display = 'hidden';
    }
  }
</script>
<div style="padding: 40px;">
  <%= raw(@content) %>
</div>


sig is a View function, not an assign, in form.html.eex

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

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

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

Items with red stars are required.

      <fieldset>

What do you want us to call you? *

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

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

      </fieldset>
      <fieldset>

Would you like us to send you personalized emails?

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

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

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

      </fieldset>
      <fieldset>

Choose a Special Interest Group (SIG) *

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

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

At what grade levels do you currently teach? *

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

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

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

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

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

      </fieldset>
      <fieldset>

STEAM+ *

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

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

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

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

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

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

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

      </fieldset>

Section 2

      <fieldset>

Tags

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

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

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

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

Loading...
      </fieldset>

Section 3

      <fieldset>

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

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

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

      </fieldset>
      <fieldset>

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

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

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

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

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

      </fieldset>
      <fieldset>

Other: (please specify)

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

      </fieldset>

  <% end %>

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

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

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

Items with red stars are required.

      <fieldset>

What do you want us to call you? *

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

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

      </fieldset>
      <fieldset>

Would you like us to send you personalized emails?

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

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

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

      </fieldset>
      <fieldset>

Choose a Special Interest Group (SIG) *

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

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

At what grade levels do you currently teach? *

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

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

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

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

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

      </fieldset>
      <fieldset>

STEAM+ *

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

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

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

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

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

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

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

      </fieldset>

Section 2

      <fieldset>

Tags

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

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

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

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

Loading...
      </fieldset>

Section 3

      <fieldset>

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

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

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

      </fieldset>
      <fieldset>

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

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

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

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

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

      </fieldset>
      <fieldset>

Other: (please specify)

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

      </fieldset>

  <% end %>


Fix test flicker by not loading hljs

Fix test flicker by not loading hljs

<!DOCTYPE html>

    <title>
      <%= page_title(assigns) %> - Today I Learned
    </title>

    <meta name="csrf" content="<%= Plug.CSRFProtection.get_csrf_token() %>">

    <meta name="format-detection" content="telephone=no">
    <meta name="description" content="TIL is an open-source project by Hashrocket that exists to catalogue the sharing & accumulation of knowledge as it happens day-to-day.">

    <meta itemprop="name" content="Today I Learned">
    <meta itemprop="brand" content="Today I Learned">
    <meta itemprop="description" content="TIL is an open-source project by Hashrocket that exists to catalogue the sharing & accumulation of knowledge as it happens day-to-day.">

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

    <meta name="twitter:card" content="summary_large_image">
    <meta name="twitter:site" content="@hashrockettil">
    <meta name="twitter:creator" content="@hashrockettil">
    <meta name="twitter:title" content="Today I Learned: a Hashrocket Project">
    <meta name="twitter:description" content="TIL is an open-source project by Hashrocket that exists to catalogue the sharing & accumulation of knowledge as it happens day-to-day. Posts have a 200-word limit, and posting is open to any Rocketeer as well as select friends of the team. We hope you enjoy learning along with us.">
    <meta name="twitter:image" content=<%= TilexWeb.Endpoint.static_url() <> "/assets/til_twittercard.png" %>>

    <link href='//fonts.googleapis.com/css?family=Raleway:700,900' rel='stylesheet' type='text/css'>
    <link href='//fonts.googleapis.com/css?family=Lora:400,700italic,700,400italic' rel='stylesheet' type='text/css'>
    <link rel="alternate feed" type="application/rss+xml" title="Today I Learned" href="/rss">

    <link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/atom-one-dark.min.css">

    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">

    <link rel="stylesheet" href="<%= static_path(@conn, "/css/app.css") %>">
    <%= if assigns[:canonical_url] do %>
      <link rel="canonical" href="<%= @canonical_url %>">
    <% end %>

    <%= if developer = Guardian.Plug.current_resource(@conn) do %>

 <%= link(developer.username, to: developer_path(@conn, :show, developer)) %>

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

 <%= link("Create Post", to: post_path(@conn, :new)) %>

 <%= link("Profile", to: developer_path(@conn, :edit)) %>

    <% end %>

Today I Learned

          A Hashrocket project

            Follow on Twitter

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

          <%= message %>

      <% end %>

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

          <%= link("search", to: "#", class: "site_nav__link") %>

            <%= form_tag post_path(@conn, :index), method: :get do %>
              <input type="search" name="q" id="q">
              <%= submit "Search" %>
            <% end %>

          <%= link("?", to: "#", class: "site_nav__link") %>

              Today I Learned is an open-source project by

                Hashrocket

              that exists to catalogue the sharing & accumulation of knowledge
              as it happens day-to-day. Posts have a 200-word limit, and
              posting is open to any Rocketeer as well as selected friends of
              Hashrocket. We hope you enjoy learning along with us.

                  <%= link("/hashrockettil", to: "https://twitter.com/hashrockettil", class: "social_twitter") %>

                  <%= link("/hashrocket/tilex", to: "https://github.com/hashrocket/tilex", class: "social_github") %>

          <%= link("Statistics", to: "/statistics", class: "site_nav__link") %>

            <%= link("Twitter", to: "https://twitter.com/hashrockettil", class: "site_nav__link") %>

            <%= link("Surprise Me", to: "/random", class: "site_nav__link", rel: "nofollow") %>

    <%= if Mix.env != :test do %>

    <% end %>

    <%= if Application.get_env(:tilex, :ga_identifier) do %>

    <% end %>

<!DOCTYPE html>

    <title>
      <%= page_title(assigns) %> - Today I Learned
    </title>

    <meta name="csrf" content="<%= Plug.CSRFProtection.get_csrf_token() %>">

    <meta name="format-detection" content="telephone=no">
    <meta name="description" content="TIL is an open-source project by Hashrocket that exists to catalogue the sharing & accumulation of knowledge as it happens day-to-day.">

    <meta itemprop="name" content="Today I Learned">
    <meta itemprop="brand" content="Today I Learned">
    <meta itemprop="description" content="TIL is an open-source project by Hashrocket that exists to catalogue the sharing & accumulation of knowledge as it happens day-to-day.">

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

    <meta name="twitter:card" content="summary_large_image">
    <meta name="twitter:site" content="@hashrockettil">
    <meta name="twitter:creator" content="@hashrockettil">
    <meta name="twitter:title" content="Today I Learned: a Hashrocket Project">
    <meta name="twitter:description" content="TIL is an open-source project by Hashrocket that exists to catalogue the sharing & accumulation of knowledge as it happens day-to-day. Posts have a 200-word limit, and posting is open to any Rocketeer as well as select friends of the team. We hope you enjoy learning along with us.">
    <meta name="twitter:image" content=<%= TilexWeb.Endpoint.static_url() <> "/assets/til_twittercard.png" %>>

    <link href='//fonts.googleapis.com/css?family=Raleway:700,900' rel='stylesheet' type='text/css'>
    <link href='//fonts.googleapis.com/css?family=Lora:400,700italic,700,400italic' rel='stylesheet' type='text/css'>
    <link rel="alternate feed" type="application/rss+xml" title="Today I Learned" href="/rss">

    <link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/atom-one-dark.min.css">

    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">

    <link rel="stylesheet" href="<%= static_path(@conn, "/css/app.css") %>">
    <%= if assigns[:canonical_url] do %>
      <link rel="canonical" href="<%= @canonical_url %>">
    <% end %>

    <%= if developer = Guardian.Plug.current_resource(@conn) do %>

 <%= link(developer.username, to: developer_path(@conn, :show, developer)) %>

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

 <%= link("Create Post", to: post_path(@conn, :new)) %>

 <%= link("Profile", to: developer_path(@conn, :edit)) %>

    <% end %>

Today I Learned

          A Hashrocket project

            Follow on Twitter

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

          <%= message %>

      <% end %>

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

          <%= link("search", to: "#", class: "site_nav__link") %>

            <%= form_tag post_path(@conn, :index), method: :get do %>
              <input type="search" name="q" id="q">
              <%= submit "Search" %>
            <% end %>

          <%= link("?", to: "#", class: "site_nav__link") %>

              Today I Learned is an open-source project by

                Hashrocket

              that exists to catalogue the sharing & accumulation of knowledge
              as it happens day-to-day. Posts have a 200-word limit, and
              posting is open to any Rocketeer as well as selected friends of
              Hashrocket. We hope you enjoy learning along with us.

                  <%= link("/hashrockettil", to: "https://twitter.com/hashrockettil", class: "social_twitter") %>

                  <%= link("/hashrocket/tilex", to: "https://github.com/hashrocket/tilex", class: "social_github") %>

          <%= link("Statistics", to: "/statistics", class: "site_nav__link") %>

            <%= link("Twitter", to: "https://twitter.com/hashrockettil", class: "site_nav__link") %>

            <%= link("Surprise Me", to: "/random", class: "site_nav__link", rel: "nofollow") %>

    <%= if Application.get_env(:tilex, :ga_identifier) do %>

    <% end %>


Add aria label to search input

Add aria label to search input

<!DOCTYPE html>

    <title>
      <%= page_title(assigns) %> - Today I Learned
    </title>

    <meta name="csrf" content="<%= Plug.CSRFProtection.get_csrf_token() %>">

    <meta name="format-detection" content="telephone=no">
    <meta name="description" content="TIL is an open-source project by Hashrocket that exists to catalogue the sharing & accumulation of knowledge as it happens day-to-day.">

    <meta itemprop="name" content="Today I Learned">
    <meta itemprop="brand" content="Today I Learned">
    <meta itemprop="description" content="TIL is an open-source project by Hashrocket that exists to catalogue the sharing & accumulation of knowledge as it happens day-to-day.">

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

    <meta name="twitter:card" content="summary_large_image">
    <meta name="twitter:site" content="@<%= Application.get_env(:tilex, :default_twitter_handle)%>">
    <meta name="twitter:creator" content="@<%= Application.get_env(:tilex, :default_twitter_handle)%>">
    <meta name="twitter:title" content="<%= twitter_title(assigns[:post]) %>">
    <meta name="twitter:description" content="<%= twitter_description(assigns[:post]) %>">
    <meta name="twitter:image" content=<%= twitter_image_url(assigns[:post]) %>>

    <link href='//fonts.googleapis.com/css?family=Raleway:700,900' rel='stylesheet' type='text/css'>
    <link href='//fonts.googleapis.com/css?family=Lora:400,700italic,700,400italic' rel='stylesheet' type='text/css'>
    <link rel="alternate feed" type="application/rss+xml" title="Today I Learned" href="<%= feed_path(@conn, :index) %>">

    <link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/atom-one-dark.min.css">

    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">

    <link rel="stylesheet" href="<%= static_path(@conn, "/css/app.css") %>">
    <%= if assigns[:canonical_url] do %>
      <link rel="canonical" href="<%= @canonical_url %>">
    <% end %>
    <link rel="manifest" href="<%= web_manifest_path(@conn, :index) %>">

    <%= if request_tracking() do %>

    <% end %>

    <%= if developer = current_user(@conn) do %>

 <%= link(developer.username, to: developer_path(@conn, :show, developer)) %>

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

 <%= link("Create Post", to: post_path(@conn, :new)) %>

 <%= link("Profile", to: developer_path(@conn, :edit)) %>

    <% end %>

<%= link("Today I Learned", to: post_path(@conn, :index)) %>

          A Hashrocket project

            <a href="https://twitter.com/<%= Application.get_env(:tilex, :default_twitter_handle)%>" class="twitter">Follow on Twitter

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

          <%= message %>

      <% end %>

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

          <%= link("search", to: "#", class: "site_nav__link") %>

            <%= form_tag post_path(@conn, :index), method: :get do %>
              <input type="search" name="q" id="q" aria-label="Search">
              <%= submit "Search" %>
            <% end %>

          <%= link("?", to: "#", class: "site_nav__link", aria_label: "About TIL") %>

              Today I Learned is an open-source project by

                Hashrocket

              that exists to catalogue the sharing & accumulation of knowledge
              as it happens day-to-day. Posts have a 200-word limit, and
              posting is open to any Rocketeer as well as selected friends of
              Hashrocket. We hope you enjoy learning along with us.

                  <%= link("/#{Application.get_env(:tilex, :default_twitter_handle)}", to: "https://twitter.com/#{Application.get_env(:tilex, :default_twitter_handle)}", class: "social_twitter") %>

                  <%= link("/hashrocket/tilex", to: "https://github.com/hashrocket/tilex", class: "social_github") %>

          <%= if current_user(@conn) do %>
            <%= link("Statistics", to: stats_path(@conn, :developer), class: "site_nav__link") %>
          <% else %>
            <%= link("Statistics", to: stats_path(@conn, :index), class: "site_nav__link") %>
          <% end %>

            <%= link("Twitter", to: "https://twitter.com/#{Application.get_env(:tilex, :default_twitter_handle)}", class: "site_nav__link") %>

            <%= link("Surprise Me", to: post_path(@conn, :random), class: "site_nav__link", rel: "nofollow") %>

    <%= if ga_identifier() do %>

    <% end %>

<!DOCTYPE html>

    <title>
      <%= page_title(assigns) %> - Today I Learned
    </title>

    <meta name="csrf" content="<%= Plug.CSRFProtection.get_csrf_token() %>">

    <meta name="format-detection" content="telephone=no">
    <meta name="description" content="TIL is an open-source project by Hashrocket that exists to catalogue the sharing & accumulation of knowledge as it happens day-to-day.">

    <meta itemprop="name" content="Today I Learned">
    <meta itemprop="brand" content="Today I Learned">
    <meta itemprop="description" content="TIL is an open-source project by Hashrocket that exists to catalogue the sharing & accumulation of knowledge as it happens day-to-day.">

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

    <meta name="twitter:card" content="summary_large_image">
    <meta name="twitter:site" content="@<%= Application.get_env(:tilex, :default_twitter_handle)%>">
    <meta name="twitter:creator" content="@<%= Application.get_env(:tilex, :default_twitter_handle)%>">
    <meta name="twitter:title" content="<%= twitter_title(assigns[:post]) %>">
    <meta name="twitter:description" content="<%= twitter_description(assigns[:post]) %>">
    <meta name="twitter:image" content=<%= twitter_image_url(assigns[:post]) %>>

    <link href='//fonts.googleapis.com/css?family=Raleway:700,900' rel='stylesheet' type='text/css'>
    <link href='//fonts.googleapis.com/css?family=Lora:400,700italic,700,400italic' rel='stylesheet' type='text/css'>
    <link rel="alternate feed" type="application/rss+xml" title="Today I Learned" href="<%= feed_path(@conn, :index) %>">

    <link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/atom-one-dark.min.css">

    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">

    <link rel="stylesheet" href="<%= static_path(@conn, "/css/app.css") %>">
    <%= if assigns[:canonical_url] do %>
      <link rel="canonical" href="<%= @canonical_url %>">
    <% end %>
    <link rel="manifest" href="<%= web_manifest_path(@conn, :index) %>">

    <%= if request_tracking() do %>

    <% end %>

    <%= if developer = current_user(@conn) do %>

 <%= link(developer.username, to: developer_path(@conn, :show, developer)) %>

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

 <%= link("Create Post", to: post_path(@conn, :new)) %>

 <%= link("Profile", to: developer_path(@conn, :edit)) %>

    <% end %>

<%= link("Today I Learned", to: post_path(@conn, :index)) %>

          A Hashrocket project

            <a href="https://twitter.com/<%= Application.get_env(:tilex, :default_twitter_handle)%>" class="twitter">Follow on Twitter

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

          <%= message %>

      <% end %>

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

          <%= link("search", to: "#", class: "site_nav__link") %>

            <%= form_tag post_path(@conn, :index), method: :get do %>
              <input type="search" name="q" id="q">
              <%= submit "Search" %>
            <% end %>

          <%= link("?", to: "#", class: "site_nav__link", aria_label: "About TIL") %>

              Today I Learned is an open-source project by

                Hashrocket

              that exists to catalogue the sharing & accumulation of knowledge
              as it happens day-to-day. Posts have a 200-word limit, and
              posting is open to any Rocketeer as well as selected friends of
              Hashrocket. We hope you enjoy learning along with us.

                  <%= link("/#{Application.get_env(:tilex, :default_twitter_handle)}", to: "https://twitter.com/#{Application.get_env(:tilex, :default_twitter_handle)}", class: "social_twitter") %>

                  <%= link("/hashrocket/tilex", to: "https://github.com/hashrocket/tilex", class: "social_github") %>

          <%= if current_user(@conn) do %>
            <%= link("Statistics", to: stats_path(@conn, :developer), class: "site_nav__link") %>
          <% else %>
            <%= link("Statistics", to: stats_path(@conn, :index), class: "site_nav__link") %>
          <% end %>

            <%= link("Twitter", to: "https://twitter.com/#{Application.get_env(:tilex, :default_twitter_handle)}", class: "site_nav__link") %>

            <%= link("Surprise Me", to: post_path(@conn, :random), class: "site_nav__link", rel: "nofollow") %>

    <%= if ga_identifier() do %>

    <% end %>


Remove icon declarations from 'Frequently Asked Questions' link

    Remote

    RetroBETA

  <%= if @current_user do %>

      Glad to have you, <%= @current_user.given_name %>!

    <%= form_for @conn, retro_path(@conn, :create), [as: :retro, class: "ui form"], fn _f -> %>
      <%= submit "Create a Retrospective for Your Team", class: "ui button blue" %>
    <% end %>
  <% else %>

      Get Better With Your Team

Remote Retro lets you get together, even when you're far apart.

      Sign in with Google to Get Started

  <% end %>

    Frequently Asked Questions


Update cookies

Update cookies

<link rel="stylesheet" type="text/css" href="//cdnjs.cloudflare.com/ajax/libs/cookieconsent2/3.0.3/cookieconsent.min.css" />
<script src="//cdnjs.cloudflare.com/ajax/libs/cookieconsent2/3.0.3/cookieconsent.min.js"></script>
<script>
window.addEventListener("load", function(){
window.cookieconsent.initialise({
  "palette": {
    "popup": {
      "background": "#5c18bf",
      "text": "#fff"
    },
    "button": {
      "background": "#b842e1",
      "text": "#fff"
    }
  },
  "position": "bottom-right",
  "content": {
    "message": "<%= gettext("By using this website, you allow us to use some cookies to improve your experience and provide statistics") %>"
  }
})});
</script>

<link rel="stylesheet" type="text/css" href="//cdnjs.cloudflare.com/ajax/libs/cookieconsent2/3.0.3/cookieconsent.min.css" />
<script src="//cdnjs.cloudflare.com/ajax/libs/cookieconsent2/3.0.3/cookieconsent.min.js"></script>
<script>
window.addEventListener("load", function(){
window.cookieconsent.initialise({
  "palette": {
    "popup": {
      "background": "#5c18bf",
      "text": "#b842e1"
    },
    "button": {
      "background": "#b842e1",
      "text": "#5c18bf"
    }
  },
  "position": "bottom-right",
  "content": {
    "message": "<%= gettext("By using this website, you allow us to use some cookies to improve your experience and provide statistics") %>"
  }
})});
</script>


Perf: preload woff2 fonts used on homepage, minimizing FOUT

  - previously, these fonts requests were initiated once the semantic.min.css file was fetched (~90kb brotli compressed) and parsed
    - we know we need these fonts for most pages, so we initiate the loading asap, rather than waiting on the css file

<!DOCTYPE html>

    <link rel="preconnect" href="<%= Routes.static_url(@conn, "/") %>">
    <link rel="shortcut icon" href="<%= Routes.static_url(@conn, "/images/favicon.ico") %>">
    <%= 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="<%= assigns[:description] || "The world's best tool for conducting remote retrospectives" %>">
    <meta name="google-site-verification" content="T5W8sjrjt-BmTK5SYTjPM-FQZD8oGNatTNAJSyRex7o" />
    <meta name="author" content="">
    <title><%= assigns[:title] || "RemoteRetro.org | Free. World-class. Agile retrospectives." %></title>

    <link rel="preload" href="<%= Routes.static_url(@conn, "/css/semantic-ui/font/lato-v15-latin-regular.woff2") %>" as="font" type="font/woff2" crossorigin>
    <link rel="preload" href="<%= Routes.static_url(@conn, "/css/semantic-ui/font/lato-v15-latin-bold.woff2") %>" as="font" type="font/woff2" crossorigin>
    <link rel="preload" href="<%= Routes.static_url(@conn, "/css/semantic-ui/themes/default/assets/fonts/brand-icons.woff2") %>" as="font" type="font/woff2" crossorigin>
    <link rel="preload" href="<%= Routes.static_url(@conn, "/css/semantic-ui/themes/default/assets/fonts/icons.woff2") %>" as="font" type="font/woff2" crossorigin>
    <link rel="stylesheet" href="<%= Routes.static_url(@conn, "/css/semantic-ui/semantic.min.css") %>">
    <link rel="stylesheet" href="<%= app_css(@conn) %>">
    <link rel="apple-touch-icon" href="<%= Routes.static_url(@conn, "/images/apple-touch-icon.png") %>">

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

    <% end %>

  <body class="<%= assigns[:body_class] %>">

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

RemoteRetro

Built by

<img height="21" width="21" src="<%= Routes.static_url(@conn, "/images/stride_logo.png") %>" alt="Stride" />

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

              Log Out

          <% end %>

    <% end %>
      <%= @inner_content %>

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

    <% end %>

<!DOCTYPE html>

    <link rel="preconnect" href="<%= Routes.static_url(@conn, "/") %>">
    <link rel="shortcut icon" href="<%= Routes.static_url(@conn, "/images/favicon.ico") %>">
    <%= 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="<%= assigns[:description] || "The world's best tool for conducting remote retrospectives" %>">
    <meta name="google-site-verification" content="T5W8sjrjt-BmTK5SYTjPM-FQZD8oGNatTNAJSyRex7o" />
    <meta name="author" content="">
    <title><%= assigns[:title] || "RemoteRetro.org | Free. World-class. Agile retrospectives." %></title>

    <link rel="stylesheet" href="<%= Routes.static_url(@conn, "/css/semantic-ui/semantic.min.css") %>">
    <link rel="stylesheet" href="<%= app_css(@conn) %>">
    <link rel="apple-touch-icon" href="<%= Routes.static_url(@conn, "/images/apple-touch-icon.png") %>">

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

    <% end %>

  <body class="<%= assigns[:body_class] %>">

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

RemoteRetro

Built by

<img height="21" width="21" src="<%= Routes.static_url(@conn, "/images/stride_logo.png") %>" alt="Stride" />

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

              Log Out

          <% end %>

    <% end %>
      <%= @inner_content %>

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

    <% end %>


Update app.html.eex (#3)

Update app.html.eex (#3)

add footer

<!DOCTYPE html>

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

  <title><%= naive_translate("head title", @conn.assigns.lang)%></title>
  <link rel="stylesheet" href="<%= static_path(@conn, "/css/app.css") %>">
  <link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.2.2/semantic.min.css"></link>

      <img class="logo" src="/images/<%=naive_image_chooser("logo", @conn.assigns.lang)%>">

    <%=naive_translate("home", @conn.assigns.lang)%>
    <%=naive_translate("about", @conn.assigns.lang)%>
    <%=naive_translate("about_steemlike_chain", @conn.assigns.lang)%>

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

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

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


no linking to category

no linking to category

  <%= for post <- @posts do %>
  <% img_src = hd(post.json_metadata["image"]) %>

        <a href="/posts/<%= post.permlink %>"> <img src="<%= img_src %>">

<%= post.category %>

        <a class="header" href="/posts/<%= post.permlink %>"> <%= post.title %>

            <%= for tag <- post.tags do %>
              <a class="ui  label" href="/tags/<%=tag%>">
                <%= format_tag(tag, @conn.assigns.lang) %>

            <% end %>

  <% end %>

      <%= for {v, i} <- generate_pagination_list(@current_page) do %>

        <a class="<%=if i == @current_page, do: "active" %> item"
           href="<%= @conn.request_path <> "?" <> URI.encode_query(%{"page"=> v}) %>">
          <%= v %>

      <% end %>


code improvement

code improvement

        @ posted:
        ...

        @ опубликовал:
        ...

    <%= for post <- @posts do %>

          <a href="/authors/<%= post.author %>/<%= post.permlink %>">
            <img src="<%= generate_img_for_post(@conn, post)) %>">

              <a class="header" href="/authors/<%= post.author %>/<%= post.permlink %>"><%= post.title %>

                <a style="font-size: 15px; color: rgba(0,0,0,0.6);" class="author" href="/author/<%=post.author%>">

                  <%= post.author  %>

                  <%= hd(String.split(NaiveDateTime.to_string(post.created))) %>

                <%= format_excerpt(post) %>...

                  <%= for tag <- post.tags do %>
                  <a class="ui label" href="/tags/<%=tag%>">
                    <%= format_tag(tag, post.blockchain) %>

                  <% end %>

    <% end %>

      <%= for {v, i} <- generate_pagination_list(@conn.assigns.page_num) do %>

      <a class="<%=if v == @conn.assigns.page_num, do: "active" %> item"
        href="<%= @conn.request_path <> "?" <> URI.encode_query(%{"page"=> v}) %>">
        <%= v %>

      <% end %>

        @ posted:
        ...

        @ опубликовал:
        ...

    <%= for post <- @posts do %>
    <% img_src =  generate_img_for_post(@conn, post)) %>

          <a href="/authors/<%= post.author %>/<%= post.permlink %>">

            <img src="<%= img_src %>">

              <a class="header" href="/authors/<%= post.author %>/<%= post.permlink %>"><%= post.title %>

                <a style="font-size: 15px; color: rgba(0,0,0,0.6);" class="author" href="/author/<%=post.author%>">

                  <%= post.author  %>

                  <%= hd(String.split(NaiveDateTime.to_string(post.created))) %>

                <%= format_excerpt(post) %>...

                  <%= for tag <- post.tags do %>
                  <a class="ui label" href="/tags/<%=tag%>">
                    <%= format_tag(tag, post.blockchain) %>

                  <% end %>

    <% end %>

      <%= for {v, i} <- generate_pagination_list(@conn.assigns.page_num) do %>

      <a class="<%=if v == @conn.assigns.page_num, do: "active" %> item"
        href="<%= @conn.request_path <> "?" <> URI.encode_query(%{"page"=> v}) %>">
        <%= v %>

      <% end %>


use email inupt for creating and editing users to automatically cut off trailing whitespace

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

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

  <% end %>

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

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

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

    <%= label f, :role, class: "control-label" %>
    <%= select f, :role, Scripture.User.roles, class: "form-control" %>
    <%= error_tag f, :role %>

    <%= label f, :group, class: "control-label" %>
    <%= select f, :group, Scripture.User.groups, class: "form-control" %>
    <%= error_tag f, :group %>

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

<% end %>

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

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

  <% end %>

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

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

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

    <%= label f, :role, class: "control-label" %>
    <%= select f, :role, Scripture.User.roles, class: "form-control" %>
    <%= error_tag f, :role %>

    <%= label f, :group, class: "control-label" %>
    <%= select f, :group, Scripture.User.groups, class: "form-control" %>
    <%= error_tag f, :group %>

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

<% end %>


Housekeeping favicon.ico

Housekeeping favicon.ico

<!doctype html>

    <%= if @conn.assigns[:user] do %>
      <%= if @user.noindex? do %>
        <meta name="robots" content="noindex">
      <% end %>
    <% end %>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <title><%= if @conn.assigns[:user], do: full_name(@conn.assigns[:user]), else: "vutuv" %></title>
        <meta name="description" content="">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <link rel="icon" type="image/png" href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAABSlBMVEUAAAAaGRkfHh4xLCwbGhoaGBgZGBgQEBAcHBwrJCQjICA9OjooJiYaGhoYGBgaGRkaGRkaGRkaGRkaGRkaGRkaGRkaGRkaGRkaGRkaGRkaGRkaGRkaGRkaGRkaGRkaGRkbGhoaGRkaGRkaGRkaGRkaGRkaGRkaGRkaGRkaGRkaGRkaGRkaGRkaGRkaGRkaGRkaGRkaGRkaGRkaGRkaGRkaGRkaGRkaGRkaGRkaGRkaGRkaGRkaGRkbGhoaGRkaGRkaGRkaGRkaGRkaGRkaGRkaGRkaGhoaGRkaGRkbGhoaGRkaGRkaGRkaGRkaGRkaGRkaGRkaGRkaGRkaGRkaGRkaGRkaGRkaGRkaGRkaGRkaGRkaGRkaGRkaGRkaGRkaGRkaGRkaGRkaGRkaGRkaGRkaGRkaGRkaGRkaGRkaGRkaGRkaGRkaGRn///9Hl2M/AAAAbHRSTlMAAAAAAAAAAAAAAAAAAAAZTk9QJRoy6fz7lnH9DcHMEgWtgPE7Id4/8ndT+hHItwiUheYqFc/+ZEL0D8SoBIR8IsU061rwCLOgAn9i2x5jH9lXOo+li5A87+7oPQlbyxZycyDY1/j5JgIxRkWE/74JAAABW0lEQVR4Ac2OaXvSUBCF5+iIu6AIRAEXdg2IKKKCigKKYlvoTltKF0rLkv//udwJaQnkB/B+SOac+95nLi0JcHseT3jixQ0zP5XsccMSfP6ApmnGs5usIuN5cBIDft+VEAobihcvIfHVa4nhkCXwrYg00ZgpxBMSIy6mKUimpHoDVhve6iqkkiALpDMivMtiEm6/l5BJXwvsykn34aMS8p8k5GSDfUfhM+4Qvny1bRBQLMmtb9/B+CFjqTgrMMrSJn4CxV8ylsE0AypV1QZqQOy3mqoVkE34U5d7f/+hIUM9axcY/4OqX1kNyWuCa2CygWZLHWjrG1H1bzVBdvjupqHY2pbfzj0mO/ex21Yne/vq2z7AA5oDHfOZQr0DmodR061z/RAPaQHku5bQPQItwjguTIUTMDmA054h9OIgJ+BqmELkEZMj8J7p/f557wLkDAbD0Xg8Gg5Ay8UlKD9uJjN5L5MAAAAASUVORK5CYII=" sizes="32x32">
        <link rel="icon" type="image/png" href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAvVBMVEUAAAAbGRkaGRkZGBgbGhocGxscHBwdGxsaGhoaGRkaGRkaGRkaGRkaGRkaGRkaGRkaGRkaGRkaGRkaGRkaGRkaGRkaGRkaGRkaGRkaGRkaGRkaGRkaGRkaGRkaGRkaGRkaGRkaGRkaGRkaGRkaGRkaGRkaGRkaGRkaGRkaGRkaGRkaGRkaGRkaGRkaGRkaGRkaGRkaGRkaGRkaGRkaGRkaGRkaGRkaGRkaGRkaGRkaGRkaGRkaGRkaGRn////OIJm3AAAAPXRSTlMAAAAAAAAAAAABWaF3BgNtXfzgIhjUI9/7VkX1BKaYhVvTFg3FHdj3RjfwkY6Akj/x20ALtrdc+hTHyE6bnw+8hgAAAJRJREFUGNONiDEKwkAUBee/v/sxKBaCpYWClZ33P0GaHCBgmQsEm7ju2gQLK6eZYeAHN22q2tqbasmrdZg92VmhIUHEPeKrVBRGGIQRjSKI4JqdfCEChCYf8dM5M/okEkU5CDNj3yg42HzstosfeD9qQ1BLmpkSc3pVSADJuEGuAAI0aIHFBq2jIIGLsg6iV2vW8x8fYE4pfoTWYZsAAAAASUVORK5CYII=" sizes="16x16">
        <link rel="apple-touch-icon" sizes="180x180" href="images/apple-touch-icon.png">
        <link rel="manifest" href="manifest.json">
        <link rel="mask-icon" href="images/safari-pinned-tab.svg" color="#5bbad5">
        <link rel="shortcut icon" href="images/favicon.ico">
        <meta name="msapplication-config" content="browserconfig.xml">
        <meta name="theme-color" content="#ffffff">

        <%= embed_css @conn %>

    <body class = "<%= @conn.assigns[:body_class] %>">

    <%= if @conn.assigns[:current_user] do %>
      <%= link to: session_path(@conn, :delete, @current_user), method: "delete", class: "navigation__icon", form: [style: "flex: 1;"] do %>
      <i title="<%= gettext("Log Out") %>" class="icon icon--lock">
      <% end %>
    <% else %>
      <%= link to: session_path(@conn, :new), class: "navigation__icon" do %>
      <i title="<%= gettext("Log In") %>" class="icon icon--lock">
      <% end %>
    <% end %>

      <img src="data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%20134.35%2034.65%27%3E%3Ctitle%3Elogo%3C%2Ftitle%3E%3Cpath%20d%3D%27M10.19%2034.05q-2.56-5-5.19-11.7T0%207.75h7.9q.5%202%201.18%204.23t1.41%204.6q.73%202.32%201.46%204.52t1.43%204q.65-1.8%201.4-4t1.48-4.52q.73-2.33%201.41-4.6t1.18-4.23h7.7q-2.36%207.9-5%2014.6t-5.19%2011.7zM52.95%2033.15a41.42%2041.42%200%200%201-4.9%201%2040.27%2040.27%200%200%201-6.3.47%2014.94%2014.94%200%200%201-5.58-.9%208.46%208.46%200%200%201-3.53-2.5%209.85%209.85%200%200%201-1.85-3.88%2020.82%2020.82%200%200%201-.55-5V7.75h7.45V21.5a10.65%2010.65%200%200%200%201%205.2q.95%201.6%203.55%201.6.8%200%201.7-.08t1.6-.17V7.75h7.45zM59.7%201.2L67.15%200v7.75h9v6.2h-9v9.25a7.36%207.36%200%200%200%20.83%203.75q.82%201.4%203.32%201.4a14.2%2014.2%200%200%200%202.48-.23%2012.62%2012.62%200%200%200%202.33-.62l1%205.8a21.08%2021.08%200%200%201-3%20.95%2017.51%2017.51%200%200%201-4.05.4%2013.34%2013.34%200%200%201-5-.82%207.91%207.91%200%200%201-3.2-2.3%208.54%208.54%200%200%201-1.67-3.58%2021%2021%200%200%201-.48-4.65zM117.99%2034.05q-2.56-5-5.19-11.7t-5-14.6h7.9q.5%202%201.18%204.23t1.41%204.6q.73%202.32%201.46%204.52t1.43%204q.65-1.8%201.4-4t1.48-4.52q.73-2.33%201.41-4.6t1.17-4.23h7.7q-2.36%207.9-5%2014.6t-5.19%2011.7zM81.9%2033.15a41.38%2041.38%200%200%200%204.9%201%2040.26%2040.26%200%200%200%206.3.47%2014.94%2014.94%200%200%200%205.58-.9%208.46%208.46%200%200%200%203.53-2.52%209.84%209.84%200%200%200%201.85-3.88%2020.8%2020.8%200%200%200%20.55-5V7.75h-7.46V21.5a10.65%2010.65%200%200%201-1%205.2q-.95%201.6-3.55%201.6-.8%200-1.7-.08t-1.6-.17V7.75h-7.4z%27%20fill%3D%27%231a1918%27%2F%3E%3C%2Fsvg%3E">
      <%= link to: search_query_path(@conn, :new), class: "navigation__icon  navigation__icon--right" do %>
      <i title="<%= gettext "Search" %>" class="icon icon--search">
      <% end %>

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

      Copyright © 2016 AMOOMA, MIT licensed
      Give us feedback | Privacy


Bugfix schema.org data

Bugfix schema.org data


Present the num of authors. Fix #23

Present the num of authors. Fix #23

The Krihelinator

"Trendiness of OSS should be assessed by contribution rate, not by stars"

- Meir Kriheli

  <%= for repo <- @repos do %>

        <a href="http://github.com/<%= repo.name %>"><%= repo.name %>
        <button data-toggle="collapse" class="pull-right btn btn-danger" data-target="#<%= repo.id %>">
          Krihelimeter <%= repo.krihelimeter %>
        </button>

<%= repo.description %>

      <div id="<%= repo.id %>" class="collapse">
        <%= 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

  <%= end %>

The Krihelinator

"Trendiness of OSS should be assessed by contribution rate, not by stars"

- Meir Kriheli

  <%= for repo <- @repos do %>

        <a href="http://github.com/<%= repo.name %>"><%= repo.name %>
        <button data-toggle="collapse" class="pull-right btn btn-danger" data-target="#<%= repo.id %>">
          Krihelimeter <%= repo.krihelimeter %>
        </button>

<%= repo.description %>

      <div id="<%= repo.id %>" class="collapse">
        <%= 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

  <%= end %>


Remove 'create' link.

Remove 'create' link.

<!DOCTYPE html>

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

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

        Teal

        About

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

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

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

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

        <% end %>

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

<!DOCTYPE html>

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

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

        Teal

        About
        Create

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

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

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

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

        <% end %>

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


sams buttons

sams buttons

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

<script>

  function show (el) {
    el.style.display = 'block';
  }

  function hide (el) {
    el.style.display = 'none';
  }

  function toggle (el) {
    if (el.style.display == 'none') {
      el.style.display = 'block';
    } else {
      el.style.display = 'none';
    }
  }

  function showHiddenContent (ev) {
    var el = document.querySelector('#vol-events');
    var action = el.getAttribute('data-action');

    if (action == 'show') {
      show(el)
    } else if (action == 'hide') {
      hide(el)
    } else {
      toggle(el)
    }
  }

  var buttons = Array.from(document.querySelectorAll('#show-events'));

  buttons.forEach(function (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 == '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>