Created
June 2, 2023 17:23
-
-
Save andhart/8bd5486b2f3dfcfd85c6134279deb354 to your computer and use it in GitHub Desktop.
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
<% @name = "Integration logs for #{@integrator.integration[:name]}" %> | |
<% @tab = :admin %> | |
<div class='container container--medium'> | |
<div class='toolbar'> | |
<%= render "breadcrumbs", include_self: true %> | |
</div> | |
<div class='name'> | |
<h1><%= @name %></h1> | |
</div> | |
<div id="table-scroll" class="table-scroll"> | |
<table id="main-table" class="main-table"> | |
<thead> | |
<tr> | |
<th scope="col" style='width: 45px'>Type</th> | |
<th scope="col">Message</th> | |
<th scope="col">Time</th> | |
</tr> | |
</thead> | |
<tbody> | |
<% @logs.each do |log| %> | |
<tr> | |
<td style='width: 45px;color: <%= "orange" if log.message_type&.to_sym == :warning %> <%= "green" if log.message_type&.to_sym == :success %> <%= "red" if log.message_type&.to_sym == :error %>'><b><%= log.message_type&.upcase %></b></td> | |
<td><%= log.message %></td> | |
<td><%= format_date log.created_at, true %></td> | |
</tr> | |
<% end %> | |
</tbody> | |
</table> | |
</div> | |
<div class='table__pagination'> | |
<%= paginate @logs %> | |
</div> | |
</div><!--/.container--> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment