File tree Expand file tree Collapse file tree 2 files changed +12
-6
lines changed Expand file tree Collapse file tree 2 files changed +12
-6
lines changed Original file line number Diff line number Diff line change 16
16
<div class =" input" >
17
17
<div class =" input-prepend" >
18
18
<span class =" add-on" >#</span >
19
- <input type =" text" name =" hash" id =" event_hash" size =" 30" value =" {{ model.get('hash').replace(/^#/, '') }}" >
19
+ {% if (!model.isNew()) { %}
20
+ <input type =" text" name =" hash" id =" event_hash" size =" 30" value =" {{ model.get('hash').replace(/^#/, '') }}" >
21
+ {% } else { %}
22
+ <input type =" text" name =" hash" id =" event_hash" size =" 30" value =" {{ model.get('hash') }}" >
23
+ {% } %}
20
24
</div >
21
25
</div >
22
26
</div >
Original file line number Diff line number Diff line change 86
86
{% } %}
87
87
</h1 >
88
88
<h3 >
89
- {% if (typeof event.name != 'undefined') { %}
90
- {{ event.name }}
91
- {% } else { %}
92
- Noname
93
- {% } %}
89
+ <a href =" #events/{{ event._id }}" >
90
+ {% if (typeof event.name != 'undefined') { %}
91
+ {{ event.name }}
92
+ {% } else { %}
93
+ Noname
94
+ {% } %}
95
+ </a >
94
96
{% if (typeof event.hash != 'undefined') { %}
95
97
<small >{{ event.hash }}</small >
96
98
{% } %}
You can’t perform that action at this time.
0 commit comments