css fixes

css fixes

Transaction Information

  <span class="fa <%= get_icon(@transaction.type) %>">
  <%= get_type(@transaction.type) %>
  | Hash:
  <%= @transaction.txid %>

<a href="<%= transactions_path(@conn, :index) %>" alt="Back to all transactions" title="Back to all transactions" class="back-link"><%= gettext "Back to all transactions" %>

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

<%= gettext "Claimed from" %>

        <%= for input <- @transaction.claims do %>

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

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

        <% end %>
      <% end %>
      <%= if @transaction.type != "ClaimTransaction" and @transaction.vin != []  do %>

<%= gettext "Sent from" %>

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

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

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

        <% end %>
      <% end %>

		<img src="<%= static_path(@conn, "/images/ICON_Sent-arrow.svg")%>" alt="Sent arrow" title="Sent arrow" class="transaction-sent-arrow" />

      <%= if @transaction.vouts != [] do %>

<%= gettext "Sent to" %>

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

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

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

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

<%= gettext "Registered" %>

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

<%= Helpers.round_or_not(@transaction.asset.amount) %> <%= Api.get_asset_name(@transaction.txid) %>

      <% end %>

<%= gettext "Time" %>

<%= compare_time_and_get_minutes(@transaction.time) %>

      <%= get_explanation("transaction_time") %>

<%= gettext "Network Fee" %>

<%= @transaction.net_fee %>

      <%= get_explanation("transaction_network_fees") %>

<%= gettext "System Fee" %>

<%= @transaction.sys_fee %>

      <%= get_explanation("transaction_system_fees") %>

<%= gettext "Included in Block" %>

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

<%= gettext "Size" %>

<%= @transaction.size %> <%= gettext "bytes" %>

      <%= get_explanation("transaction_size") %>

<%= gettext "Bytecode Invocation Script" %>

      <%= get_explanation("bytecode_invocation_script") %>

			<%= for script <- @transaction.scripts do %>

<%= get_inv(script) %>

			<% end %>

<%= gettext "Bytecode Verification Script" %>

      <%= get_explanation("bytecode_verification_script") %>

			<%= for script <- @transaction.scripts do %>

<%= get_ver(script) %>

			<% end %>

  <%= if @transaction.attributes != [] do %>
		<%= for att <- @transaction.attributes do %>

<%= gettext "Usage: " %> <%=att["usage"]%>

<%= att["data"] %>

		<% end %>
  <% end %>
  <%= if @transaction.script != nil do %>

<%= gettext "Bytecode Script" %>

<%= @transaction.script %>

  <% end %>

<%= gettext "Opcode Invocation Script" %>

      <%= get_explanation("opcode_invocation_script") %>

        <%= for script <- @transaction.scripts do %>
          <%= for operation <- parse_invocation(script) do %>
            <%= operation %>
          <% end %>
        <% end %>

<%= gettext "Opcode Verification Script" %>

      <%= get_explanation("opcode_verification_script") %>

        <%= for script <- @transaction.scripts do %>
          <%= for operation <- parse_verification(script) do %>
            <%= operation %>
          <% end %>
        <% end %>

  <%= if @transaction.attributes != [] do %>
		<%= for att <- @transaction.attributes do %>

<%= gettext "Opcode Attribute:" %> <%=att["usage"]%>

<%= Disassembler.parse_script(att["data"]) %>

		<% end %>
  <% end %>
  <%= if @transaction.script != nil do %>

<%= gettext "Opcode Script" %>

<%= Disassembler.parse_script(@transaction.script) %>

  <% end %>


use arrow functions

use arrow functions

overlay opacity

<!- div id="coords">

<input id="opacity" class="range-slider" type="range" value= "0.8" min="0.0" max="1.0" step="0.05" />


In the Staging Plan UI, show Discard & Commit buttons only when they can be used (i.e. there *is* a staging plan)

Instances

                      Status
                      Instance
                      Ownership
                      Node

                    {{ i.name }} ({{ i.url }})

                      {{ ownership(i) }}%

                     pendingOwnership(i)">
                      {{ ownership(i) }}% (pending {{ pendingOwnership(i)}}%)

                    <td ui-if="ownership(i) < pendingOwnership(i)">
                      {{ ownership(i) }}% (pending {{ pendingOwnership(i)}}%)

Staging Plan

             <form class="form-horizontal" ng-submit="stageJoin()">
              <fieldset>

                  Add an instance at

                    <input class="input-xlarge focused" id="instanceURL" type="text" placeholder="http://" ng-model="instanceToAdd">
                    <input class="btn-primary" type="submit" value="add">

              </fieldset>
            </form>

 0">

                      Action
                      Instance

                    Join
                    {{ findInstanceByURL(i).name }} ({{ i }})

                    Leave
                    {{ findInstanceByURL(i).name }} ({{ i }})

                    Force Remove
                    {{ findInstanceByURL(i).name }} ({{ i }})

                    Replace
                    {{ findInstanceByURL(i).name }} ({{ i }})

                    Force Replace
                    {{ findInstanceByURL(i).name }} ({{ i }})

                 <button ui-if="clusterMembershipPlan.plan.transitions > 0" class="btn3d btn-large btn-danger" ng-click="discardPlan()">Discard</button>
                 <button ui-if="clusterMembershipPlan.plan.transitions > 0" class="btn3d btn-large btn-success" ng-click="commitPlan()">Commit</button>

Instances

                      Status
                      Instance
                      Ownership
                      Node

                    {{ i.name }} ({{ i.url }})

                      {{ ownership(i) }}%

                     pendingOwnership(i)">
                      {{ ownership(i) }}% (pending {{ pendingOwnership(i)}}%)

                    <td ui-if="ownership(i) < pendingOwnership(i)">
                      {{ ownership(i) }}% (pending {{ pendingOwnership(i)}}%)

Staging Plan

             <form class="form-horizontal" ng-submit="stageJoin()">
              <fieldset>

                  Add an instance at

                    <input class="input-xlarge focused" id="instanceURL" type="text" placeholder="http://" ng-model="instanceToAdd">
                    <input class="btn-primary" type="submit" value="add">

              </fieldset>
            </form>

 0">

                      Action
                      Instance

                    Join
                    {{ findInstanceByURL(i).name }} ({{ i }})

                    Leave
                    {{ findInstanceByURL(i).name }} ({{ i }})

                    Force Remove
                    {{ findInstanceByURL(i).name }} ({{ i }})

                    Replace
                    {{ findInstanceByURL(i).name }} ({{ i }})

                    Force Replace
                    {{ findInstanceByURL(i).name }} ({{ i }})

                 <button class="btn3d btn-large btn-danger" ng-click="discardPlan()">Discard</button>
                 <button class="btn3d btn-large btn-success" ng-click="commitPlan()">Commit</button>


Fix link to stipend form in stipend intro

Stipend request process

    <%= render( "sidebar.html", assigns) %>

          It is our great pleasure to announce that we have just opened our stipend program. The goal of it is to
          fund open source development, trainings, workshops and other initiatives that will help increase
          and expand the Beam community. These stipends are funded by our sponsors,
          membership fees and donations.

The current focus of the foundation is on increasing and
          expanding the
          community so we will favour stipends that are targeted to
          beneficiaries that
          are new to Erlang/Elixir and the ecosystem. We prefer stipends that
          support
          online workshops, online training materials, hands-on trainings,
          development
          work (open source) and diversity efforts. On non-beam focused
          events where
          there is a clear Beam language component of the event, the stipend
          will only
          support the Beam language component of the event. The EEF will
          consider
          supporting a hackathon if the event has hands-on Beam languages
          education
          for a minimum of 6 hours. We will not fund prizes for hackathons
          or swag.

We recommend that you submit stipend proposals via our form at
          least 12
          weeks prior to the event. Proposals should be concise and have a
          clear
          objective. We encourage those applying for funding to try and get
          sponsorship
          from corporations or local sponsors as we want to encourage
          sustainable, long term relationships with them. The EEF could limit the
          number of events per
          organizer and/or city that are stipended within a given year.

          If you want to apply for a stipend, fill out the form here.
          If you have any questions please reach out to
          stipends@erlef.org


Update posts.html.eex (#2)

Update posts.html.eex (#2)

add post link to the header images

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

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

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

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

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

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


Add buttons on offer show

Add buttons on offer show

<%= render("_offer.html", conn: @conn, offer: @offer, title_link: false) %>
<div class="offer-link">
  <%= link(gettext("Go to the offer!"), to: @offer.url, class: "btn-info", target: "_blank") %>
  <%= if user_logged_in?(@conn) do %>
    <%= link(gettext("Edit offer"),
      to: admin_offer_path(@conn, :edit, @offer.slug),
      class: "btn-success") %>
    <%= if @offer.published_at do %>
      <%= link(gettext("Unpublish offer"),
        to: admin_offer_path(@conn, :unpublish, @offer.slug),
        class: "btn-primary") %>
    <% else %>
      <%= link(gettext("Publish offer"),
        to: admin_offer_path(@conn, :publish, @offer.slug),
        class: "btn-primary") %>
    <% end %>
    <%= link(gettext("Delete offer"),
      to: admin_offer_path(@conn, :delete, @offer.slug),
      class: "btn-danger",
      method: :delete,
      data: [confirm: gettext("Do you really want to delete this offer?")]) %>
  <% end %>
</div>

<%= render("_offer.html", conn: @conn, offer: @offer, title_link: false) %>
<div class="offer-link">
  <%= link(gettext("Go to the offer!"), to: @offer.url, class: "btn btn-info", target: "_blank") %>
</div>


WIP: setting up index page with material

<!doctype html>

    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="description" content="A front-end template that helps you build fast, modern mobile web apps.">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Material Design Lite</title>

    <meta name="mobile-web-app-capable" content="yes">
    <link rel="icon" sizes="192x192" href="images/android-desktop.png">

    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-title" content="Material Design Lite">
    <link rel="apple-touch-icon-precomposed" href="images/ios-desktop.png">

    <meta name="msapplication-TileImage" content="images/touch/ms-touch-icon-144x144-precomposed.png">
    <meta name="msapplication-TileColor" content="#3372DF">

    <link rel="shortcut icon" href="images/favicon.png">

    <link href="https://fonts.googleapis.com/css?family=Roboto:regular,bold,italic,thin,light,bolditalic,black,medium&lang=en" rel="stylesheet">
    <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
    <link rel="stylesheet" href="/assets/material.min.css">
    <link rel="stylesheet" href="/assets/styles.css">

Welcome

        Lorem ipsum dolor sit amet, consectetur adipiscing elit.
        Mauris sagittis pellentesque lacus eleifend lacinia...

          Get Started

        <button class="mdl-button mdl-button--icon mdl-js-button mdl-js-ripple-effect">
          share
        </button>

<!doctype html>
<html lang="en" class="mdl-js">
</html>


Chore: update analytics scripts

Chore: update analytics scripts

<!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><%= assigns[:title] || "RemoteRetro.org | Free. World-class. Agile retrospectives." %></title>

    <link rel="stylesheet" href="<%= Routes.static_path(@conn, "/css/semantic-ui/semantic.min.css") %>">
    <link rel="stylesheet" href="<%= app_css(@conn) %>">
    <link rel="apple-touch-icon" href="<%= Routes.static_path(@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_path(@conn, "/images/stride_logo.png") %>" alt="Stride" />

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

              Log Out

          <% end %>

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

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

    <% end %>