Skip to content

Commit

Permalink
remove Catalyst buttons #76 add re-run button #77
Browse files Browse the repository at this point in the history
  • Loading branch information
bnvk committed Jun 28, 2019
1 parent 7933241 commit 6b5cc22
Showing 1 changed file with 8 additions and 14 deletions.
22 changes: 8 additions & 14 deletions app/views/catalyst/_job.html.erb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<div class="catalyst-job">
<h3><%= recipe["title"] %></h3>
<div class="row">
<div class="col-md-6">
<div class="col-md-4">
<% if recipe["docs_to_process"]["run_over"] == "date_range" %>
Date range found and mined <% recipe["total_mined_count"] %> from <%= recipe["total_doc_count"] %> total documents mined
<% elsif recipe["docs_to_process"]["run_over"] == "matching_query" %>
Expand All @@ -10,24 +10,18 @@
All <%= recipe["total_doc_count"] %> documents mined
<% end %>
</div>
<div class="col-md-6">
<div class="col-md-5">
<%= recipe["annotators"].length %> text miners used:
<% recipe["annotators"].each_with_index do |annotator, index| %>
<%= annotator["human_readable_label"] %>,
<% end %>
</div>
</div>
<ul class="list-inline add-top">
<li>
<a href="<%= ENV['RAILS_RELATIVE_URL_ROOT'] %>catalyst/builder?recipe_id=<%= recipe["id"] %>" class="btn btn-sm btn-default">
New Job From Recipe
</a>
</li>
<li>
<a href="<%= ENV['RAILS_RELATIVE_URL_ROOT'] %>api/delete_recipe?recipe_id=<%= recipe["id"] %>" class="btn btn-sm btn-default">
Delete Recipe
<div class="col-md-3">
<a href="<%= ENV['RAILS_RELATIVE_URL_ROOT'] %>api/rerun_recipe?recipe_id=<%= recipe["id"] %>" class="btn btn-sm btn-default">
<i class="icon-refresh"></i>
Run Job Again
</a>
</li>
</ul>
</div>
</div>
<hr>
</div>

0 comments on commit 6b5cc22

Please sign in to comment.