Skip to content

Commit

Permalink
Updated info page. Added JSON link to all webpages.
Browse files Browse the repository at this point in the history
  • Loading branch information
jcchuang committed Jan 10, 2014
1 parent d45628f commit 938e5cc
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 2 deletions.
3 changes: 2 additions & 1 deletion landing_src/views/default/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<div class="info">

<div class="heading">Server for Topic Model Visualization</div>
<div class="content">This server reads the output of <a href="http://scholar.harvard.edu/bstewart/-models-open-ended-survey-responses-applications-experiments/">Structural topic models</a> and distributes the content over the internet via a RESTful interface. For more information, please visit <a href="http://github.com/uwdata/termite-stm">Termite Web Server for STM</a> repository.</div>
<div class="content">This server reads the output of <a href="http://scholar.harvard.edu/bstewart/-models-open-ended-survey-responses-applications-experiments/">structural topic models</a> and distributes the content over the internet via a RESTful interface. For more information, please visit the <a href="http://github.com/uwdata/termite-stm">Termite Web Server for STM</a> repository.</div>

<div class="heading">API Format</div>
<div class="content">All API calls are in following format.</div>
Expand All @@ -36,5 +36,6 @@

<div class="body">
<div class="heading">Server Response</div>
<div class="extras">[<a href="http://{{=request.env['HTTP_HOST']}}{{=request.env['PATH_INFO']}}?format=json">JSON format</a>]</div>
<div class="content">{{=content}}</div>
</div>
2 changes: 1 addition & 1 deletion server_src/controllers/lda.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ def TopicIndex():
}
dataStr = json.dumps( data, encoding = 'utf-8', indent = 2, sort_keys = True )
if IsJsonFormat():
return data
return dataStr
else:
response.view = 'lda/api.html'
data[ 'content' ] = dataStr
Expand Down
3 changes: 3 additions & 0 deletions server_src/static/css/termite.css
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ div.body {
div.body div.heading {
font-size: 12pt;
}
div.body div.extras {
font-size: 8pt;
}
div.body div.content {
display: inline-block;
padding: 15px;
Expand Down
1 change: 1 addition & 0 deletions server_src/views/default/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,6 @@

<div class="body">
<div class="heading">Server Response</div>
<div class="extras">[<a href="http://{{=request.env['HTTP_HOST']}}{{=request.env['PATH_INFO']}}?format=json">JSON format</a>]</div>
<div class="content">{{=content}}</div>
</div>
1 change: 1 addition & 0 deletions server_src/views/lda/api.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,6 @@

<div class="body">
<div class="heading">Server Response</div>
<div class="extras">[<a href="http://{{=request.env['HTTP_HOST']}}{{=request.env['PATH_INFO']}}?format=json">JSON format</a>]</div>
<div class="content">{{=content}}</div>
</div>
1 change: 1 addition & 0 deletions server_src/views/lda/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,6 @@

<div class="body">
<div class="heading">Server Response</div>
<div class="extras">[<a href="http://{{=request.env['HTTP_HOST']}}{{=request.env['PATH_INFO']}}?format=json">JSON format</a>]</div>
<div class="content">{{=content}}</div>
</div>

0 comments on commit 938e5cc

Please sign in to comment.