Sha256: cf830e80574da7cc272e48a697112a6eba5b3fa4af21b472ff44f9780dd9045c
Contents?: true
Size: 1.97 KB
Versions: 13
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
13 entries across 13 versions & 1 rubygems