Skip to content

Commit

Permalink
moved Catalyst builder to Advanced, added nav links, routes, and such #…
Browse files Browse the repository at this point in the history
  • Loading branch information
bnvk committed Jun 28, 2019
1 parent 6b5cc22 commit 4d057c4
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 13 deletions.
8 changes: 6 additions & 2 deletions app/controllers/catalyst_controller.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
class CatalystController < ApplicationController
include CatalystApi

def builder
render 'catalyst/builder'
def basic
render 'catalyst/basic'
end

def advanced
render 'catalyst/advanced'
end

def index
Expand Down
12 changes: 9 additions & 3 deletions app/views/catalyst/_tabs.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,16 @@
Mining Jobs
</a>
</li>
<li <% if params["action"] == "builder" %> class="active"<% end %>>
<a href="<%= ENV['RAILS_RELATIVE_URL_ROOT'] %>catalyst/builder/">
<li <% if params["action"] == "basic" %> class="active"<% end %>>
<a href="<%= ENV['RAILS_RELATIVE_URL_ROOT'] %>catalyst/basic/">
<i class="icon-plus"></i>
Create New Job
New Basic Job
</a>
</li>
<li <% if params["action"] == "advanced" %> class="active"<% end %>>
<a href="<%= ENV['RAILS_RELATIVE_URL_ROOT'] %>catalyst/advanced/">
<i class="icon-plus"></i>
New Avanced Job
</a>
</li>
</ul>
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,20 @@
<div class="tab-content">

<div class="alert alert-info alert-dismissible hide" id="alert-catalyst-builder" role="alert">
<h4 class="pull-left">Getting Started</h4>
<h4 class="pull-left">Creating Advanced Jobs</h4>
<button type="button" class="close pull-right close-alert" data-dismiss="alert" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
<div class="clearfix"></div>
<p>In order for Catalyst to do its magic analysing your Looking Glass data,
you need to give it some guidance and help with <em>how</em> and <em>what</em>
aspects of your data you want Catalyst to analyze.
</p>
<p>This form is refine and customize a Catalyst job to get more accuracy and precision (helpful with larger datasets). If you are new to Catalyst we suggest using the <strong>Basic Job</strong> to start with.</p>
</div>

<section id="step-1">
<h3>1. Narrow Your Search</h3>
<h3>Narrow Your Job</h3>
<p>You can run Catalyst text miners on all your documents or only a specific subset of narrowed down documents.</p>
<div class="row">
<div class="col-md-4 form-group">
<label for="">Search Name</label>
<label>Mining Job Name</label>
<input type="text" name="filter_name" class="form-control" value="" placeholder="Interesting People">
</div>
<div class="col-md-4 form-group">
Expand Down
4 changes: 3 additions & 1 deletion config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
delete 'delete_documents', to: 'docs#delete_documents'

get 'catalyst', to: 'catalyst#index'
get 'catalyst/builder', to: 'catalyst#builder'
get 'catalyst/basic', to: 'catalyst#basic'
get 'catalyst/advanced', to: 'catalyst#advanced'
get 'entities', to: 'entities#index'
get 'entities_create/*entity', to: 'entities#create'
post 'entities/save', to: 'entities#save'
Expand All @@ -23,6 +24,7 @@
post 'api/recipe_search', to: 'api#recipe_search'
post 'api/create_job', to: 'api#create_job'
get 'api/facets', to: 'api#facets'
get 'api/delete_recipe', to: 'api#delete_recipe'

root to: 'docs#index'
resources :docs
Expand Down

0 comments on commit 4d057c4

Please sign in to comment.