X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit%2Fstatic%2Ft%2Fical%2Fattachment%2Fdisplay.html;h=13dbc9c00c5c43e315fcc9318b22478f5a502f92;hb=2439b9cc9db4404cc04400ef337a9b37c7aae581;hp=f5a3c51250ceb257f200f904229a34e8eee0c134;hpb=16f8f8fde275d078f912f28a2192b7245d11c500;p=citadel.git
diff --git a/webcit/static/t/ical/attachment/display.html b/webcit/static/t/ical/attachment/display.html
index f5a3c5125..13dbc9c00 100644
--- a/webcit/static/t/ical/attachment/display.html
+++ b/webcit/static/t/ical/attachment/display.html
@@ -1,5 +1,19 @@
+aaa
+
abc
+!("COND:ICAL:PROPERTY", 1, #"ICAL_SUMMARY_PROPERTY")>
+blarg
+
+blub
+?("X", 1)>
+
+datum:
+!("COND:ICAL:PROPERTY", 2, #"ICAL_DTSTART_PROPERTY")>
+
+?("X", 2)>
+xxxx
+
cde
@@ -12,3 +26,128 @@ efg
hij
+
+
+
+
+
+
_title">
+
+
+
+
+
+?("COND:ICAL:METHOD", 11, #"ICAL_METHOD_REQUEST")>
+
+?("X", 11)>
+?("COND:ICAL:METHOD", 12, #"ICAL_METHOD_REPLY")>
+
+?("X", 12)>
+?("COND:ICAL:METHOD", 13 #"ICAL_METHOD_PUBLISH")>
+
+?("X", 13)>
+
+
+
+!("COND:ICAL:PROPERTY", 44, #"ICAL_SUMMARY_PROPERTY")>
+
+!("X", 44)>
+!("COND:ICAL:PROPERTY", 55, #"ICAL_LOCATION_PROPERTY")>
+
+!("X", 55)>
+
+
+
+!("COND:ICAL:IS:A", 66, #"ICAL_VEVENT_COMPONENT")>
+
+!("COND:ICAL:DT:PROPERTY", 67, #"ICAL_DTSTART_PROPERTY")>
+?("COND:ICAL:DT:ISDATE", 68)>
+
+!("X", 68)>
+!("COND:ICAL:DT:ISDATE", 69)>
+
+!("X", 69)>
+!("X", 67)>
+
+!("COND:ICAL:DT:PROPERTY", 77, #"ICAL_DTEND_PROPERTY")>
+
+!("X", 77)>
+
+!("X", 66)>
+
+
+!("COND:ICAL:PROPERTY", 88, #"ICAL_DESCRIPTION_PROPERTY")>
+
+!("X", 88)>
+
+!("COND:ICAL:PROPERTY", 99, #"ICAL_DESCRIPTION_PROPERTY")>
+--("Unusual string syntax used here in order to re-use existing translations")>
+- .
+!("X", 99)>
+
+ /* If the component has attendees, iterate through them. */
+ for (p = icalcomponent_get_first_property(cal, ICAL_ATTENDEE_PROPERTY);
+ (p != NULL);
+ p = icalcomponent_get_next_property(cal, ICAL_ATTENDEE_PROPERTY)) {
+ StrBufAppendPrintf(Target, "- ");
+ StrBufAppendPrintf(Target, _("Attendee:"));
+ StrBufAppendPrintf(Target, "
- ");
+ ch = icalproperty_get_attendee(p);
+ if ((ch != NULL) && !strncasecmp(buf, "MAILTO:", 7)) {
+
+ /** screen name or email address */
+ safestrncpy(buf, ch + 7, sizeof(buf));
+ striplt(buf);
+ StrEscAppend(Target, NULL, buf, 0, 0);
+ StrBufAppendPrintf(Target, " ");
+
+ /** participant status */
+ partstat_as_string(buf, p);
+ StrEscAppend(Target, NULL, buf, 0, 0);
+ }
+ StrBufAppendPrintf(Target, "
\n");
+ }
+
+ /* If the component has subcomponents, recurse through them. */
+ for (c = icalcomponent_get_first_component(cal, ICAL_ANY_COMPONENT);
+ (c != 0);
+ c = icalcomponent_get_next_component(cal, ICAL_ANY_COMPONENT)) {
+ /* Recursively process subcomponent */
+ cal_process_object(Target, c, recursion_level+1, msgnum, cal_partnum);
+ }
+
+?("COND:ICAL:METHOD", 110, #"ICAL_METHOD_REQUEST")>
+--("If this is a REQUEST, display conflicts and buttons")>
+--("Check for conflicts")>
+
+
+
+
+--("Display the Accept/Decline buttons")>
+
_question">
+
+
+_question','_title','','','Accept');">
+
+_question','_title','','','Tentative');">
+
+_question','_title','','','Decline');">
+
+?("X", 100)>
+
+--("If this is a REPLY, display update button")>
+?("COND:ICAL:METHOD", 110, #"ICAL_METHOD_REPLY")>
+--("Display the update buttons")>
+
_question" >
+Update to accept this reply and update your calendar.")>
+
+_question','_title','','','Update');">
+
+_question','_title','','','Ignore');">
+
+?("X", 110)>
+
+--("Trailing HTML for the display of this object")>
+ if (recursion_level == 0) {
+
+ }