Forráskód Böngészése

隐藏媒体华夏重复来源前缀

媒体华夏记录来源为“广州华夏职业学院”时不再重复输出【广州华夏职业学院】;标题内已有媒体来源标记保持不变。

Validation: 本地和 hxcs 均确认【广州华夏职业学院】前缀为 0,南方工报、羊城晚报、中国教育在线、粤TV 等媒体标记保留。
非繁 2 hónapja
szülő
commit
ffc51c4890
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      WebRoot/web/upload/ffkj-template/news-red-index.jsp

+ 1 - 1
WebRoot/web/upload/ffkj-template/news-red-index.jsp

@@ -56,7 +56,7 @@
 				<div class="section-title"><h2>${empty newsRedMediaNmv.navigationMap.name ? '媒体华夏' : newsRedMediaNmv.navigationMap.name}</h2><em>IN THE MEDIA</em><a class="more" href="${newsRedMediaNmv.navigationMap.url}">更多 →</a></div>
 				<ul class="plain-list sub-list">
 					<c:forEach items="${newsRedMediaNmv.articleList}" var="item">
-						<li><a href="${item.url}" target="${item.target}"><strong><c:if test="${not empty item.source}">【${item.source}】</c:if>${item.title}</strong><time>${fn:substring(item.release_time, 5, 10)}</time></a></li>
+						<li><a href="${item.url}" target="${item.target}"><strong><c:if test="${not empty item.source and item.source ne '广州华夏职业学院'}">【${item.source}】</c:if>${item.title}</strong><time>${fn:substring(item.release_time, 5, 10)}</time></a></li>
 					</c:forEach>
 					<c:if test="${empty newsRedMediaNmv.articleList}"><li class="empty-line">暂无媒体华夏内容</li></c:if>
 				</ul>