%@include file="/include-internal.jsp"%>
<%@ page import="jetbrains.buildServer.serverSide.auth.Permission" %>
<%@ page import="jetbrains.buildServer.vcs.VcsChangeInfo" %>
<%@ page import="jetbrains.buildServer.web.functions.auth.AuthorizationFunctions" %>
<%@ page import="jetbrains.buildServer.web.openapi.PlaceId" %>
<% boolean hasPermissionToViewFileContent = AuthorizationFunctions.permissionGrantedForModification(modification, Permission.VIEW_FILE_CONTENT.name()); %>
<%
VcsChangeInfo.Type type = changedFile.getType();
String typeDescription = type.getDescription();
String shownTypeDescription = typeDescription.replace("directory", "");
boolean showChangeTypeDetails = !typeDescription.equals(changedFile.getChangeTypeName());
boolean showDiffLink = hasPermissionToViewFileContent && !type.isDirectory() && type != VcsChangeInfo.Type.NOT_CHANGED;
boolean showOpenInIDELink = !type.isDirectory();
pageContext.setAttribute("showDiffLink", showDiffLink);
pageContext.setAttribute("showOpenInIDELink", showOpenInIDELink);
pageContext.setAttribute("shownTypeDescription", shownTypeDescription);
pageContext.setAttribute("showChangeTypeDetails", showChangeTypeDetails);
%>
${changedFile.relativeFileName}[Project Root] (directory)
|
(rev. ) ()
|