feat(mail): Add location in email ics representation template

This commit is contained in:
smizrahi
2024-06-10 16:35:49 +02:00
parent f96eb4d3ca
commit 591d283425
5 changed files with 25 additions and 1 deletions

View File

@@ -47,3 +47,4 @@ reply_info = "This is a reply to an event invitation done by you.";
"OK" = "OK";
"Comment" = "Comment";
"Description" = "Description";
"Location" = "Location";

View File

@@ -47,3 +47,4 @@ reply_info = "Ceci est une réponse à un événement que vous avez organisé.";
"OK" = "Ok";
"Comment" = "Description :";
"Description" = "Description";
"Location" = "Lieu";

View File

@@ -44,6 +44,8 @@
- (NSString *) startDate;
- (NSString *) startTime;
- (BOOL) isEndDateOnSameDay;
- (BOOL) hasLocation;
- (NSString *)location;
@end

View File

@@ -583,9 +583,19 @@
[[person partStatWithDefault] lowercaseString], @"partstat", nil]];
}
[d setObject: a forKey: @"participants"];
[d setObject: a forKey: @"participants"];
return d;
}
- (BOOL) hasLocation {
return [self inEvent] != nil
&& [[self inEvent] location] != nil
&& [[[self inEvent] location] length] > 0;
}
- (NSString *) location {
return [[self inEvent] location];
}
@end /* UIxMailPartICalViewer */

View File

@@ -264,6 +264,16 @@
</div>
</div>
<var:if condition="hasLocation">
<div class="pseudo-input-container">
<label class="pseudo-input-label"><var:string label:value="Location"/></label>
<div>
<var:string value="location"/>
</div>
</div>
</var:if>
<!-- ATTENDEES -->
<md-list ng-show="part.participants.length > 0">
<div class="pseudo-input-container">