Joey Hess
77cd327170
fix display of icon in block alert heading
2012-08-06 17:15:27 -04:00
Joey Hess
94e92a1b58
make alerts change tense when they finish
2012-08-06 15:00:46 -04:00
Joey Hess
aab3a01a71
merge two repository screens into one
2012-08-05 19:55:06 -04:00
Joey Hess
46feae36b6
remove links from unimplemented options
2012-08-05 19:21:28 -04:00
Joey Hess
a3f76fe696
wording
...
De-emphasize "clone", because it's not that simple. The removable drive may
already have an annex with content; if so it'll get synced in.
2012-08-05 15:57:30 -04:00
Joey Hess
ccedd06023
make button primary
2012-08-05 14:49:38 -04:00
Joey Hess
e125ce74b8
work toward adding new repos on removable drives
...
This actually does add a new repo, but it doesn't yet set up
remotes, or sync to it.
2012-08-04 18:17:16 -04:00
Joey Hess
e0c3958d9a
improved config
2012-08-03 20:40:34 -04:00
Joey Hess
1bd2be549f
add extra sidebar widget
...
html is slightly broken
2012-08-03 20:10:32 -04:00
Joey Hess
bbea7757ab
update
2012-08-03 17:22:35 -04:00
Joey Hess
b1a5a4f985
moving toward configuring new repos in the webapp
2012-08-03 14:36:16 -04:00
Joey Hess
02556b5acd
remove duplicate nojs refresher
2012-08-03 10:06:34 -04:00
Joey Hess
1f89712e6b
add a navbar button that opens the repo in the desktop's native file browser
...
This should work on linux (xdg-open) and OSX (open). If the program
is not in $PATH, it falls back to opening a browser window/tab with file:///
The only tricky bit is the javascript code, that handles clicking on the
link. This is to avoid unnecessary page refreshes. Until I added the
return false at the end, the <a>'s normal click event also fired, so two
file browsers opened. I have not checked portability extensively.
2012-08-03 10:02:56 -04:00
Joey Hess
7cc5fdbd7b
layout
2012-08-02 09:08:58 -04:00
Joey Hess
ffeb060002
don't use hamlet for htmlshim
...
This allows me to not build-depend on blaze-markup, which was causing
me some trouble when tring to build with cabal on debian. Seems debian
ships Text.Blaze.Renderer.String in two packages.
2012-08-01 21:28:37 -04:00
Joey Hess
bab80bf24a
full input validation for repository path
...
Expands ~ , checks for every crazy input problem I can think of
2012-07-31 20:56:10 -04:00
Joey Hess
c950e8fba0
move out to template
2012-07-31 18:33:19 -04:00
Joey Hess
4b5ffe8f9b
implemented the addrepository form
...
shiny!
2012-07-31 17:57:08 -04:00
Joey Hess
c70496dc7f
improve first run screen
2012-07-31 16:13:09 -04:00
Joey Hess
0d3686972d
form
2012-07-31 12:33:52 -04:00
Joey Hess
04794eafc0
webapp now starts up when run not in a git repo
2012-07-31 12:17:31 -04:00
Joey Hess
e9d9d9d5ea
add icons
2012-07-31 03:10:16 -04:00
Joey Hess
02b345249b
stub
2012-07-31 02:35:07 -04:00
Joey Hess
c77411053b
remove clickability on brand
2012-07-31 02:33:51 -04:00
Joey Hess
2c8bbdf307
made navbar work
...
also added an About page and a stub Config page.
2012-07-31 02:30:26 -04:00
Joey Hess
5fed026bcd
reorg templates
2012-07-31 01:24:49 -04:00
Joey Hess
6e40aed948
fix noscript mode to not allocate notification ids on each refresh
...
Now the javascript does an ajax call at the start to request the url
to use to poll, and the notification id is generated then, once we know
javascript is working.
2012-07-30 22:24:19 -04:00
Joey Hess
2821f9f976
cleanup
2012-07-30 20:35:30 -04:00
Joey Hess
d3413ee5a9
further refactoring my js
2012-07-30 20:33:23 -04:00
Joey Hess
9648acc7a4
got this JS working
2012-07-30 20:22:10 -04:00
Joey Hess
502bc5d5f8
rewrote longpolling, trying to avoid duplication
...
does not work though. stupid JS
2012-07-30 18:01:41 -04:00
Joey Hess
d1358cc96f
fix html
2012-07-30 16:54:38 -04:00
Joey Hess
453b185c85
bring back retry on connection fail
2012-07-30 16:24:55 -04:00
Joey Hess
afacc413e1
bring back connection failure counter
...
Otherwise, navigating between pages can, I guess, cause connection failures
that take down the webapp.
2012-07-30 16:14:27 -04:00
Joey Hess
2400c6faa3
insert modal dialog html from javascript
...
This avoids it being visible all the time in noscript
2012-07-30 16:11:16 -04:00
Joey Hess
703f24b83e
remove href
...
Avoids a reload of the page when closing an alert.
2012-07-30 15:39:24 -04:00
Joey Hess
f4484949ef
consistent wording
2012-07-30 14:53:36 -04:00
Joey Hess
78b3dada5b
better connection close handling
...
Depending on how the webapp was started up and whether the user clicked on
any links in it, window.close() may be disallowed by browser security
policy. Also if that fails, display a modal dialog that nicely blackens out
the webapp.
TODO: avoid Escape closing it. Bootstrap's docs are unclear about how to do
that.
2012-07-30 14:50:32 -04:00
Joey Hess
a994130843
implement server-side alert closing
...
Rather than using bootstrap's client-side closing.
Now closed alerts stay closed.
2012-07-30 14:08:22 -04:00
Joey Hess
1f671ee40c
spruce up display of the repo list
2012-07-30 13:31:19 -04:00
Joey Hess
895b068e35
tweak intro
2012-07-29 22:11:01 -04:00
Joey Hess
675ad9fe22
tweak
2012-07-29 21:58:01 -04:00
Joey Hess
326617ad2f
add intro
2012-07-29 21:54:23 -04:00
Joey Hess
d62b157194
better ordering of alerts
2012-07-29 19:05:51 -04:00
Joey Hess
2dc5697a0a
add
2012-07-29 12:39:10 -04:00
Joey Hess
c2f3e66d8c
show alerts in the sidebar
...
This has a bug -- it seems long polling can only wait on one page at a
time. Need to re-unify the notifiers.
2012-07-29 11:31:06 -04:00
Joey Hess
62dac85880
update the sidebar by long polling
...
Needs to use a different NotificationBroadcaster, and not replace the
whole sidebar div, but instead add in new content. However, it's 3:30 am.
2012-07-29 03:23:17 -04:00
Joey Hess
e96107caf3
move noscript UI to bottom navbar
2012-07-29 01:10:13 -04:00
Joey Hess
38ade1af70
better noscript UI
2012-07-29 00:55:22 -04:00
Joey Hess
376f8443c1
add a separate page for noscript browsers
...
This may be customised differently than the main page later on, but
for now the important thing is that this constantly refreshed page does not
allocate a new NotificationHandle each time it's loaded.
2012-07-29 00:08:14 -04:00