mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-02-17 07:33:57 +00:00
feat(mail): Add location in email ics representation template
This commit is contained in:
@@ -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";
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -44,6 +44,8 @@
|
||||
- (NSString *) startDate;
|
||||
- (NSString *) startTime;
|
||||
- (BOOL) isEndDateOnSameDay;
|
||||
- (BOOL) hasLocation;
|
||||
- (NSString *)location;
|
||||
|
||||
@end
|
||||
|
||||
|
||||
@@ -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 */
|
||||
|
||||
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user