Skip to content

Commit

Permalink
Tweaked the style comment header generated during installation
Browse files Browse the repository at this point in the history
  • Loading branch information
ankit committed Jun 8, 2011
1 parent 2e20302 commit 3a0ad91
Showing 1 changed file with 6 additions and 22 deletions.
28 changes: 6 additions & 22 deletions stylebot/js/installation.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,32 +88,16 @@ function saveStyleFromSocial(installationEvent) {
var rules = CSSUtils.getRulesFromParserObject(sheet);

// add the meta header
var header = '\
/**\n\
Title :
'
+ data.title + '\n';
var header = '/**\n Title: ' + data.title
+ '\n URL: http://stylebot.me/styles/' + data.id
+ '\n Author: ' + data.author
+ '\n Author URL: http://stylebot.me/users/' + data.author;

if (data.description) {
header += '\
Description :
'
+ data.description + '\n';
header += '\n Description: ' + data.description;
}

header += '\
URL : http://stylebot.me/styles/
'
+ data.id + '\n\
Author :
'
+ data.author + '\n\
Author URL :
'
+ 'http://stylebot.me/users/' + data.author + '\n\
**/\n
'
;
header += '\n**/';

var rulesWithMeta = { 'comment-#0' : { comment: header } };

Expand Down

0 comments on commit 3a0ad91

Please sign in to comment.