]> ruin.nu Git - ndwebbie.git/commitdiff
Show close option if the raid is open, but the bc doesn't have access to it
authorMichael Andreen <harv@ruin.nu>
Sat, 6 Sep 2008 12:52:33 +0000 (14:52 +0200)
committerMichael Andreen <harv@ruin.nu>
Sat, 6 Sep 2008 12:52:33 +0000 (14:52 +0200)
root/src/raids/index.tt2

index 485ebdeec850783a60c9f0c04518e136db3c254e..7fbfba81c63b128b7af92587e4143c454e514f22 100644 (file)
        <p>
                [% IF c.check_user_roles('raids_edit') %]
                <a href="[% c.uri_for('edit',r.id) %]">Edit Raid [% r.id %]</a>
+                       [% IF r.open %]
+               <a href="[% c.uri_for('close',r.id) %]">Close raid.</a>
+                       [% ELSE %]
                <a href="[% c.uri_for('open',r.id) %]">Open raid.</a>
+                       [% END %]
                        [% UNLESS r.releasedcoords %]
                <a href="[% c.uri_for('showcoords',r.id) %]">Show coords.</a>
                        [% END %]