Commit 53fb4a79 authored by Tom Gordon's avatar Tom Gordon

changed name of Restful HTTP service from argumentation to eagle-argumentation-tool

parent 2bd76df7
......@@ -52,6 +52,6 @@ func makeDeleteCaseHandler(cdb CouchDBConfig, tc TemplatesConfig) func(http.Resp
}
defer resp.Body.Close()
http.Redirect(w, req, "/argumentation/", http.StatusSeeOther)
http.Redirect(w, req, "/eagle-argumentation-tool/", http.StatusSeeOther)
}
}
......@@ -18,7 +18,7 @@
<div role="main" class="ui-content">
<h2>Properties</h2>
<form action="/argumentation/save-case" enctype="multipart/form-data" target="_self" data-ajax="false" method="post">
<form action="/eagle-argumentation-tool/save-case" enctype="multipart/form-data" target="_self" data-ajax="false" method="post">
<input type="hidden" name="domainId" value="{{.DomainId}}">
<input type="hidden" name="caseId" value="{{.Id}}">
<input type="hidden" name="revision" value="{{.Revision}}">
......@@ -63,7 +63,7 @@
{{end}}
<fieldset data-role="controlgroup" data-type="horizontal">
<input type="submit" value="Save"/>
<a href="/argumentation/view-case/{{.DomainId}}/{{.Id}}" target="_self" class="ui-btn">Cancel</a>
<a href="/eagle-argumentation-tool/view-case/{{.DomainId}}/{{.Id}}" target="_self" class="ui-btn">Cancel</a>
</fieldset>
</form>
......@@ -73,9 +73,9 @@
<div data-role="footer" data-id="main-footer" data-position="fixed">
<div data-role="navbar">
<ul>
<li><a href="/argumentation/" class="ui-btn-active" data-icon="home">Home</a></li>
<li><a href="/argumentation/eval-help" data-icon="info">Help</a></li>
<li><a href="/argumentation/imprint" data-icon="info">Imprint</a></li>
<li><a href="/eagle-argumentation-tool/" class="ui-btn-active" data-icon="home">Home</a></li>
<li><a href="/eagle-argumentation-tool/eval-help" data-icon="info">Help</a></li>
<li><a href="/eagle-argumentation-tool/imprint" data-icon="info">Imprint</a></li>
</ul>
</div>
</div>
......
......@@ -19,9 +19,9 @@
<h2>Actions</h2>
<fieldset data-role="controlgroup" data-type="horizontal">
<a href="/argumentation/view-case/{{.DomainId}}/{{.CaseId}}" class="ui-btn">View Case</a>
<a href="/eagle-argumentation-tool/view-case/{{.DomainId}}/{{.CaseId}}" class="ui-btn">View Case</a>
<a target="_self" href="/argumentation/map-case/{{.CaseId}}" class="ui-btn">Argument Map</a>
<a href="/argumentation/" class="ui-btn" data-icon="home">Home</a>
<a href="/eagle-argumentation-tool/" class="ui-btn" data-icon="home">Home</a>
</fieldset>
</div>
......@@ -29,9 +29,9 @@
<div data-role="footer" data-id="main-footer" data-position="fixed">
<div data-role="navbar">
<ul>
<li><a href="/argumentation/" class="ui-btn-active" data-icon="home">Home</a></li>
<li><a href="/argumentation/eval-help" data-icon="info">Help</a></li>
<li><a href="/argumentation/imprint" data-icon="info">Imprint</a></li>
<li><a href="/eagle-argumentation-tool/" class="ui-btn-active" data-icon="home">Home</a></li>
<li><a href="/eagle-argumentation-tool/eval-help" data-icon="info">Help</a></li>
<li><a href="/eagle-argumentation-tool/imprint" data-icon="info">Imprint</a></li>
</ul>
</div>
</div>
......
......@@ -20,7 +20,7 @@
<div role="main" class="ui-content">
<h2>Properties</h2>
<form action="/argumentation/search" enctype="multipart/form-data" target="_self" data-ajax="false" method="post">
<form action="/eagle-argumentation-tool/search" enctype="multipart/form-data" target="_self" data-ajax="false" method="post">
<input type="hidden" name="domainId" value="{{.DomainId}}">
<label for="title">Title:</label>
<input type="text" name="title" id="title" value="{{.Title}}">
......@@ -63,9 +63,9 @@
{{end}}
<fieldset data-role="controlgroup" data-type="horizontal">
<input type="submit" value="Find Similar Cases"/>
<a href="/argumentation/map-case/{{.Id}}" target="_self" class="ui-btn">Argument Map</a>
<a href="/argumentation/edit-case/{{.DomainId}}/{{.Id}}" target="_self" class="ui-btn">Edit</a>
<a href="/argumentation/delete-case/{{.Id}}" target="_self" class="ui-btn">Delete</a>
<a href="/eagle-argumentation-tool/map-case/{{.Id}}" target="_self" class="ui-btn">Argument Map</a>
<a href="/eagle-argumentation-tool/edit-case/{{.DomainId}}/{{.Id}}" target="_self" class="ui-btn">Edit</a>
<a href="/eagle-argumentation-tool/delete-case/{{.Id}}" target="_self" class="ui-btn">Delete</a>
</fieldset>
</form>
......@@ -75,9 +75,9 @@
<div data-role="footer" data-id="main-footer" data-position="fixed">
<div data-role="navbar">
<ul>
<li><a href="/argumentation/" class="ui-btn-active" data-icon="home">Home</a></li>
<li><a href="/argumentation/eval-help" data-icon="info">Help</a></li>
<li><a href="/argumentation/imprint" data-icon="info">Imprint</a></li>
<li><a href="/eagle-argumentation-tool/" class="ui-btn-active" data-icon="home">Home</a></li>
<li><a href="/eagle-argumentation-tool/eval-help" data-icon="info">Help</a></li>
<li><a href="/eagle-argumentation-tool/imprint" data-icon="info">Imprint</a></li>
</ul>
</div>
</div>
......
......@@ -34,11 +34,11 @@
<div role="main" class="ui-content">
<ul data-role="listview" data-inset="true">
<li><a href="/argumentation/new-case-form">Enter a new case</a></li>
<li><a href="/argumentation/search-cases-form">Search for cases</a></li>
<li><a href="/argumentation/download-domain-model/{{.Id}}" target="_self" class="ui-btn">Download this domain model</a></li>
<li><a href="/argumentation/update-domain-model/{{.Id}}" target="_self" class="ui-btn">Upload a new version of this domain model</a></li>
<li><a href="/argumentation/delete-domain-model/{{.Id}}" target="_self" class="ui-btn">Delete this domain model</a></li>
<li><a href="/eagle-argumentation-tool/new-case-form">Enter a new case</a></li>
<li><a href="/eagle-argumentation-tool/search-cases-form">Search for cases</a></li>
<li><a href="/eagle-argumentation-tool/download-domain-model/{{.Id}}" target="_self" class="ui-btn">Download this domain model</a></li>
<li><a href="/eagle-argumentation-tool/update-domain-model/{{.Id}}" target="_self" class="ui-btn">Upload a new version of this domain model</a></li>
<li><a href="/eagle-argumentation-tool/delete-domain-model/{{.Id}}" target="_self" class="ui-btn">Delete this domain model</a></li>
</ul>
</div>
......@@ -46,9 +46,9 @@
<div data-role="footer" data-id="main-footer" data-position="fixed">
<div data-role="navbar">
<ul>
<li><a href="/argumentation/" class="ui-btn-active" data-icon="home">Home</a></li>
<li><a href="/argumentation/eval-help" data-icon="info">Help</a></li>
<li><a href="/argumentation/imprint" data-icon="info">Imprint</a></li>
<li><a href="/eagle-argumentation-tool/" class="ui-btn-active" data-icon="home">Home</a></li>
<li><a href="/eagle-argumentation-tool/eval-help" data-icon="info">Help</a></li>
<li><a href="/eagle-argumentation-tool/imprint" data-icon="info">Imprint</a></li>
</ul>
</div>
</div>
......
......@@ -34,8 +34,8 @@
{{.Description}}
</textarea>
<fieldset data-role="controlgroup" data-type="horizontal">
<a href="/argumentation/search-form/{{.Id}}" target="_self" class="ui-btn">Find Cases</a>
<a href="/argumentation/new-case-form/{{.Id}}" target="_self" class="ui-btn">New Case</a>
<a href="/eagle-argumentation-tool/search-form/{{.Id}}" target="_self" class="ui-btn">Find Cases</a>
<a href="/eagle-argumentation-tool/new-case-form/{{.Id}}" target="_self" class="ui-btn">New Case</a>
<!-- To do: Obtain the EAGLE URLs for the delete and update commands -->
<a href="" target="_self" class="ui-btn">Delete</a>
<a href="" target="_self" class="ui-btn">Update</a>
......@@ -47,9 +47,9 @@
<div data-role="footer" data-id="main-footer" data-position="fixed">
<div data-role="navbar">
<ul>
<li><a href="/argumentation/" class="ui-btn-active" data-icon="home">Home</a></li>
<li><a href="/argumentation/eval-help" data-icon="info">Help</a></li>
<li><a href="/argumentation/imprint" data-icon="info">Imprint</a></li>
<li><a href="/eagle-argumentation-tool/" class="ui-btn-active" data-icon="home">Home</a></li>
<li><a href="/eagle-argumentation-tool/eval-help" data-icon="info">Help</a></li>
<li><a href="/eagle-argumentation-tool/imprint" data-icon="info">Imprint</a></li>
</ul>
</div>
</div>
......
......@@ -23,9 +23,9 @@
<div data-role="footer" data-id="main-footer" data-position="fixed">
<div data-role="navbar">
<ul>
<li><a href="/argumentation/" class="ui-btn-active" data-icon="home">Home</a></li>
<li><a href="/argumentation/eval-help" data-icon="info">Help</a></li>
<li><a href="/argumentation/imprint" data-icon="info">Imprint</a></li>
<li><a href="/eagle-argumentation-tool/" class="ui-btn-active" data-icon="home">Home</a></li>
<li><a href="/eagle-argumentation-tool/eval-help" data-icon="info">Help</a></li>
<li><a href="/eagle-argumentation-tool/imprint" data-icon="info">Imprint</a></li>
</ul>
</div>
</div>
......
......@@ -23,9 +23,9 @@
<div data-role="footer" data-id="main-footer" data-position="fixed">
<div data-role="navbar">
<ul>
<li><a href="/argumentation/" class="ui-btn-active" data-icon="home">Home</a></li>
<li><a href="/argumentation/eval-help" data-icon="info">Help</a></li>
<li><a href="/argumentation/imprint" data-icon="info">Imprint</a></li>
<li><a href="/eagle-argumentation-tool/" class="ui-btn-active" data-icon="home">Home</a></li>
<li><a href="/eagle-argumentation-tool/eval-help" data-icon="info">Help</a></li>
<li><a href="/eagle-argumentation-tool/imprint" data-icon="info">Imprint</a></li>
</ul>
</div>
</div>
......
......@@ -28,7 +28,7 @@
<tbody>
{{range $i, $model := .}}
<tr>
<th><a href="/argumentation/view-domain/{{$model.Id}}" data-rel="external">{{$model.Id}}</a></th>
<th><a href="/eagle-argumentation-tool/view-domain/{{$model.Id}}" data-rel="external">{{$model.Id}}</a></th>
<td>{{$model.Issue}}</td>
<td><ul>{{range $j, $option := $model.Options}}
<li>{{$option}}</li>
......@@ -46,9 +46,9 @@
<div data-role="footer" data-id="main-footer" data-position="fixed">
<div data-role="navbar">
<ul>
<li><a href="/argumentation/" class="ui-btn-active" data-icon="home">Home</a></li>
<li><a href="/argumentation/eval-help" data-icon="info">Help</a></li>
<li><a href="/argumentation/imprint" data-icon="info">Imprint</a></li>
<li><a href="/eagle-argumentation-tool/" class="ui-btn-active" data-icon="home">Home</a></li>
<li><a href="/eagle-argumentation-tool/eval-help" data-icon="info">Help</a></li>
<li><a href="/eagle-argumentation-tool/imprint" data-icon="info">Imprint</a></li>
</ul>
</div>
</div>
......
......@@ -19,9 +19,9 @@
<h2>Actions</h2>
<fieldset data-role="controlgroup" data-type="horizontal">
<a href="/argumentation/view-case/{{.DomainId}}/{{.CaseId}}" class="ui-btn">View Case</a>
<a target="_self" href="/argumentation/map-case/{{.CaseId}}" class="ui-btn">Argument Map</a>
<a href="/argumentation/" class="ui-btn" data-icon="home">Home</a>
<a href="/eagle-argumentation-tool/view-case/{{.DomainId}}/{{.CaseId}}" class="ui-btn">View Case</a>
<a target="_self" href="/eagle-argumentation-tool/map-case/{{.CaseId}}" class="ui-btn">Argument Map</a>
<a href="/eagle-argumentation-tool/" class="ui-btn" data-icon="home">Home</a>
</fieldset>
</div>
......@@ -29,9 +29,9 @@
<div data-role="footer" data-id="main-footer" data-position="fixed">
<div data-role="navbar">
<ul>
<li><a href="/argumentation/" class="ui-btn-active" data-icon="home">Home</a></li>
<li><a href="/argumentation/eval-help" data-icon="info">Help</a></li>
<li><a href="/argumentation/imprint" data-icon="info">Imprint</a></li>
<li><a href="/eagle-argumentation-tool/" class="ui-btn-active" data-icon="home">Home</a></li>
<li><a href="/eagle-argumentation-tool/eval-help" data-icon="info">Help</a></li>
<li><a href="/eagle-argumentation-tool/imprint" data-icon="info">Imprint</a></li>
</ul>
</div>
</div>
......
......@@ -18,7 +18,7 @@
<div role="main" class="ui-content">
<form action="/argumentation/search" enctype="multipart/form-data" target="_self" data-ajax="false" method="post">
<form action="/eagle-argumentation-tool/search" enctype="multipart/form-data" target="_self" data-ajax="false" method="post">
<input type="hidden" name="domainId" value="{{.Id}}">
<h2>Dimensions</h2>
......@@ -44,9 +44,9 @@
<div data-role="footer" data-id="main-footer" data-position="fixed">
<div data-role="navbar">
<ul>
<li><a href="/argumentation/" class="ui-btn-active" data-icon="home">Home</a></li>
<li><a href="/argumentation/eval-help" data-icon="info">Help</a></li>
<li><a href="/argumentation/imprint" data-icon="info">Imprint</a></li>
<li><a href="/eagle-argumentation-tool/" class="ui-btn-active" data-icon="home">Home</a></li>
<li><a href="/eagle-argumentation-tool/eval-help" data-icon="info">Help</a></li>
<li><a href="/eagle-argumentation-tool/imprint" data-icon="info">Imprint</a></li>
</ul>
</div>
</div>
......
......@@ -38,7 +38,7 @@
{{range $rank, $case := $cases}}
<tr>
<th>{{$rank}}</th>
<td><a href="/argumentation/view-case/{{$domainId}}/{{$case.Id}}" data-rel="external">{{$case.Title}}</a></td>
<td><a href="/eagle-argumentation-tool/view-case/{{$domainId}}/{{$case.Id}}" data-rel="external">{{$case.Title}}</a></td>
<td>{{$case.Year}}</td>
<td>{{printf "%.2f" $case.Similarity}}</td>
</tr>
......@@ -54,9 +54,9 @@
<div data-role="footer" data-id="main-footer" data-position="fixed">
<div data-role="navbar">
<ul>
<li><a href="/argumentation/" class="ui-btn-active" data-icon="home">Home</a></li>
<li><a href="/argumentation/eval-help" data-icon="info">Help</a></li>
<li><a href="/argumentation/imprint" data-icon="info">Imprint</a></li>
<li><a href="/eagle-argumentation-tool/" class="ui-btn-active" data-icon="home">Home</a></li>
<li><a href="/eagle-argumentation-tool/eval-help" data-icon="info">Help</a></li>
<li><a href="/eagle-argumentation-tool/imprint" data-icon="info">Imprint</a></li>
</ul>
</div>
</div>
......
......@@ -44,7 +44,7 @@ func ArgumentationToolServer(httpPort string, cdb CouchDBConfig, templatesDir st
errorTemplate := template.Must(template.ParseFiles(filepath.Join(templatesDir, "error.html")))
tc := TemplatesConfig{templatesDir, errorTemplate}
root := "/argumentation"
root := "/eagle-argumentation-tool"
// Domain Model Commands
http.HandleFunc(root+"/", makeListDomainsHandler(cdb, tc))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment