Completed some work on RepositoryPage, some work on Navigation menus...
svn: r18283
This commit is contained in:
parent
a9f824773a
commit
55b297d1fb
@ -5983,7 +5983,6 @@ class RepositoryPage(BasePage):
|
|||||||
"""
|
"""
|
||||||
will create the individual Repository Pages
|
will create the individual Repository Pages
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def __init__(self, report, title, repo, handle):
|
def __init__(self, report, title, repo, handle):
|
||||||
gid = repo.get_gramps_id()
|
gid = repo.get_gramps_id()
|
||||||
BasePage.__init__(self, report, title, gid)
|
BasePage.__init__(self, report, title, gid)
|
||||||
@ -5998,7 +5997,7 @@ class RepositoryPage(BasePage):
|
|||||||
body += repositorydetail
|
body += repositorydetail
|
||||||
|
|
||||||
# repository name
|
# repository name
|
||||||
repositorydetail += Html("h3", repo.name, inline = True)
|
repositorydetail += Html("h3", html_escape(repo.name), inline = True)
|
||||||
|
|
||||||
# begin repository table
|
# begin repository table
|
||||||
with Html("table", class_ = "infolist repolist") as table:
|
with Html("table", class_ = "infolist repolist") as table:
|
||||||
@ -6007,25 +6006,24 @@ class RepositoryPage(BasePage):
|
|||||||
tbody = Html("tbody")
|
tbody = Html("tbody")
|
||||||
table += tbody
|
table += tbody
|
||||||
|
|
||||||
# repo gramps id
|
if self.noid or not gid:
|
||||||
if not self.noid and gid:
|
gid = False
|
||||||
trow = Html("tr") + (
|
|
||||||
Html("td", _("Gramps ID"), class_ ="ColumnAttribute", inline =True),
|
tbody.extend(
|
||||||
Html("td", gid, class_ ="ColumnValue", inline =True)
|
( Html("tr"),
|
||||||
|
Html("td", label, class_ ="ColumnType"),
|
||||||
|
Html("td", data or " ", class_ ="ColumnAttribute")
|
||||||
)
|
)
|
||||||
tbody += trow
|
for label, data in [
|
||||||
|
(_("Gramps ID"), gid),
|
||||||
# repository type
|
(_("Type"), str(repo.get_type()))
|
||||||
trow = Html("tr") + (
|
]
|
||||||
Html("td", _("Type"), class_ ="ColumnAttribute", inline =True),
|
|
||||||
Html("td", str(repo.type), class_ ="ColumnValue", inline =True)
|
|
||||||
)
|
)
|
||||||
tbody += trow
|
|
||||||
|
|
||||||
# repository: address(es)... repositort addresses do NOT have Sources
|
# repository: address(es)... repository addresses do NOT have Sources
|
||||||
addresses = self.dump_addresses(repo.get_address_list(), False)
|
repo_address = self.display_addr_list(repo.get_address_list(), False)
|
||||||
if addresses is not None:
|
if repo_address is not None:
|
||||||
repositorydetail += addresses
|
repositorydetail += repo_address
|
||||||
|
|
||||||
# repository: urllist
|
# repository: urllist
|
||||||
urllist = self.display_url_list(repo.get_url_list())
|
urllist = self.display_url_list(repo.get_url_list())
|
||||||
|
@ -233,7 +233,7 @@ div#alphabet ul li a, div#navigation ul li a, div#subnavigation ul li a {
|
|||||||
display: block;
|
display: block;
|
||||||
padding: 4px 8px 4px 8px;
|
padding: 4px 8px 4px 8px;
|
||||||
float: left;
|
float: left;
|
||||||
font: bold 16px/100% sans;
|
font: bold .7em sans;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
color: #000;
|
color: #000;
|
||||||
@ -1093,7 +1093,7 @@ div#pedigree {
|
|||||||
margin-right: 10px;
|
margin-right: 10px;
|
||||||
}
|
}
|
||||||
#footer p#copyright img {
|
#footer p#copyright img {
|
||||||
margin-right: 10px;
|
margin-right: 10px[
|
||||||
}
|
}
|
||||||
#user_footer {
|
#user_footer {
|
||||||
width: 70%;
|
width: 70%;
|
||||||
|
Loading…
Reference in New Issue
Block a user