This repository has been archived by the owner on Jan 12, 2022. It is now read-only.
forked from felipelerena/FlightDeck
/
addon_edit.html
70 lines (61 loc) · 2.34 KB
/
addon_edit.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
{% extends "edit.html" %}
{% block modules_sidebar %}
{% with revision.get_main_module as module %}
{% include "_sidebar_revision_module.html" %}
{% endwith %}
{% for module in modules %}{% if revision.module_main != module.filename %}
{% include "_sidebar_revision_module.html" %}
{% endif %}{% endfor %}
{% endblock %}
{% block core_library %}
{% if revision.sdk %}
<li class="UI_File_Normal Core_library"
id="core_library_lib"
title="{{ revision.get_sdk_revision.package.full_name }}"
data-id-number="{{ revision.get_sdk_revision.package.name }}">
<a class="expand" href="#"></a>
<div class="holder">
<a href="{{ revision.get_sdk_revision.get_absolute_url }}" target="_blank">
<span class="label">{{ revision.get_sdk_revision.package.full_name }}</span>
</a>
<span class="icon"></span>
<select id="jetpack_core_sdk_version">
{% for s in sdk_list %}
<option value="{{ s.id }}" {% if s.is_deprecated %}disabled{% endif %}
{% if revision.sdk.id == s.id %} selected{% endif %}>
{{ s.version }}
</option>
{% endfor %}
</select>
</div>
</li>
{% endif %}
{% endblock %}
{% block app_content_menu_items %}
<li id="try_in_browser" title="Test" class="UI_Editor_Menu_Button Icon_try XPI_test">
<a data-jetpackid="{{ revision.package.get_jid }}" href="{{ revision.get_test_xpi_url }}"><span></span></a>
</li>
<li id="download" title="Download" class="UI_Editor_Menu_Button Icon_download">
<a target="_new" href="{{ revision.get_download_xpi_url }}"><span></span></a>
</li>
<li id="upload_to_amo" title="Upload" class="UI_Editor_Menu_Button Icon_upload">
<a target="_new" href="{{ revision.get_upload_to_amo_url }}"><span></span></a>
</li>
<li class="UI_Editor_Menu_Separator"></li>
{% endblock %}
{% block app_content_menu_error_console %}
<li id="error-console" title="Error Console" class="UI_Editor_Menu_Button Icon_logs">
<a href="#"><span></span></a>
</li>
{% endblock %}
{% block editor_wrapper %}
{% with revision.get_main_module as module %}
{% include "_module_code_textarea.html" %}
{% endwith %}
{% for module in revision.modules.all %}{% if module.filename != revision.module_main %}
{% include "_module_code_textarea.html" %}
{% endif %}{% endfor %}
{% for attachment in revision.attachments.all %}
{% include "_attachment_code_textarea.html" %}
{% endfor %}
{% endblock %}