This repository has been archived by the owner on Jan 26, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ce15e1c
commit b9aaf70
Showing
25 changed files
with
372 additions
and
115 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
tech-radar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
2.2.3 |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
require_dependency "tech_radar/application_controller" | ||
|
||
module TechRadar | ||
class RingsController < ApplicationController | ||
def show | ||
tech_radar = TechRadar::Radar.new | ||
@all_ring_names = tech_radar.rings.map(&:name) | ||
@ring = tech_radar.ring(params[:id]) | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,26 @@ | ||
module TechRadar | ||
module ApplicationHelper | ||
def label_color_for_ring(ring_name) | ||
if ring_name == 'Adopt' | ||
:success | ||
elsif ring_name == 'Hold' | ||
:warning | ||
else | ||
:default | ||
end | ||
end | ||
|
||
def panel_type_for_technology_why(technology) | ||
if technology.why_summary.blank? && warn_on_missing_why?(technology) | ||
:warning | ||
else | ||
:default | ||
end | ||
end | ||
|
||
def warn_on_missing_why?(technology) | ||
technology.ring != 'Adopt' && technology.ring != 'Trial' | ||
end | ||
|
||
end | ||
end |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,33 @@ | ||
<ul> | ||
<section> | ||
<nav> | ||
<ul class="nav nav-pills"> | ||
<% @all_quadrant_names.each do |quadrant_name| %> | ||
<li role="presentation" class="<%= quadrant_name == @quadrant.name ? 'active' : '' %>"><%= link_to t("tech_radar.radar.quadrants.#{quadrant_name}.title"), quadrant_path(quadrant_name) %></li> | ||
<% end %> | ||
</ul> | ||
</nav> | ||
<hr> | ||
<h2 class="sr-only"><%= t("tech_radar.radar.quadrants.#{@quadrant.name}.title") %></h2> | ||
<p class="lead"><%= t("tech_radar.radar.quadrants.#{@quadrant.name}.description") %></p> | ||
<% @quadrant.rings.each do |ring| %> | ||
<li> | ||
<%= ring.name %> | ||
<ul> | ||
<section> | ||
<h1 class="h2"> | ||
<%= t("tech_radar.radar.rings.#{ring.name}.title") %> | ||
<small><%= t("tech_radar.radar.rings.#{ring.name}.summary").html_safe %></small> | ||
</h1> | ||
<ul class="list-unstyled"> | ||
<% ring.technologies.each do |technology| %> | ||
<li><%= technology.name %></li> | ||
<li> | ||
<p class="h4"> | ||
<%= link_to technology.name, technology_path(technology.name) %> | ||
· | ||
<small> | ||
<%= technology.purpose %> | ||
</small> | ||
</p> | ||
</li> | ||
<% end %> | ||
</ul> | ||
</li> | ||
</section> | ||
<% end %> | ||
</ul> | ||
</section> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,47 @@ | ||
<p> | ||
<%= t("tech_radar.radar.index.preamble") %> | ||
</p> | ||
<section> | ||
<div class="row"> | ||
<div class="col-md-2"> </div> | ||
<div class="col-md-8"> | ||
<header> | ||
<h1><%= t("tech_radar.radar.title") %></h1> | ||
</header> | ||
<p class="lead"> | ||
<%= t("tech_radar.radar.index.preamble") %> | ||
</p> | ||
<%= link_to t("tech_radar.radar.index.summary_link"), radar_summary_path, class: "btn btn-primary" %> | ||
<%= link_to t("tech_radar.radar.index.all_list_link"), technologies_path, class: "btn btn-default" %> | ||
<section> | ||
<h1 class="h2"><%= t("tech_radar.radar.index.howto.title") %></h1> | ||
<h2 class="h3"><%= t("tech_radar.radar.rings.name") %></h1> | ||
<p><%= t("tech_radar.radar.index.howto.rings.preamble") %></p> | ||
<% @radar.rings.each_slice(2) do |rings| %> | ||
<div class="row"> | ||
<% rings.each do |ring| %> | ||
<div class="col-md-6"> | ||
<h3 class="h4"><%= link_to t("tech_radar.radar.rings.#{ring.name}.title"), ring_path(ring.name) %></h3> | ||
<p class="text-muted"><%= t("tech_radar.radar.rings.#{ring.name}.description").html_safe %></p> | ||
</div> | ||
<% end %> | ||
</div> | ||
<% end %> | ||
<h2 class="h3"><%= t("tech_radar.radar.quadrants.name") %></h1> | ||
<p><%= t("tech_radar.radar.index.howto.quadrants.preamble") %></p> | ||
<% @radar.quadrants.each_slice(2) do |quadrants| %> | ||
<div class="row"> | ||
<% quadrants.each do |quadrant| %> | ||
<div class="col-md-6"> | ||
<h3 class="h4"><%= link_to t("tech_radar.radar.quadrants.#{quadrant.name}.title"), quadrant_path(quadrant.name) %></h3> | ||
<p class="text-muted"><%= t("tech_radar.radar.quadrants.#{quadrant.name}.description").html_safe %></p> | ||
</div> | ||
<% end %> | ||
</div> | ||
<% end %> | ||
</section> | ||
<section> | ||
</section> | ||
<h1 class="h2"><%= t("tech_radar.radar.index.changing.title") %></h1> | ||
<p><%= t("tech_radar.radar.index.changing.preamble") %></p> | ||
</section> | ||
</div> | ||
<div class="col-md-2"> </div> | ||
</section> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<div class="row"> | ||
<% @radar.quadrants.each do |quadrant| %> | ||
<div class="col-md-3"> | ||
<h1 class="h3"><%= t("tech_radar.radar.quadrants.#{quadrant.name}.title") %></h1> | ||
</div> | ||
<% end %> | ||
</div> | ||
<% @radar.rings.each do |ring| %> | ||
<article class="panel panel-<%= label_color_for_ring(ring.name) %>"> | ||
<div class="panel-heading"> | ||
<%= t("tech_radar.radar.rings.#{ring.name}.title") %> | ||
</div> | ||
<div class="panel-body"> | ||
<div class="row"> | ||
<% @radar.quadrants.each do |quadrant| %> | ||
<div class="col-md-3"> | ||
<% ring.technologies.select { |technology| technology.quadrant == quadrant.name }.each_with_index do |technology,i| %> | ||
<% if i != 0 %> | ||
· | ||
<% end %> | ||
<%= link_to technology.name, technology_path(technology.name) %> | ||
<% end %> | ||
</div> | ||
<% end %> | ||
</article> | ||
</div> | ||
</div> | ||
<% end %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<section> | ||
<nav> | ||
<ul class="nav nav-pills"> | ||
<% @all_ring_names.each do |ring_name| %> | ||
<li role="presentation" class="<%= ring_name == @ring.name ? 'active' : '' %>"><%= link_to t("tech_radar.radar.rings.#{ring_name}.title"), ring_path(ring_name) %></li> | ||
<% end %> | ||
</ul> | ||
</nav> | ||
<hr> | ||
<h2 class="sr-only"><%= t("tech_radar.radar.rings.#{@ring.name}.title").html_safe %></h2> | ||
<p class="lead"><%= t("tech_radar.radar.rings.#{@ring.name}.description").html_safe %></p> | ||
<ul class="list-unstyled"> | ||
<% @ring.technologies.each do |technology| %> | ||
<li> | ||
<p class="h4"> | ||
<%= link_to technology.name, technology_path(technology.name) %> | ||
· | ||
<small> | ||
<%= technology.purpose %> | ||
<%= link_to quadrant_path(technology.quadrant) do %> | ||
<span class="label label-default"> | ||
<%= t("tech_radar.radar.quadrants.#{technology.quadrant}.title") %> | ||
</span> | ||
<% end %> | ||
</small> | ||
</p> | ||
</li> | ||
<% end %> | ||
</ul> | ||
</section> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,23 @@ | ||
<h1>All</h1> | ||
<ul> | ||
<% @technologies.each do |technology| %> | ||
<li><%= technology.name %></li> | ||
<h1 class="h2">A-Z</h1> | ||
<nav class="pagination"> | ||
<% ('A'..'Z').each do |letter| %> | ||
<li><a href="#<%= letter %>"><%= letter %></a></li> | ||
<% end %> | ||
</ul> | ||
</nav> | ||
<% @technologies.group_by { |technology| technology.name[0].upcase }.each do |letter,technologies| %> | ||
<a name="<%= letter %>"></a> | ||
<h2 class="h3"><%= letter %></h2> | ||
<% technologies.each do |technology| %> | ||
<ul class="list-unstyled"> | ||
<li> | ||
<h1 class="h4"> | ||
<%= link_to technology.name, technology_path(technology.name) %> | ||
<small> | ||
<%= technology.purpose %> | ||
<span class="label label-<%= label_color_for_ring(technology.ring) %>"><%= technology.ring %></span> | ||
</small> | ||
</h1> | ||
</li> | ||
<% end %> | ||
</ul> | ||
<% end %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,43 @@ | ||
<h1><%= @technology.name %></h1> | ||
<section> | ||
<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> | ||
<% if @technology.more_details_url.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 %> | ||
<p> | ||
<%= link_to t("tech_radar.radar.technologies.more_details_url.link"), @technology.more_details_url, class: "btn btn-default" %> | ||
</p> | ||
<% end %> | ||
</section> | ||
<section> | ||
<hr> | ||
<% if @technology.why_summary.present? %> | ||
<p> | ||
<span class="text-muted"> | ||
<%= @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> |
Oops, something went wrong.