diff --git src/allmydata/web/root.py src/allmydata/web/root.py
index 2cd315d..720b460 100644
|
|
class Root(rend.Page): |
212 | 212 | return None |
213 | 213 | furl, connected = uploader.get_helper_info() |
214 | 214 | return furl |
| 215 | |
| 216 | |
| 217 | def data_connected_to_helper_description(self,ctx,data): |
| 218 | val = self.data_connected_to_helper(ctx,data) |
| 219 | if val == "no-disabled": |
| 220 | return "no, enable for quicker uploads" |
| 221 | return val |
| 222 | |
215 | 223 | def data_connected_to_helper(self, ctx, data): |
216 | 224 | try: |
217 | 225 | uploader = self.client.getServiceNamed("uploader") |
218 | 226 | except KeyError: |
219 | 227 | return "no" # we don't even have an Uploader |
220 | 228 | furl, connected = uploader.get_helper_info() |
| 229 | if furl == 'None': |
| 230 | return "no-disabled" |
221 | 231 | if connected: |
222 | 232 | return "yes" |
223 | 233 | return "no" |
diff --git src/allmydata/web/static/tahoe.css src/allmydata/web/static/tahoe.css
index 297bbe4..2d82258 100644
|
|
legend { |
52 | 52 | border: 1px solid #F00; |
53 | 53 | background-color: #FBB; |
54 | 54 | } |
| 55 | .connected-no-disabled { |
| 56 | border: 1px solid #000; |
| 57 | background-color: #EFE; |
| 58 | } |
55 | 59 | |
56 | 60 | .encoded, .nodeid { |
57 | 61 | font-family: monospace; |
diff --git src/allmydata/web/welcome.xhtml src/allmydata/web/welcome.xhtml
index 16f2cb7..464a46b 100644
|
|
|
47 | 47 | <div> |
48 | 48 | <n:attr name="class">connected-<n:invisible n:render="string" n:data="connected_to_helper" /></n:attr> |
49 | 49 | <div>Helper: <span n:render="string" n:data="helper_furl" /></div> |
50 | | <div>Connected to helper?: <span n:render="string" n:data="connected_to_helper" /></div> |
| 50 | <div>Connected to helper?: <span n:render="string" n:data="connected_to_helper_description" /></div> |
51 | 51 | </div> |
52 | 52 | |
53 | 53 | <p>Connected to <span n:render="string" n:data="connected_storage_servers" /> |