Repository element

This commit is contained in:
David Straub
2020-12-06 14:10:06 +01:00
parent 162e3f9760
commit c780cecd4e
3 changed files with 5 additions and 2 deletions

View File

@@ -14,7 +14,8 @@ export class GrampsjsRepository extends GrampsjsObject {
renderProfile() {
return html`
<pre style="max-width:100%;">${JSON.stringify(this.data, null, 2)}</pre>
<h2>${this.data.name}</h2>
${this.data?.type ? html`<p><span class="md">${this._("Type")}:</span> ${this._(this.data.type)}</p>` : ''}
`;
}

View File

@@ -32,6 +32,7 @@ export const grampsStrings = [
"Citation",
"Citations",
"City",
"Collection",
"Country",
"County",
"Custom",
@@ -63,6 +64,7 @@ export const grampsStrings = [
"Home Page",
"in",
"LDS Note",
"Library",
"Locality",
"Map",
"Marriage Date",

View File

@@ -30,7 +30,7 @@ export class GrampsjsViewRepositories extends GrampsjsViewObjectsBase {
const formattedRow = {
grampsId: row.gramps_id,
name: row.name,
type: row.type
type: this._(row.type)
}
return formattedRow
}