|
Lines 80-86
exports.CommitDetails = (function() {
Link Here
|
| 80 |
dojo.place("<span id='commitMetaCommands' class='paneHeadingToolbar'></span>", commandCol, "only"); |
80 |
dojo.place("<span id='commitMetaCommands' class='paneHeadingToolbar'></span>", commandCol, "only"); |
| 81 |
|
81 |
|
| 82 |
if (commitDetails != null){ |
82 |
if (commitDetails != null){ |
| 83 |
|
83 |
|
| 84 |
// commit details |
84 |
// commit details |
| 85 |
var tr, col1, col2; |
85 |
var tr, col1, col2; |
| 86 |
var tbody = dojo.create("tbody", null, commitMetaTable); |
86 |
var tbody = dojo.create("tbody", null, commitMetaTable); |
|
Lines 91-99
exports.CommitDetails = (function() {
Link Here
|
| 91 |
var col2 = dojo.create("td", null, tr, "last"); |
91 |
var col2 = dojo.create("td", null, tr, "last"); |
| 92 |
dojo.place(document.createTextNode(commitDetails.AuthorName + " (" + commitDetails.AuthorEmail + ")"), col2, "only"); |
92 |
dojo.place(document.createTextNode(commitDetails.AuthorName + " (" + commitDetails.AuthorEmail + ")"), col2, "only"); |
| 93 |
dojo.place(tr, tbody, "last"); |
93 |
dojo.place(tr, tbody, "last"); |
| 94 |
var col3 = dojo.create("td", {id: tr.id+"actions"}, tr, "last"); |
94 |
var col3 = dojo.create("td", {id: tr.id+"actions", rowspan:"4"}, tr, "last"); |
| 95 |
dojo.style(col3, "whiteSpace", "nowrap"); |
95 |
dojo.style(col3, "whiteSpace", "nowrap"); |
| 96 |
dojo.style(col3, "textAlign", "right"); |
96 |
dojo.style(col3, "textAlign", "right"); |
|
|
97 |
if (commitDetails.AuthorImage) { |
| 98 |
var image = new Image(); |
| 99 |
image.src=commitDetails.AuthorImage; |
| 100 |
image.name=commitDetails.AuthorName; |
| 101 |
dojo.place(image, col3, "last"); |
| 102 |
} |
| 97 |
|
103 |
|
| 98 |
tr = dojo.create("tr"); |
104 |
tr = dojo.create("tr"); |
| 99 |
col1 = dojo.create("td", {style: "padding-left: 5px; padding-right: 5px"}, tr, "last"); |
105 |
col1 = dojo.create("td", {style: "padding-left: 5px; padding-right: 5px"}, tr, "last"); |
|
Lines 101-109
exports.CommitDetails = (function() {
Link Here
|
| 101 |
col2 = dojo.create("td", null, tr, "last"); |
107 |
col2 = dojo.create("td", null, tr, "last"); |
| 102 |
dojo.place(document.createTextNode(commitDetails.CommitterName + " (" + commitDetails.CommitterEmail + ")"), col2, "only"); |
108 |
dojo.place(document.createTextNode(commitDetails.CommitterName + " (" + commitDetails.CommitterEmail + ")"), col2, "only"); |
| 103 |
dojo.place(tr, tbody, "last"); |
109 |
dojo.place(tr, tbody, "last"); |
| 104 |
col3 = dojo.create("td", {id: tr.id+"actions"}, tr, "last"); |
|
|
| 105 |
dojo.style(col3, "whiteSpace", "nowrap"); |
| 106 |
dojo.style(col3, "textAlign", "right"); |
| 107 |
|
110 |
|
| 108 |
tr = dojo.create("tr"); |
111 |
tr = dojo.create("tr"); |
| 109 |
col1 = dojo.create("td", {style: "padding-left: 5px; padding-right: 5px"}, tr, "last"); |
112 |
col1 = dojo.create("td", {style: "padding-left: 5px; padding-right: 5px"}, tr, "last"); |
|
Lines 111-119
exports.CommitDetails = (function() {
Link Here
|
| 111 |
col2 = dojo.create("td", null, tr, "last"); |
114 |
col2 = dojo.create("td", null, tr, "last"); |
| 112 |
dojo.place(document.createTextNode(commitDetails.Message), col2, "only"); |
115 |
dojo.place(document.createTextNode(commitDetails.Message), col2, "only"); |
| 113 |
dojo.place(tr, tbody, "last"); |
116 |
dojo.place(tr, tbody, "last"); |
| 114 |
col3 = dojo.create("td", {id: tr.id+"actions"}, tr, "last"); |
|
|
| 115 |
dojo.style(col3, "whiteSpace", "nowrap"); |
| 116 |
dojo.style(col3, "textAlign", "right"); |
| 117 |
|
117 |
|
| 118 |
tr = dojo.create("tr"); |
118 |
tr = dojo.create("tr"); |
| 119 |
col1 = dojo.create("td", {style: "padding-left: 5px; padding-right: 5px"}, tr, "last"); |
119 |
col1 = dojo.create("td", {style: "padding-left: 5px; padding-right: 5px"}, tr, "last"); |
|
Lines 121-129
exports.CommitDetails = (function() {
Link Here
|
| 121 |
col2 = dojo.create("td", null, tr, "last"); |
121 |
col2 = dojo.create("td", null, tr, "last"); |
| 122 |
dojo.place(document.createTextNode(commitDetails.Name), col2, "only"); |
122 |
dojo.place(document.createTextNode(commitDetails.Name), col2, "only"); |
| 123 |
dojo.place(tr, tbody, "last"); |
123 |
dojo.place(tr, tbody, "last"); |
| 124 |
col3 = dojo.create("td", {id: tr.id+"actions"}, tr, "last"); |
|
|
| 125 |
dojo.style(col3, "whiteSpace", "nowrap"); |
| 126 |
dojo.style(col3, "textAlign", "right"); |
| 127 |
|
124 |
|
| 128 |
// var actionsWrapper = dojo.create("span", {id: tr.id+"actionsWrapper"}, col3, "only"); |
125 |
// var actionsWrapper = dojo.create("span", {id: tr.id+"actionsWrapper"}, col3, "only"); |
| 129 |
// // we must hide/show the span rather than the column. IE and Chrome will not consider |
126 |
// // we must hide/show the span rather than the column. IE and Chrome will not consider |