6
6
7
7
<h2 class =" genus-name" >{{ name }}</h2 >
8
8
9
- <a href =" {{ path(' genus_show_notes' , {' genusName' : name }) }}" >Json Notes</a >
9
+ {# <a href="{{ path('genus_show_notes', {'genusName': name}) }}">Json Notes</a> #}
10
10
11
11
<div class =" sea-creature-container" >
12
12
<div class =" genus-photo" ></div >
21
21
</dl >
22
22
</div >
23
23
</div >
24
- <div class =" notes-container" >
25
- <h2 class =" notes-header" >Notes</h2 >
26
- <div ><i class =" fa fa-plus plus-btn" ></i ></div >
27
- </div >
28
- <section id =" cd-timeline" >
29
24
30
- {# {% for note in notes %}#}
31
25
32
- {# <div class="cd-timeline-block">#}
33
- {# <div class="cd-timeline-img">#}
34
- {# <img src="{{ asset('images/leanna.jpeg') }}" class="img-circle" alt="Leanna!">#}
35
- {# </div>#}
36
- {# <div class="cd-timeline-content">#}
37
- {# <h2><a href="#">AquaPelham</a></h2>#}
26
+ {# <div class="notes-container">#}
27
+ {# <h2 class="notes-header">Notes</h2>#}
28
+ {# <div><i class="fa fa-plus plus-btn"></i></div>#}
29
+ {# </div>#}
30
+ {# <section id="cd-timeline">#}
31
+
32
+ {# {#{% for note in notes %}#}#}
33
+
34
+ {# {#<div class="cd-timeline-block">#}#}
35
+ {# {#<div class="cd-timeline-img">#}#}
36
+ {# {#<img src="{{ asset('images/leanna.jpeg') }}" class="img-circle" alt="Leanna!">#}#}
37
+ {# {#</div>#}#}
38
+ {# {#<div class="cd-timeline-content">#}#}
39
+ {# {#<h2><a href="#">AquaPelham</a></h2>#}#}
38
40
39
- {# <p>{{ note }}</p>#}
41
+ {# {# <p>{{ note }}</p>#} #}
40
42
41
- {# <span class="cd-date">Dec. 10, 2015</span>#}
42
- {# </div>#}
43
- {# </div>#}
43
+ {# {# <span class="cd-date">Dec. 10, 2015</span>#} #}
44
+ {# {# </div>#} #}
45
+ {# {# </div>#} #}
44
46
45
- {# {% endfor %}#}
47
+ {# {#{% endfor %}#}#}
48
+
49
+ {# </section>#}
50
+ <div id =" js-notes-wrapper" ></div >
46
51
47
- </section >
48
52
{% endblock %}
53
+ {% block javascripts %}
54
+ {{ parent () }}
55
+
56
+ <script src =" https://cdnjs.cloudflare.com/ajax/libs/react/0.14.3/react.js" ></script >
57
+ <script src =" https://cdnjs.cloudflare.com/ajax/libs/react/0.14.3/react-dom.js" ></script >
58
+ <script src =" https://cdnjs.cloudflare.com/ajax/libs/babel-core/5.8.23/browser.min.js" ></script >
59
+
60
+ <script type =" text/babel" src =" {{ asset(' js/notes.react.js' ) }}" ></script >
61
+ <script type =" text/babel" >
62
+
63
+ var notesUrl = ' {{ path(' genus_show_notes' , {' genusName' : name}) }}' ;
64
+
65
+ ReactDOM .render (
66
+ < NoteSection url= {notesUrl}/ > ,
67
+ document .getElementById (' js-notes-wrapper' )
68
+ );
69
+ </script >
70
+
71
+ {% endblock %}
0 commit comments