make the anchor text in the WUI be descriptive of the target -- not "Click Here!"!

This commit is contained in:
czooko 2007-10-22 16:56:30 -07:00
parent 5f9f54c11c
commit d589c385e6
3 changed files with 7 additions and 12 deletions

View File

@ -389,7 +389,7 @@ class Web(WebMixin, unittest.TestCase):
def _check(res):
self.failUnless('Welcome To AllMyData' in res)
self.failUnless('Tahoe' in res)
self.failUnless('To view the global shared filestore' in res)
self.failUnless('View <a href="vdrive/global">the global shared filestore' in res, res)
self.failUnless('personal vdrive not available.' in res)
self.s.basedir = 'web/test_welcome'

View File

@ -10,17 +10,11 @@
<h1>Welcome To Your AllMyData "Tahoe" Node!</h1>
<div>To view the global shared filestore,
<a href="%(base_url)s/vdrive/global">Click Here!</a>
</div>
<div>View <a href="%(base_url)s/vdrive/global">the global shared filestore</a>.</div>
<div>To view your personal private non-shared filestore,
<a href="%(base_url)s/uri/%(private_uri)s">Click Here!</a>
</div>
<div>View <a href="%(base_url)s/uri/%(private_uri)s">your personal private non-shared filestore</a>.</div>
<div>To view this node's status page,
<a href="%(base_url)s/">click here</a>.
</div>
<div>View <a href="%(base_url)s/">this node's status page</a>.</div>
<div>Please visit the <a href="http://allmydata.org">Tahoe home page</a> for

View File

@ -1152,8 +1152,9 @@ class Root(rend.Page):
def render_global_vdrive(self, ctx, data):
if IClient(ctx).getServiceNamed("vdrive").have_public_root():
return T.p["To view the global shared filestore, ",
T.a(href="vdrive/global")["Click Here!"],
return T.p["View ",
T.a(href="vdrive/global")["the global shared filestore"],
"."
]
return T.p["vdrive.furl not specified (or vdrive server not "
"responding), no vdrive available."]