Sha256: c0b6f969f35834ff0a2db5b02ebd8ca2bedfec9180f71ba19a4b37fcc1a840e2

Contents?: true

Size: 1.97 KB

Versions: 2

Compression:

Stored size: 1.97 KB

Contents

<%if not login_required %>
	<h1>Rhoconnect Console</h1>
	<%if is_errors? or @sources.nil? %>
		<%= show_errors%>
	<%end%>
	<%unless @license.nil? %>
 		<%="Licensed to #{@license['licensee']} on #{@license['issued']}, available #{@license['available']} of #{@license['seats']} devices"%>
	<%end%>	
	<div class='panel'>
		<a href="<%=url_path('logout')%>" class='nav_button'>Logout</a>
	</div>	
	<div class='panel'>
		<a href="<%=url_path('reset')%>" class='nav_button' onclick="return confirm('Are you sure? Resetting will remove all data. It will also return an error code to all existing devices when they connect!')">Reset</a>
		<a href="<%=url_path('doc/select')%>" class='nav_button'>Show server document</a>
	</div>
	<div class='panel'>
		<a href="<%=url_path('users')%>" class='nav_button'>Application users</a>
	</div>
	<h2>App partition sources</h2>	
	<div class='panel'>
		<%unless @sources.nil? %>
			[
			<%@sources.each_index do |i|%>
				<a href="<%=url_path("docs?source_id=#{@sources[i]}&user_id=*")%>"><%=i==0?'':','%>"<%=@sources[i]%>"</a>
			<%end%>
			]
		<%end%>	
	</div>
<% else %>
	<h1>Login</h1>
	<%=show_errors%>
	<form action="<%=url_path('login')%>" method='POST'>
		<table>
			<tr>
				<td>Connect to Rhoconnect:</td>
				<td>
					<input type="radio" name="connect" value="direct" 
						<%= 'checked' if session[:connect] == 'direct' or session[:connect].nil?%>> Directly</input><br>
					<input type="radio" name="connect" value="remote" <%= 'checked' if session[:connect] == 'remote'%>> Using REST API</input><br>
				</td>
			</tr>	
			<tr>
				<td>REST Server address:</td>
				<td><input name='server' value='<%=session[:server_url] || 'http://localhost:9292'%>' size=64/></td>
			</tr>
			<tr>
				<td>Login:</td>
				<td><input name='login' value='<%=session[:login] || 'rhoadmin'%>'/></td>
			</tr>
			<tr>
				<td>Password:</td>
				<td><input name='password' type='password' value=''/></td>
			</tr>
		</table>
		<br/>
		<input type='submit' value='Submit'/>
	</form>
<% end %>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rhoconnect-3.0.0.beta3 lib/rhoconnect/console/app/views/index.erb
rhoconnect-3.0.0.beta1 lib/rhoconnect/console/app/views/index.erb