imip-agent

Changeset

801:4946483c2a76
2015-10-04 Paul Boddie raw files shortlog changelog graph Added an explicit notice about events not having been shared.
imipweb/event.py (file)
     1.1 --- a/imipweb/event.py	Sat Oct 03 01:05:28 2015 +0200
     1.2 +++ b/imipweb/event.py	Sun Oct 04 00:35:31 2015 +0200
     1.3 @@ -144,6 +144,9 @@
     1.4          is_attendee = self.user in attendees
     1.5          is_request = self._have_request(self.uid, self.recurrenceid)
     1.6  
     1.7 +        if not self.obj.is_shared():
     1.8 +            page.p("This event has not been shared.")
     1.9 +
    1.10          # Show appropriate options depending on the role of the user.
    1.11  
    1.12          if is_attendee and not self.is_organiser():
    1.13 @@ -161,7 +164,7 @@
    1.14              page.p("As organiser, you can perform the following:")
    1.15  
    1.16              page.p()
    1.17 -            self.control("create", "submit", not self.obj.is_shared() and "Create event" or "Update event")
    1.18 +            self.control("create", "submit", "Update event")
    1.19              page.add(" ")
    1.20  
    1.21              if self.obj.is_shared() and not is_request: