address style fix
This commit is contained in:
parent
716fa81396
commit
6568f9fbc8
2 changed files with 6 additions and 6 deletions
|
|
@ -9,6 +9,8 @@ I think of when I see "CRM".
|
|||
* Names
|
||||
* Birthday
|
||||
* Last-contact-time mapping
|
||||
* Address as single field (plus code? lat/long? go crazy!)
|
||||
* Free-text-entry field
|
||||
* Journal with Obsidian-like `[[link]]` syntax
|
||||
* ical server for birthday reminders
|
||||
|
||||
|
|
@ -16,7 +18,6 @@ I think of when I see "CRM".
|
|||
* Report birthdays and manage add'l fields for contacts stored on a remote CardDAV server
|
||||
* Act as CardDAV server for other clients
|
||||
* For each contact:
|
||||
* Address as single field (plus code? lat/long? go crazy!)
|
||||
* Arbitrary add'l yearly dates (e.g. anniversaries) that show on calendar
|
||||
* Relationship mapping
|
||||
* Desired contact periodicity
|
||||
|
|
|
|||
|
|
@ -137,17 +137,16 @@ mod get {
|
|||
@if addresses.len() == 1 {
|
||||
label { "address" }
|
||||
#addresses {
|
||||
.label {}
|
||||
.value { (addresses[0].value) }
|
||||
}
|
||||
} @else if addresses.len() > 0 {
|
||||
label { "addresses" }
|
||||
#addresses {
|
||||
@for address in addresses {
|
||||
.label {
|
||||
span { (address.label.unwrap_or(String::new())) }
|
||||
// raw nbsp instead of col-gap since i want no
|
||||
// gap when all labels are empty
|
||||
span { (PreEscaped(" ")) }
|
||||
@let lbl = address.label.unwrap_or(String::new());
|
||||
.label data-is-empty=(lbl.len() == 0) {
|
||||
(lbl)
|
||||
}
|
||||
.value { (address.value) }
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue