mirror of
https://github.com/Fishwaldo/huginn.git
synced 2025-03-17 12:21:31 +00:00
Merge pull request #1376 from thiagotalma/source-colummn
Events - Display the column Sources only when show all
This commit is contained in:
commit
e92258bf05
1 changed files with 6 additions and 2 deletions
|
@ -10,7 +10,9 @@
|
|||
<div class='table-responsive'>
|
||||
<table class='table table-striped events'>
|
||||
<tr>
|
||||
<th>Source</th>
|
||||
<% unless @agent %>
|
||||
<th>Source</th>
|
||||
<% end %>
|
||||
<th>Created</th>
|
||||
<th>Payload</th>
|
||||
<th></th>
|
||||
|
@ -19,7 +21,9 @@
|
|||
<% @events.each do |event| %>
|
||||
<% next unless event.agent %>
|
||||
<%= content_tag :tr, class: (highlighted?(event.id) ? 'hl' : nil) do %>
|
||||
<td><%= link_to event.agent.name, agent_path(event.agent, return: request.fullpath) %></td>
|
||||
<% unless @agent %>
|
||||
<td><%= link_to event.agent.name, agent_path(event.agent, return: request.fullpath) %></td>
|
||||
<% end %>
|
||||
<td title='<%= event.created_at %>'><%= time_ago_in_words event.created_at %> ago</td>
|
||||
<td class='payload'><%= truncate event.payload.to_json, :length => 90, :omission => "" %></td>
|
||||
<td>
|
||||
|
|
Loading…
Add table
Reference in a new issue