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

« back to all changes in this revision

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

  • Committer: mattgiuca
  • Date: 2008-01-15 03:16:19 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:230
Removed "unversioned" icon from subversion status. Now unversioned files do
not show any icon there, making the subversion icons more distinct.
(Generalised to: any svnstatus that does not map to an icon will have no image
displayed).

Show diffs side-by-side

added added

removed removed

Lines of Context:
60
60
 
61
61
/* Mapping SVN status to icons, just the file's basename */
62
62
svn_icons = {
63
 
    "unversioned": "unversioned.png",
 
63
    "unversioned": null,
64
64
    "normal": "normal.png",
65
65
    "added": "added.png",
66
66
    "missing": "missing.png",
81
81
    "conflicted": "Permanent file (conflicted)",
82
82
};
83
83
 
84
 
default_svn_icon = "modified.png";
 
84
default_svn_icon = null;
85
85
default_svn_nice = "Unknown status";
86
86
 
87
87
svn_icons_path = "media/images/svn";
380
380
/** Given an svnstatus, returns the path to the icon.
381
381
 * \param type String, svn status.
382
382
 * \return Path to the icon. Has applied make_path, so it is relative to site
383
 
 * root.
 
383
 * root. May return null to indicate no SVN icon.
384
384
 */
385
385
function svnstatus_to_icon(svnstatus)
386
386
{
389
389
        filename = svn_icons[svnstatus];
390
390
    else
391
391
        filename = default_svn_icon;
 
392
    if (filename == null) return null;
392
393
    return make_path(path_join(svn_icons_path, filename));
393
394
}
394
395