X-Git-Url: http://git.hcoop.net/bpt/portal.git/blobdiff_plain/88a858ea00d991d01edb02fa5a9b3d989abace6d..23bfc8776ac637a955c1f781ff20498eaf62ef5b:/link.mlt diff --git a/link.mlt b/link.mlt index ddfea35..adfd266 100644 --- a/link.mlt +++ b/link.mlt @@ -7,24 +7,24 @@ ref showNormal = true; if $"cmd" = "add" then val id = Link.addLink (you, $"title", $"url", $"descr") %> -

Link added

+

Link added

<% elseif $"mod" <> "" then val id = Web.stoi ($"mod"); val link = Link.lookupLink id; if (iff admin then false else you <> #usr link) then - %>

You can't modify somebody else's link.

<% + %>

You can't modify somebody else's link.

<% else showNormal := false %> -

Modify link

+

Modify link

-
+ - - - - +
Title:
URL:
Description:
+ + +
Title:
URL:
Description:
@@ -34,20 +34,20 @@ elseif $"save" <> "" then val id = Web.stoi ($"save"); val link = Link.lookupLink id; if (iff admin then false else you <> #usr link) then - %>

You can't modify somebody else's link.

<% + %>

You can't modify somebody else's link.

<% else Link.modLink {link with title = $"title", url = $"url", descr = $"descr"} - %>

Link modified

<% + %>

Link modified

<% end elseif $"del" <> "" then val id = Web.stoi ($"del"); val link = Link.lookupLink id; if (iff admin then false else you <> #usr link) then - %>

You can't delete somebody else's link.

<% + %>

You can't delete somebody else's link.

<% else showNormal := false %> -

Are you sure you want to delete link to "<% Web.html (#title link) %>"?

+

Are you sure you want to delete link to "<% Web.html (#title link) %>"?

Yes, delete "<% Web.html (#title link) %>"!<% end @@ -55,10 +55,10 @@ elseif $"del2" <> "" then val id = Web.stoi ($"del2"); val link = Link.lookupLink id; if (iff admin then false else you <> #usr link) then - %>

You can't delete somebody else's link.

<% + %>

You can't delete somebody else's link.

<% else Link.deleteLink id; - %>

Link "<% Web.html (#title link) %>" deleted

<% + %>

Link "<% Web.html (#title link) %>" deleted

<% end end; @@ -76,14 +76,14 @@ if showNormal then %> <% end %> -

Add a link to a site you host with Hcoop

+

Add a link to a site you host with Hcoop

-
+ - - - - +
Title:
URL:
Description:
+ + +
Title:
URL:
Description: