]> ruin.nu Git - ndwebbie.git/blobdiff - root/src/raids/index.tt2
Show close option if the raid is open, but the bc doesn't have access to it
[ndwebbie.git] / 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 %]