1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- <button id="install" style="display:none;" class="recommend">
- Install this App
- </button>
- <script>
- if('mozApps' in navigator){
- (function(ic){
- ic.onsuccess = function(){
- if(ic.result){
- $('button#install').hide();
- }else{
- $('button#install').click(function(e){
- e.preventDefault();
- // install the app
- var request = navigator.mozApps.install(location.origin+'/bugs.webapp');
- request.onsuccess = function(data){
- replaceState('page-index');
- };
- request.onerror = function(){
- // App wasn't installed, info is in
- // installapp.error.name
- error(request.error.name);
- };
- return false;
- }).show();
- };
- };
- })(navigator.mozApps.checkInstalled(location.origin+"/bugs.webapp"));
- }
- </script>
- <h3>
- Welcome to Bugs
- </h3>
- <p>
- Bugs is a project issue tracker.
- </p>
- {{#if key}}
- <div>
- <section data-type="list">
- <header>
- Latest Issues
- </header>
- <ul>
- {{#each issues}}
- <li>
- <aside class="pack-end">
- {{user.name}}
- </aside>
- <a href="#!{{id}}">
- <p>
- {{#if priority}}[<span style="{{#if color}}color:{{color}};{{/if}}">{{priority}}</span>] {{/if}}{{title}}{{#if status}} ({{status}}){{/if}}
- </p>
- <p>
- {{description}}
- </p>
- </a>
- </li>
- {{/each}}
- </ul>
- </section>
- </div>
- {{else}}
- <a class="button" href="#page-register">
- Register
- </a>
- <a class="button" href="#page-login">
- Login
- </a>
- {{/if}}
|