Skip to content

Commit a0c5077

Browse files
author
Vidas P
committed
Show styled workflow icon with workflow title
1 parent f2a9451 commit a0c5077

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

app/views/workflows/show.html.erb

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,14 @@
88
<div class='row'>
99
<div class='col-md-12'>
1010
<div class="page-header">
11-
<h1><%= workflow_label(@workflow, "#{@workflow.name} Workflow") %></h1>
11+
<h1>
12+
<% if @workflow.icon.blank? %>
13+
<%= workflow_label(@workflow, icon('fa', 'cog'))%>
14+
<% else %>
15+
<%= workflow_label(@workflow, icon('fa', @workflow.icon))%>
16+
<% end %>
17+
<%= "#{@workflow.name} Workflow" %>
18+
</h1>
1219
<% if @workflow.description.present? %>
1320
<%= markdown(@workflow.description) %>
1421
<% end %>

0 commit comments

Comments
 (0)