File tree Expand file tree Collapse file tree 2 files changed +26
-2
lines changed Expand file tree Collapse file tree 2 files changed +26
-2
lines changed Original file line number Diff line number Diff line change 107
107
<dt >{ time_range $Segment -> StartTime $Segment -> EndTime } </dt >
108
108
<dd >
109
109
<h4 ><a href =" { $Segment -> getUrl ()} " >{ $Segment -> Title |escape } </a ></h4 >
110
- <div class =" content-markdown event-segment-description" >{ $Segment -> Description |escape |markdown} </div >
110
+ { if $Segment -> Description }
111
+ <div
112
+ class =" content-markdown event-segment-description content-editable"
113
+ { if $.User-> hasAccountLevel (' Staff' )}
114
+ data-content-endpoint =" { $Event -> getUrl (segments)} "
115
+ data-content-id =" { $Segment -> Handle } "
116
+ data-content-field =" Description"
117
+ data-content-value =" { $Segment -> Description |escape } "
118
+ data-content-renderer =" markdown"
119
+ { /if }
120
+ >
121
+ { $Segment -> Description |escape |markdown}
122
+ </div >
123
+ { /if }
111
124
</dd >
112
125
113
126
{ $lastLocationName = $Segment -> LocationName }
Original file line number Diff line number Diff line change 40
40
<div class =" row" >
41
41
<div class =" col-md-9" >
42
42
{ if $Segment -> Description }
43
- <div class =" content-markdown event-segment-description well" >{ $Segment -> Description |escape |markdown} </div >
43
+ <div
44
+ class =" content-markdown event-segment-description well content-editable"
45
+ { if $.User-> hasAccountLevel (' Staff' )}
46
+ data-content-endpoint =" { $Event -> getUrl (segments)} "
47
+ data-content-id =" { $Segment -> Handle } "
48
+ data-content-field =" Description"
49
+ data-content-value =" { $Segment -> Description |escape } "
50
+ data-content-renderer =" markdown"
51
+ { /if }
52
+ >
53
+ { $Segment -> Description |escape |markdown}
54
+ </div >
44
55
{ /if }
45
56
</div >
46
57
You can’t perform that action at this time.
0 commit comments