Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[JENKINS-18723] Fixing performance bottleneck, first step. There were…
… 2 times relative path for the job was asked which was replaced by a single time and saving the result in a var.
  • Loading branch information
ctapobep committed Aug 29, 2013
1 parent d75c350 commit cc25950
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/main/resources/lib/hudson/projectView.jelly
Expand Up @@ -79,9 +79,9 @@ THE SOFTWARE.
<j:forEach var="v" items="${attrs.views}">
<t:projectViewNested />
</j:forEach>

<j:forEach var="job" items="${jobs}">
<t:projectViewRow jobBaseUrl="${h.getRelativeLinkTo(job).substring(0, h.getRelativeLinkTo(job).length() - job.shortUrl.length())}"/>
<j:set var="relativeLinkToJob" value="${h.getRelativeLinkTo(job)}"/>
<t:projectViewRow jobBaseUrl="${relativeLinkToJob.substring(0, relativeLinkToJob.length() - job.shortUrl.length())}"/>
</j:forEach>
</table>
<t:iconSize><t:rssBar/></t:iconSize>
Expand Down

0 comments on commit cc25950

Please sign in to comment.