Permalink
Browse files

Get rid of empty parens when we don't have a SHA in the about dialog

  • Loading branch information...
1 parent 99c7605 commit 3c8c41e482598c590489dfacb0992f78a855529f @njx njx committed Dec 12, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/help/HelpCommandHandlers.js
  2. +1 −1 src/htmlContent/about-dialog.html
@@ -77,7 +77,7 @@ define(function (require, exports, module) {
BuildInfoUtils.getBracketsSHA().done(function (branch, sha, isRepo) {
// If we've successfully determined a "build number" via .git metadata, add it to dialog
sha = sha ? sha.substr(0, 9) : "";
- buildInfo = StringUtils.format("{0} {1}", branch, sha).trim();
+ buildInfo = StringUtils.format("({0} {1})", branch, sha).trim();
});
CommandManager.register(Strings.CMD_SHOW_EXTENSIONS_FOLDER, Commands.HELP_SHOW_EXT_FOLDER, _handleShowExtensionsFolder);
@@ -6,7 +6,7 @@ <h1 class="dialog-title">{{ABOUT}}</h1>
<img class="about-icon" src="{{ABOUT_ICON}}">
<div class="about-text">
<h2>{{APP_NAME_ABOUT_BOX}}</h2>
- <p class="dialog-message">{{ABOUT_TEXT_LINE1}} <span id="about-build-number">({{BUILD_INFO}})</span></p>
+ <p class="dialog-message">{{ABOUT_TEXT_LINE1}} <span id="about-build-number">{{BUILD_INFO}}</span></p>
<p class="dialog-message"><!-- $NON-NLS$ -->Copyright 2012 Adobe Systems Incorporated and its licensors. All rights reserved.</p>
<p class="dialog-message">{{{ABOUT_TEXT_LINE3}}}</p>
<p class="dialog-message">{{{ABOUT_TEXT_LINE4}}}</p>

0 comments on commit 3c8c41e

Please sign in to comment.