Sha256: 197a73bbd62c459e71d61bf692db548b65fd032ac52683ff4f5f58924818a95e
Contents?: true
Size: 1.93 KB
Versions: 5
Compression:
Stored size: 1.93 KB
Contents
<%if not login_required %> <h1>Rhosync 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('logout')%>" class='nav_button'>Logout</a> </div> <div class='panel'> <a href="<%=url('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('doc/select')%>" class='nav_button'>Show server document</a> </div> <div class='panel'> <a href="<%=url('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("docs?source_id=#{@sources[i]}&user_id=*")%>"><%=i==0?'':','%>"<%=@sources[i]%>"</a> <%end%> ] <%end%> </div> <% else %> <h1>Login</h1> <%=show_errors%> <form action="<%=url('login')%>" method='POST'> <table> <tr> <td>Connect to RhoSync:</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
5 entries across 5 versions & 1 rubygems