~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to www/media/browser/specialhome.js

  • Committer: wagrant
  • Date: 2008-07-24 06:42:41 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:951
specialhome: Make nonexistent directories a little nicer, with titles
             and spacing. Loading directories also have their
             description as a title.

Show diffs side-by-side

added added

removed removed

Lines of Context:
103
103
    var li = document.createElement("li");
104
104
    var span;
105
105
    li.setAttribute("class", "listing-loading");
106
 
    li.appendChild(dom_make_text_elem("span", name));
 
106
    li.appendChild(dom_make_text_elem("span", name, description));
107
107
    span = dom_make_text_elem("loading...");
108
108
    span.setAttribute("class","status");
109
109
    li.appendChild(span);
148
148
        else
149
149
        {
150
150
            // Missing: Try to check out or create the repository
151
 
            li.appendChild(dom_make_text_elem("span", name));
152
 
            span = dom_make_text_elem("span", "missing");
 
151
            li.appendChild(dom_make_text_elem("span", name, description));
 
152
            span = dom_make_text_elem("span", " (missing) ",
 
153
                  "This directory does not yet exist.");
153
154
            span.setAttribute("class", "status");
154
155
            li.appendChild(span);
155
156