client/templates/scene.html
author rougeronj
Sat, 18 Apr 2015 16:56:37 +0200
changeset 419 4f458e6d32bd
child 434 0d5998b32a7c
permissions -rw-r--r--
export the templates of scene and edgeeditor to html files
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
419
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
     1
<% if (options.show_top_bar) { %>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
     2
	<div class="Rk-TopBar">
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
     3
		<div class="loader"></div>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
     4
		<% if (!options.editor_mode) { %>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
     5
			<h2 class="Rk-PadTitle">
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
     6
				<%- project.get("title") || translate("Untitled project")%>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
     7
			</h2>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
     8
		<% } else { %>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
     9
			<input type="text" class="Rk-PadTitle" value="<%- project.get('title') || '' %>" placeholder="<%-translate('Untitled project')%>" />
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    10
		<% } %>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    11
		<% if (options.show_user_list) { %>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    12
			<div class="Rk-Users">
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    13
				<div class="Rk-CurrentUser">
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    14
					<% if (options.show_user_color) { %>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    15
						<div class="Rk-Edit-ColorPicker-Wrapper">
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    16
							<span class="Rk-CurrentUser-Color">
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    17
							<% if (options.user_color_editable) { %>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    18
								<span class="Rk-Edit-ColorTip"></span>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    19
							<% } %>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    20
							</span>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    21
							<% if (options.user_color_editable) { print(colorPicker) } %>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    22
						</div>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    23
					<% } %>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    24
					<span class="Rk-CurrentUser-Name">&lt;unknown user&gt;</span>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    25
				</div>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    26
				<ul class="Rk-UserList"></ul>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    27
			</div>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    28
		<% } %>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    29
		<% if (options.home_button_url) {%>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    30
			<div class="Rk-TopBar-Separator"></div>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    31
			<a class="Rk-TopBar-Button Rk-Home-Button" href="<%- options.home_button_url %>">
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    32
				<div class="Rk-TopBar-Tooltip">
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    33
					<div class="Rk-TopBar-Tooltip-Contents">
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    34
						<%- translate(options.home_button_title) %>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    35
					</div>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    36
				</div>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    37
			</a>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    38
		<% } %>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    39
		<% if (options.show_fullscreen_button) { %>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    40
			<div class="Rk-TopBar-Separator"></div>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    41
			<div class="Rk-TopBar-Button Rk-FullScreen-Button">
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    42
				<div class="Rk-TopBar-Tooltip">
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    43
					<div class="Rk-TopBar-Tooltip-Contents">
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    44
						<%-translate("Full Screen")%>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    45
					</div>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    46
				</div>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    47
			</div>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    48
		<% } %>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    49
		<% if (options.editor_mode) { %>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    50
			<% if (options.show_addnode_button) { %>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    51
				<div class="Rk-TopBar-Separator"></div>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    52
				<div class="Rk-TopBar-Button Rk-AddNode-Button">
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    53
					<div class="Rk-TopBar-Tooltip">
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    54
						<div class="Rk-TopBar-Tooltip-Contents">
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    55
							<%-translate("Add Node")%>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    56
						</div>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    57
					</div>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    58
				</div>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    59
			<% } %>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    60
			<% if (options.show_addedge_button) { %>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    61
				<div class="Rk-TopBar-Separator"></div>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    62
				<div class="Rk-TopBar-Button Rk-AddEdge-Button">
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    63
					<div class="Rk-TopBar-Tooltip">
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    64
						<div class="Rk-TopBar-Tooltip-Contents">
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    65
							<%-translate("Add Edge")%>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    66
						</div>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    67
					</div>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    68
				</div>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    69
			<% } %>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    70
			<% if (options.show_export_button) { %>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    71
				<div class="Rk-TopBar-Separator"></div>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    72
				<div class="Rk-TopBar-Button Rk-Export-Button">
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    73
					<div class="Rk-TopBar-Tooltip">
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    74
						<div class="Rk-TopBar-Tooltip-Contents">
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    75
							<%-translate("Download Project")%>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    76
						</div>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    77
					</div>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    78
				</div>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    79
			<% } %>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    80
			<% if (options.show_save_button) { %>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    81
				<div class="Rk-TopBar-Separator"></div>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    82
				<div class="Rk-TopBar-Button Rk-Save-Button">
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    83
					<div class="Rk-TopBar-Tooltip">
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    84
						<div class="Rk-TopBar-Tooltip-Contents"></div>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    85
					</div>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    86
				</div>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    87
			<% } %>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    88
			<% if (options.show_open_button) { %>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    89
				<div class="Rk-TopBar-Separator"></div>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    90
				<div class="Rk-TopBar-Button Rk-Open-Button">
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    91
					<div class="Rk-TopBar-Tooltip">
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    92
						<div class="Rk-TopBar-Tooltip-Contents">
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    93
							<%-translate("Open Project")%>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    94
						</div>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    95
					</div>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    96
				</div>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    97
			<% } %>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    98
			<% if (options.show_bookmarklet) { %>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
    99
				<div class="Rk-TopBar-Separator"></div>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
   100
				<a class="Rk-TopBar-Button Rk-Bookmarklet-Button" href="#">
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
   101
					<div class="Rk-TopBar-Tooltip">
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
   102
						<div class="Rk-TopBar-Tooltip-Contents">
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
   103
							<%-translate("Renkan \'Drag-to-Add\' bookmarklet")%>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
   104
						</div>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
   105
					</div>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
   106
				</a>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
   107
				<div class="Rk-TopBar-Separator"></div>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
   108
			<% } %>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
   109
		<% } else { %>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
   110
			<% if (options.show_export_button) { %>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
   111
				<div class="Rk-TopBar-Separator"></div>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
   112
				<div class="Rk-TopBar-Button Rk-Export-Button">
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
   113
					<div class="Rk-TopBar-Tooltip">
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
   114
						<div class="Rk-TopBar-Tooltip-Contents">
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
   115
							<%-translate("Download Project")%>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
   116
						</div>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
   117
					</div>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
   118
				</div>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
   119
				<div class="Rk-TopBar-Separator"></div>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
   120
			<% } %>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
   121
		<% }; %>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
   122
		<% if (options.show_search_field) { %>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
   123
			<form action="#" class="Rk-GraphSearch-Form">
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
   124
				<input type="search" class="Rk-GraphSearch-Field" placeholder="<%- translate('Search in graph') %>" />
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
   125
			</form>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
   126
			<div class="Rk-TopBar-Separator"></div>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
   127
		<% } %>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
   128
	</div>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
   129
<% } %>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
   130
<div class="Rk-Editing-Space<% if (!options.show_top_bar) { %> Rk-Editing-Space-Full<% } %>">
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
   131
	<div class="Rk-Labels"></div>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
   132
	<canvas class="Rk-Canvas" <% if (options.resize) { %> resize="" <% } %>></canvas>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
   133
	<div class="Rk-Notifications"></div>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
   134
	<div class="Rk-Editor">
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
   135
		<% if (options.show_bins) { %>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
   136
			<div class="Rk-Fold-Bins">&laquo;</div>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
   137
		<% } %>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
   138
		<% if (options.show_zoom) { %>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
   139
			<div class="Rk-ZoomButtons">
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
   140
				<div class="Rk-ZoomIn" title="<%-translate('Zoom In')%>"></div>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
   141
				<div class="Rk-ZoomFit" title="<%-translate('Zoom Fit')%>"></div>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
   142
				<div class="Rk-ZoomOut" title="<%-translate('Zoom Out')%>"></div>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
   143
				<% if (options.editor_mode && options.save_view) { %>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
   144
					<div class="Rk-ZoomSave" title="<%-translate('Zoom Save')%>"></div>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
   145
				<% } %>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
   146
				<% if (options.save_view) { %>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
   147
					<div class="Rk-ZoomSetSaved" title="<%-translate('View saved zoom')%>"></div>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
   148
				<% } %>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
   149
			</div>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
   150
		<% } %>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
   151
	</div>
4f458e6d32bd export the templates of scene and edgeeditor to html files
rougeronj
parents:
diff changeset
   152
</div>