Permalink
Browse files

some small html fix

  • Loading branch information...
1 parent 5829a8f commit 8e9a1526553580cdebb138d069feb0cb4dea4753 @myf myf committed Jun 5, 2012
Showing with 11 additions and 20 deletions.
  1. +9 −7 bamboo-meteor-client.html
  2. +2 −13 client/client.coffee
@@ -4,8 +4,8 @@
</head>
<body>
- <div class="container-fluid" style="margin-top:50px">
- <div class="navbar navbar-fixed-top">
+ <div class="container-fluid">
+ <div class="navbar navbar-fixed-bottom">
{{> navbar}}
</div>
</div>
@@ -25,10 +25,12 @@
summary:
<button class="btn" id="charting-button" > chart </button>
=======================
- group by:
- {{#each groups}}
- {{> group}}
- {{/each}}
+ <div id="group_by">
+ group by:
+ {{#each groups}}
+ {{> group}}
+ {{/each}}
+ </div>
</ul>
</template>
<template name="group">
@@ -42,7 +44,7 @@
<div class="container">
<a class="brand" href="#">Summarizr client for bamboo</a>
<div class="pull-right">
- <input id="datasource-url" type="text" name="url" size="200" value="{{default}}"/>
+ <input id="datasource-url" type="text" name="url" SIZE="200" value="{{default}}"/>
<button class="btn" id="datasource-change-button" > Change </button>
</div>
</div>
View
@@ -20,7 +20,7 @@ if root.Meteor.is_client
console.log "already cached server side.."
root.Template.control.events = "click button": ->
- Meteor.call("better_charting")
+ Meteor.call("charting")
root.Template.control.groups = ->
url = Session.get('currentDatasetURL')
@@ -83,23 +83,12 @@ Meteor.methods(
"legend-position":"bottom"
).render(div)
- charting: ->
- #item_list = Datasets.findOne({url:url}).summary["(ALL)"]
- Meteor.call('clear_graphs')
- url = Session.get("currentDatasetURL")
- group = Session.get("groupKey") ? "" #some fallback
- item_list = Summaries.find(datasetSourceURL:url, groupKey:"").fetch()
- for item in item_list
- item_name = item["name"]
- div = "#"+item["name"]+".gg"
- Meteor.call("make_single_chart",[div,item])
-
clear_graphs: ->
graph_divs = $('.gg_graph')
for item in graph_divs
$(item).empty()
- better_charting: ->
+ charting: ->
Meteor.call('clear_graphs')
url = Session.get("currentDatasetURL")
group = Session.get("currentGroup") ? "" #some fallback

0 comments on commit 8e9a152

Please sign in to comment.