root/trunk/projects/bos/web/cms-links.lisp

Revision 3712, 1.3 kB (checked in by ksprotte, 4 months ago)

xhtmlgen: should have left :canonical nil untouched

Line 
1 (in-package :bos.web)
2
3 (enable-interpol-syntax)
4
5 (defmethod html-edit-link ((sponsor sponsor))
6   (html
7    (cmslink (format nil "edit-sponsor/~D" (store-object-id sponsor))
8      (:princ-safe (format nil "edit sponsor #~D" (store-object-id sponsor))))))
9
10 (defmethod html-link ((sponsor sponsor))
11   (html-edit-link sponsor))
12
13 (defmethod html-link ((contract contract))
14   (html
15    (cmslink (format nil "contract/~D" (store-object-id contract))
16      (:princ-safe (format nil "contract #~D" (store-object-id contract))))))
17
18 (defmethod object-url ((poi poi))
19   (format nil "/poi/~A" (poi-name poi)))
20
21 (defmethod edit-object-url ((poi poi))
22   (format nil "/edit-poi/~A" (store-object-id poi)))
23
24 (defmethod html-link ((poi poi))
25   (cmslink (object-url poi)
26     (:princ (poi-name poi))))
27
28 (defmethod html-edit-link ((poi poi))
29   (cmslink (edit-object-url poi)
30     (:princ (format nil "edit ~a" (poi-name poi)))))
31
32 (defmethod edit-object-url ((medium poi-medium))
33   (format nil "/edit-poi-medium/~a" (store-object-id medium)))
34
35 (defmethod html-link ((poi-image poi-image))
36   (cmslink (object-url poi-image)
37     (:princ (store-object-id poi-image))))
38
39 (defmethod html-edit-link ((poi-image poi-image))
40   (html
41    (cmslink (edit-object-url poi-image)
42      (:princ (format nil "edit ~a" (store-object-id poi-image))))))
Note: See TracBrowser for help on using the browser.