Sha256: b77da9d9c1116c67393deb928c47f4568782a4fa4e84333a99baf86734d18d4d

Contents?: true

Size: 1.97 KB

Versions: 3

Compression:

Stored size: 1.97 KB

Contents

<section class="tech-radar tech-radar-technology">
  <h1>
    <%= @technology.name %>
    <small>
      <%= t("tech_radar.radar.quadrants.#{@technology.quadrant}.title") %>
      <span class="label label-<%= label_color_for_ring(@technology.ring) %>"><%= t("tech_radar.radar.rings.#{@technology.ring}.title") %></span>
    </small>
  </h1>
  <p class="lead"><%= @technology.purpose %></p>
  <section class="tech-radar-technology-summary">
    <% if @technology.more_details_url.blank? && @technology.more_details_summary.blank? %>
      <p>
        <%= link_to t("tech_radar.radar.technologies.more_details_url.google"), "https://www.google.com/search?q=#{@technology.name}", class: "btn btn-default" %>
      </p>
    <% else %>
      <% if @technology.more_details_summary.present? %>
        <p class="text-muted">
          <%= render_summary(@technology.more_details_summary) %>
        </p>
      <% end %>
      <% if @technology.more_details_url.present? %>
        <p>
          <%= link_to t("tech_radar.radar.technologies.more_details_url.link"), @technology.more_details_url, class: "btn btn-default" %>
        </p>
      <% end %>
    <% end %>
  </section>
  <section>
    <hr>
    <% if @technology.why_summary.present? %>
      <p>
        <span class="text-muted tech-radar-technology-why-summary">
          <%= render_summary(@technology.why_summary) %>
        </span>
        <% if @technology.why_url.present? %>
          <%= link_to t("tech_radar.radar.technologies.why_summary.link"), @technology.why_url %>
        <% end %>
      </p>
    <% else %>
      <% if TechRadar.warn_on_missing_why_summary[@technology.ring] %>
        <div class="alert alert-warning">
          <%= t("tech_radar.radar.technologies.why_summary.no_summary").html_safe %>
          <% if @technology.why_url.present? %>
            <%= link_to t("tech_radar.radar.technologies.why_summary.url_only"), @technology.why_url %>
          <% end %>
        </div>
      <% end %>
    <% end %>
  </section>
</section>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
tech_radar-0.6.0 app/views/tech_radar/technologies/show.html.erb
tech_radar-0.5.0 app/views/tech_radar/technologies/show.html.erb
tech_radar-0.4.0 app/views/tech_radar/technologies/show.html.erb