first commit
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
<div id="icl_show_source_top">
|
||||
{% for key, page in pages %}
|
||||
{% set number = key + 1 %}
|
||||
<a href="#" onclick="jQuery('#icl_string_track_frame_wrap iframe').attr('src','{{ page.iframe_url }}'); jQuery('#icl_string_track_url a').html('{{ page.url }}').attr('href', '{{ page.url }}'); return false;">{{ number }}</a><br />
|
||||
{% endfor %}
|
||||
</div>
|
||||
<div id="icl_string_track_frame_wrap">
|
||||
<iframe onload="iclResizeIframe()" src="{{ pages[0].iframe_url }}" width="10" height="10" frameborder="0" marginheight="0" marginwidth="0"></iframe>
|
||||
<div id="icl_string_track_url" class="icl_string_track_url"><a href="{{ pages[0].url }}">{{ pages[0].url }}</a></div>
|
||||
</div>
|
||||
@@ -0,0 +1,33 @@
|
||||
{%- if positions -%}
|
||||
<div id="icl_show_source_top">
|
||||
{% for key, position in positions %}
|
||||
{% set number = key + 1 %}
|
||||
<a href="#" onclick="icl_show_in_source({{ key }},{{ position.line }})">{{ number }}</a><br />
|
||||
{% endfor %}
|
||||
</div>
|
||||
<div id="icl_show_source_wrap">
|
||||
{% for key, position in positions %}
|
||||
<div class="icl_string_track_source" id="icl_string_track_source_{{ key }}"
|
||||
{% if key > 0 %}style="display:none"{% endif %}>
|
||||
|
||||
{% if key > 0 %}
|
||||
<script type="text/javascript">icl_show_in_source_scroll_once = '{{ position.line }}'</script>
|
||||
{% endif %}
|
||||
|
||||
<div class="icl_string_track_filename">{{ position.path }}</div>
|
||||
|
||||
<pre>
|
||||
<ol>
|
||||
{%- for line_number, line in position.content -%}
|
||||
<li id="icl_source_line_{{ key }}_{{ line_number }}"
|
||||
{%- if line_number == position.line - 1 -%}style="background-color:{{ highlight_color }}"{%- endif -%}
|
||||
>{{- line -}} </li>
|
||||
{%- endfor -%}
|
||||
</ol>
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
{% else %}
|
||||
{{ no_result_label }}
|
||||
{% endif %}
|
||||
Reference in New Issue
Block a user