venantius / darg

Kill the status meeting -- an abandoned IDoneThis competitor.
1 stars 0 forks source link

Highlight what Timeline you're looking at #135

Closed venantius closed 9 years ago

venantius commented 10 years ago

screen shot 2014-10-06 at 11 42 44 am

I think the menu on the left should highlight what page you're currently looking at, e.g.: screen shot 2014-10-06 at 11 48 29 am

I suspect the correct way to do this is to have this properly routed in Angularjs and to have Angular keep track of the page state (e.g. your location would be updated to darg.io/timeline/teams/5 or darg.io/teams/5 since by default ). The only catch I can think of with this way of doing things is that Compojure won't know how to route you if you try to go directly to that URL. Maybe we'd make it a resource like any other, e.g.:

  (GET "/teams/:id" request-map (resp/resource-response "index.html" {:root "public"}))

If that works, that's probably the right way to do it.

Then, of course, there's the separate aspect of figuring out how to get Angular to update the styling around the button, but I'm assuming for some reason that'll be fairly straightforward.

venantius commented 9 years ago

This is no longer really relevant.