Skip to content
Snippets Groups Projects
Commit 55a89db3 authored by srosse's avatar srosse
Browse files

OO-990: use the same "student" details page for authors too

parent b3a94995
No related branches found
No related tags found
No related merge requests found
Showing
with 51 additions and 129 deletions
...@@ -205,10 +205,16 @@ public abstract class FormBasicController extends BasicController { ...@@ -205,10 +205,16 @@ public abstract class FormBasicController extends BasicController {
protected void constructorInit(String mainFormId, String pageName) { protected void constructorInit(String mainFormId, String pageName) {
String ffo_pagename = null; String ffo_pagename = null;
if (pageName != null) { if (pageName != null) {
// init with provided layout if(pageName.endsWith(".html")) {
String vc_pageName = velocity_root + "/" + pageName + ".html"; // init with provided layout
ffo_pagename = "ffo_" + pageName; ffo_pagename = "ffo_" + pageName.replace("/", "_");
flc = FormLayoutContainer.createCustomFormLayout(ffo_pagename, getTranslator(), vc_pageName); flc = FormLayoutContainer.createCustomFormLayout(ffo_pagename, getTranslator(), pageName);
} else {
// init with provided layout
String vc_pageName = velocity_root + "/" + pageName + ".html";
ffo_pagename = "ffo_" + pageName;
flc = FormLayoutContainer.createCustomFormLayout(ffo_pagename, getTranslator(), vc_pageName);
}
} else { } else {
// init with default layout // init with default layout
ffo_pagename="ffo_default"; ffo_pagename="ffo_default";
......
...@@ -95,7 +95,7 @@ public class CSSIconFlexiCellRenderer implements FlexiCellRenderer { ...@@ -95,7 +95,7 @@ public class CSSIconFlexiCellRenderer implements FlexiCellRenderer {
target.append("\" title=\""); target.append("\" title=\"");
target.append(StringEscapeUtils.escapeHtml(hoverText)); target.append(StringEscapeUtils.escapeHtml(hoverText));
} }
target.append("\">&nsbp;</i>"); target.append("\"> </i>");
if(delegate == null) { if(delegate == null) {
target.append(getCellValue(cellValue)); target.append(getCellValue(cellValue));
} else { } else {
......
...@@ -75,7 +75,7 @@ ...@@ -75,7 +75,7 @@
<bean class="org.olat.core.extensions.action.GenericActionExtension" name="mailBox" init-method="initExtensionPoints" > <bean class="org.olat.core.extensions.action.GenericActionExtension" name="mailBox" init-method="initExtensionPoints" >
<property name="order" value="404" /> <property name="order" value="404" />
<property name="navigationKey" value="Mail" /> <property name="navigationKey" value="Mail" />
<property name="iconCssClass" value="b_with_small_icon_left b_mail_icon" /> <property name="iconCssClass" value="o_icon o_icon-fw o_icon_mail" />
<property name="actionController"> <property name="actionController">
<bean class="org.olat.core.gui.control.creator.AutoCreator" scope="prototype"> <bean class="org.olat.core.gui.control.creator.AutoCreator" scope="prototype">
<property name="className" value="org.olat.core.util.mail.ui.MailBoxOverviewController"/> <property name="className" value="org.olat.core.util.mail.ui.MailBoxOverviewController"/>
......
...@@ -230,7 +230,7 @@ public class OlatTopNavController extends BasicController implements GenericEven ...@@ -230,7 +230,7 @@ public class OlatTopNavController extends BasicController implements GenericEven
Link link = LinkFactory.createLink(linkName, container, this); Link link = LinkFactory.createLink(linkName, container, this);
link.setUserObject(gAe); link.setUserObject(gAe);
link.setCustomDisplayText(gAe.getActionText(getLocale())); link.setCustomDisplayText(gAe.getActionText(getLocale()));
link.setCustomEnabledLinkCSS(node.getIconCssClass()); link.setIconLeftCSS(node.getIconCssClass());
linksName.add(linkName); linksName.add(linkName);
} else if("config".equals(gAe.getParentTreeNodeIdentifier())) { } else if("config".equals(gAe.getParentTreeNodeIdentifier())) {
GenericTreeNode node = gAe.createMenuNode(ureq); GenericTreeNode node = gAe.createMenuNode(ureq);
...@@ -238,7 +238,7 @@ public class OlatTopNavController extends BasicController implements GenericEven ...@@ -238,7 +238,7 @@ public class OlatTopNavController extends BasicController implements GenericEven
Link link = LinkFactory.createLink(linkName, container, this); Link link = LinkFactory.createLink(linkName, container, this);
link.setUserObject(gAe); link.setUserObject(gAe);
link.setCustomDisplayText(gAe.getActionText(getLocale())); link.setCustomDisplayText(gAe.getActionText(getLocale()));
link.setCustomEnabledLinkCSS(node.getIconCssClass()); link.setIconLeftCSS(node.getIconCssClass());
configLinksName.add(linkName); configLinksName.add(linkName);
} }
} }
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
<property name="order" value="102" /> <property name="order" value="102" />
<property name="enabled" value="${minimalhome.ext.calendar}"></property> <property name="enabled" value="${minimalhome.ext.calendar}"></property>
<property name="navigationKey" value="calendar" /> <property name="navigationKey" value="calendar" />
<property name="iconCssClass" value="b_with_small_icon_left o_cal_icon" /> <property name="iconCssClass" value="o_icon o_icon-fw o_icon_calendar" />
<property name="actionController"> <property name="actionController">
<bean class="org.olat.core.gui.control.creator.AutoCreator" scope="prototype"> <bean class="org.olat.core.gui.control.creator.AutoCreator" scope="prototype">
<property name="className" value="org.olat.home.HomeCalendarController"/> <property name="className" value="org.olat.home.HomeCalendarController"/>
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
<property name="order" value="103" /> <property name="order" value="103" />
<property name="enabled" value="${minimalhome.ext.notifications}"></property> <property name="enabled" value="${minimalhome.ext.notifications}"></property>
<property name="navigationKey" value="notifications" /> <property name="navigationKey" value="notifications" />
<property name="iconCssClass" value="b_with_small_icon_left o_notifications_icon" /> <property name="iconCssClass" value="" />
<property name="actionController"> <property name="actionController">
<bean class="org.olat.home.controllerCreators.NotificationsControllerCreator" scope="prototype"/> <bean class="org.olat.home.controllerCreators.NotificationsControllerCreator" scope="prototype"/>
</property> </property>
...@@ -75,7 +75,7 @@ ...@@ -75,7 +75,7 @@
<property name="order" value="105" /> <property name="order" value="105" />
<property name="enabled" value="${minimalhome.ext.userfolder}"></property> <property name="enabled" value="${minimalhome.ext.userfolder}"></property>
<property name="navigationKey" value="userfolder" /> <property name="navigationKey" value="userfolder" />
<property name="iconCssClass" value="b_with_small_icon_left o_bc_icon" /> <property name="iconCssClass" value="o_icon o_icon-fw o_bc_icon" />
<property name="actionController"> <property name="actionController">
<bean class="org.olat.core.gui.control.creator.AutoCreator" scope="prototype"> <bean class="org.olat.core.gui.control.creator.AutoCreator" scope="prototype">
<property name="className" value="org.olat.core.commons.modules.bc.FolderRunController"/> <property name="className" value="org.olat.core.commons.modules.bc.FolderRunController"/>
...@@ -97,7 +97,7 @@ ...@@ -97,7 +97,7 @@
<property name="order" value="106" /> <property name="order" value="106" />
<property name="enabled" value="${minimalhome.ext.notelist}"></property> <property name="enabled" value="${minimalhome.ext.notelist}"></property>
<property name="navigationKey" value="notelist" /> <property name="navigationKey" value="notelist" />
<property name="iconCssClass" value="b_with_small_icon_left o_notes_icon" /> <property name="iconCssClass" value="o_icon o_icon-fw o_icon_notes" />
<property name="actionController"> <property name="actionController">
<bean class="org.olat.core.gui.control.creator.AutoCreator" scope="prototype"> <bean class="org.olat.core.gui.control.creator.AutoCreator" scope="prototype">
<property name="className" value="org.olat.note.NoteListController"/> <property name="className" value="org.olat.note.NoteListController"/>
...@@ -119,7 +119,7 @@ ...@@ -119,7 +119,7 @@
<property name="order" value="107" /> <property name="order" value="107" />
<property name="enabled" value="${minimalhome.ext.efficiencystatement}"></property> <property name="enabled" value="${minimalhome.ext.efficiencystatement}"></property>
<property name="navigationKey" value="effstatements" /> <property name="navigationKey" value="effstatements" />
<property name="iconCssClass" value="b_with_small_icon_left o_efficiencystatement_icon" /> <property name="iconCssClass" value="" />
<property name="actionController"> <property name="actionController">
<bean class="org.olat.core.gui.control.creator.AutoCreator" scope="prototype"> <bean class="org.olat.core.gui.control.creator.AutoCreator" scope="prototype">
<property name="className" value="org.olat.course.assessment.EfficiencyStatementsListController"/> <property name="className" value="org.olat.course.assessment.EfficiencyStatementsListController"/>
...@@ -202,7 +202,7 @@ ...@@ -202,7 +202,7 @@
<bean class="org.olat.core.extensions.action.GenericActionExtension" init-method="initExtensionPoints"> <bean class="org.olat.core.extensions.action.GenericActionExtension" init-method="initExtensionPoints">
<property name="order" value="110" /> <property name="order" value="110" />
<property name="enabled" value="true" /> <property name="enabled" value="true" />
<property name="iconCssClass" value="b_with_small_icon_left o_settings" /> <property name="iconCssClass" value="o_icon o_icon-fw o_icon_settings" />
<property name="navigationKey" value="mysettings" /> <property name="navigationKey" value="mysettings" />
<property name="parentTreeNodeIdentifier" value="config" /> <property name="parentTreeNodeIdentifier" value="config" />
<property name="actionController"> <property name="actionController">
......
$r.contextHelpWithWrapper("org.olat.modules.qpool.ui","share-pool.html","help.hover.sharepool") $r.contextHelpWithWrapper("org.olat.modules.qpool.ui","share-pool.html","help.hover.sharepool")
$r.render("pools") $r.render("pools")
$r.render("buttons") $r.render("buttons")
\ No newline at end of file
<div class="b_clearfix"> <div class="clearfix">
<div class="b_c50l"> <div class="col-md-6">
<div class="b_subcl"> $r.render("details_general")
$r.render("details_general") $r.render("details_lifecycle")
$r.render("details_lifecycle") $r.render("details_rights")
$r.render("details_rights") $r.render("details_sharing")
$r.render("details_sharing")
</div>
</div> </div>
<div class="b_c50r"> <div class="col-md-6">
<div class="b_subcr"> $r.render("details_educational")
$r.render("details_educational") $r.render("details_question")
$r.render("details_question") $r.render("details_technical")
$r.render("details_technical")
</div>
</div> </div>
</div> </div>
......
...@@ -148,7 +148,7 @@ ...@@ -148,7 +148,7 @@
<bean class="org.olat.core.extensions.action.GenericActionExtension" name="personal.tool.ep" init-method="initExtensionPoints" > <bean class="org.olat.core.extensions.action.GenericActionExtension" name="personal.tool.ep" init-method="initExtensionPoints" >
<property name="order" value="301" /> <property name="order" value="301" />
<property name="navigationKey" value="Portfolio" /> <property name="navigationKey" value="Portfolio" />
<property name="iconCssClass" value="b_with_small_icon_left o_ep_icon" /> <property name="iconCssClass" value="o_icon o_icon-fw o_ep_icon" />
<property name="actionController"> <property name="actionController">
<bean class="org.olat.core.gui.control.creator.AutoCreator" scope="prototype"> <bean class="org.olat.core.gui.control.creator.AutoCreator" scope="prototype">
<property name="className" value="org.olat.portfolio.ui.EPOverviewController"/> <property name="className" value="org.olat.portfolio.ui.EPOverviewController"/>
......
...@@ -71,6 +71,7 @@ import org.olat.core.util.Util; ...@@ -71,6 +71,7 @@ import org.olat.core.util.Util;
import org.olat.core.util.resource.OresHelper; import org.olat.core.util.resource.OresHelper;
import org.olat.repository.RepositoryEntry; import org.olat.repository.RepositoryEntry;
import org.olat.repository.RepositoryEntryAuthorView; import org.olat.repository.RepositoryEntryAuthorView;
import org.olat.repository.RepositoryEntryMyView;
import org.olat.repository.RepositoryEntryRef; import org.olat.repository.RepositoryEntryRef;
import org.olat.repository.RepositoryManager; import org.olat.repository.RepositoryManager;
import org.olat.repository.RepositoryService; import org.olat.repository.RepositoryService;
...@@ -79,6 +80,7 @@ import org.olat.repository.handlers.RepositoryHandlerFactory; ...@@ -79,6 +80,7 @@ import org.olat.repository.handlers.RepositoryHandlerFactory;
import org.olat.repository.model.SearchAuthorRepositoryEntryViewParams; import org.olat.repository.model.SearchAuthorRepositoryEntryViewParams;
import org.olat.repository.model.TransientRepositoryEntryRef; import org.olat.repository.model.TransientRepositoryEntryRef;
import org.olat.repository.ui.author.AuthoringEntryDataModel.Cols; import org.olat.repository.ui.author.AuthoringEntryDataModel.Cols;
import org.olat.repository.ui.list.RepositoryEntryRow;
import org.olat.util.logging.activity.LoggingResourceable; import org.olat.util.logging.activity.LoggingResourceable;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
...@@ -382,13 +384,12 @@ public class AuthorListController extends FormBasicController implements Activat ...@@ -382,13 +384,12 @@ public class AuthorListController extends FormBasicController implements Activat
} }
private AuthoringEntryDetailsController doOpenDetails(UserRequest ureq, RepositoryEntryRef entry) { private AuthoringEntryDetailsController doOpenDetails(UserRequest ureq, RepositoryEntryRef entry) {
RepositoryEntryAuthorView view = repositoryService.loadAuthorView(getIdentity(), entry); RepositoryEntryMyView view = repositoryService.loadMyView(getIdentity(), entry);
String fullnameAuthor = ""; RepositoryEntryRow row = new RepositoryEntryRow(view);
AuthoringEntryRow row = new AuthoringEntryRow(view, fullnameAuthor);
return doOpenDetails(ureq, row); return doOpenDetails(ureq, row);
} }
private AuthoringEntryDetailsController doOpenDetails(UserRequest ureq, AuthoringEntryRow row) { private AuthoringEntryDetailsController doOpenDetails(UserRequest ureq, RepositoryEntryRow row) {
stackPanel.popUpToRootController(ureq); stackPanel.popUpToRootController(ureq);
removeAsListenerAndDispose(detailsCtrl); removeAsListenerAndDispose(detailsCtrl);
......
...@@ -37,7 +37,6 @@ import org.olat.core.gui.components.dropdown.Dropdown.Spacer; ...@@ -37,7 +37,6 @@ import org.olat.core.gui.components.dropdown.Dropdown.Spacer;
import org.olat.core.gui.components.form.flexible.FormItem; import org.olat.core.gui.components.form.flexible.FormItem;
import org.olat.core.gui.components.form.flexible.FormItemContainer; import org.olat.core.gui.components.form.flexible.FormItemContainer;
import org.olat.core.gui.components.form.flexible.elements.FormLink; import org.olat.core.gui.components.form.flexible.elements.FormLink;
import org.olat.core.gui.components.form.flexible.impl.FormBasicController;
import org.olat.core.gui.components.form.flexible.impl.FormEvent; import org.olat.core.gui.components.form.flexible.impl.FormEvent;
import org.olat.core.gui.components.form.flexible.impl.FormLayoutContainer; import org.olat.core.gui.components.form.flexible.impl.FormLayoutContainer;
import org.olat.core.gui.components.image.ImageComponent; import org.olat.core.gui.components.image.ImageComponent;
...@@ -61,7 +60,6 @@ import org.olat.core.id.context.StateEntry; ...@@ -61,7 +60,6 @@ import org.olat.core.id.context.StateEntry;
import org.olat.core.logging.OLATSecurityException; import org.olat.core.logging.OLATSecurityException;
import org.olat.core.util.Formatter; import org.olat.core.util.Formatter;
import org.olat.core.util.StringHelper; import org.olat.core.util.StringHelper;
import org.olat.core.util.Util;
import org.olat.core.util.coordinate.CoordinatorManager; import org.olat.core.util.coordinate.CoordinatorManager;
import org.olat.core.util.coordinate.LockResult; import org.olat.core.util.coordinate.LockResult;
import org.olat.core.util.filter.FilterFactory; import org.olat.core.util.filter.FilterFactory;
...@@ -86,6 +84,8 @@ import org.olat.repository.handlers.RepositoryHandler; ...@@ -86,6 +84,8 @@ import org.olat.repository.handlers.RepositoryHandler;
import org.olat.repository.handlers.RepositoryHandlerFactory; import org.olat.repository.handlers.RepositoryHandlerFactory;
import org.olat.repository.ui.PriceMethod; import org.olat.repository.ui.PriceMethod;
import org.olat.repository.ui.RepositoyUIFactory; import org.olat.repository.ui.RepositoyUIFactory;
import org.olat.repository.ui.list.RepositoryEntryDetailsController;
import org.olat.repository.ui.list.RepositoryEntryRow;
import org.olat.resource.OLATResource; import org.olat.resource.OLATResource;
import org.olat.resource.accesscontrol.ACService; import org.olat.resource.accesscontrol.ACService;
import org.olat.resource.accesscontrol.AccessControlModule; import org.olat.resource.accesscontrol.AccessControlModule;
...@@ -105,7 +105,7 @@ import org.springframework.beans.factory.annotation.Autowired; ...@@ -105,7 +105,7 @@ import org.springframework.beans.factory.annotation.Autowired;
* @author srosse, stephane.rosse@frentix.com, http://www.frentix.com * @author srosse, stephane.rosse@frentix.com, http://www.frentix.com
* *
*/ */
public class AuthoringEntryDetailsController extends FormBasicController implements Activateable2 { public class AuthoringEntryDetailsController extends RepositoryEntryDetailsController implements Activateable2 {
public static final OLATResourceable EDIT_SETTINGS_ORES = OresHelper.createOLATResourceableInstance("Settings", 0l); public static final OLATResourceable EDIT_SETTINGS_ORES = OresHelper.createOLATResourceableInstance("Settings", 0l);
...@@ -129,8 +129,6 @@ public class AuthoringEntryDetailsController extends FormBasicController impleme ...@@ -129,8 +129,6 @@ public class AuthoringEntryDetailsController extends FormBasicController impleme
private final TooledStackedPanel stackPanel; private final TooledStackedPanel stackPanel;
private boolean corrupted; private boolean corrupted;
private RepositoryEntry entry;
private final AuthoringEntryRow row;
@Autowired @Autowired
private ACService acService; private ACService acService;
...@@ -161,13 +159,9 @@ public class AuthoringEntryDetailsController extends FormBasicController impleme ...@@ -161,13 +159,9 @@ public class AuthoringEntryDetailsController extends FormBasicController impleme
private LockResult lockResult; private LockResult lockResult;
public AuthoringEntryDetailsController(UserRequest ureq, WindowControl wControl, public AuthoringEntryDetailsController(UserRequest ureq, WindowControl wControl,
TooledStackedPanel stackPanel, AuthoringEntryRow row) { TooledStackedPanel stackPanel, RepositoryEntryRow row) {
super(ureq, wControl, "details"); super(ureq, wControl, row);
setTranslator(Util.createPackageTranslator(RepositoryService.class, getLocale(), getTranslator()));
this.stackPanel = stackPanel; this.stackPanel = stackPanel;
this.row = row;
entry = repositoryService.loadByKey(row.getKey());
Identity identity = getIdentity(); Identity identity = getIdentity();
Roles roles = ureq.getUserSession().getRoles(); Roles roles = ureq.getUserSession().getRoles();
...@@ -182,7 +176,7 @@ public class AuthoringEntryDetailsController extends FormBasicController impleme ...@@ -182,7 +176,7 @@ public class AuthoringEntryDetailsController extends FormBasicController impleme
initForm(ureq); initForm(ureq);
if(stackPanel != null) { if(stackPanel != null) {
String displayName = row.getDisplayname(); String displayName = row.getDisplayName();
stackPanel.pushController(displayName, this); stackPanel.pushController(displayName, this);
initToolbar(ureq); initToolbar(ureq);
} }
...@@ -223,10 +217,12 @@ public class AuthoringEntryDetailsController extends FormBasicController impleme ...@@ -223,10 +217,12 @@ public class AuthoringEntryDetailsController extends FormBasicController impleme
if (isAuthor || isOwner) { if (isAuthor || isOwner) {
if (isOwner) { if (isOwner) {
editLink = LinkFactory.createToolLink("edit", translate("details.openeditor"), this, "o_sel_repo_edit_descritpion"); editLink = LinkFactory.createToolLink("edit", translate("details.openeditor"), this, "o_sel_repo_edit_descritpion");
editLink.setIconLeftCSS("o_icon o_icon_edit");
boolean editManaged = RepositoryEntryManagedFlag.isManaged(entry, RepositoryEntryManagedFlag.editcontent); boolean editManaged = RepositoryEntryManagedFlag.isManaged(entry, RepositoryEntryManagedFlag.editcontent);
editLink.setEnabled(handler.supportsEdit(entry) && !corrupted && !editManaged); editLink.setEnabled(handler.supportsEdit(entry) && !corrupted && !editManaged);
editSettingsLink = LinkFactory.createToolLink("editdesc", translate("details.chprop"), this, "o_sel_repor_edit_properties"); editSettingsLink = LinkFactory.createToolLink("editdesc", translate("details.chprop"), this, "o_sel_repor_edit_properties");
editSettingsLink.setIconLeftCSS("o_icon o_icon_settings");
editSettingsLink.setEnabled(!corrupted); editSettingsLink.setEnabled(!corrupted);
if(repositoryModule.isCatalogEnabled()) { if(repositoryModule.isCatalogEnabled()) {
...@@ -315,6 +311,7 @@ public class AuthoringEntryDetailsController extends FormBasicController impleme ...@@ -315,6 +311,7 @@ public class AuthoringEntryDetailsController extends FormBasicController impleme
@Override @Override
protected void initForm(FormItemContainer formLayout, Controller listener, UserRequest ureq) { protected void initForm(FormItemContainer formLayout, Controller listener, UserRequest ureq) {
super.initForm(formLayout, listener, ureq);
if(formLayout instanceof FormLayoutContainer) { if(formLayout instanceof FormLayoutContainer) {
FormLayoutContainer layoutCont = (FormLayoutContainer)formLayout; FormLayoutContainer layoutCont = (FormLayoutContainer)formLayout;
layoutCont.contextPut("v", entry); layoutCont.contextPut("v", entry);
......
<div class="f_metadata_details b_clearfix">
<div class="b_c38r">
#if($r.available("thumbnail"))
<div class="f_metadata_media">
$r.render("thumbnail")
</div>
#end
#if($v.lifecycle || $v.lifecycle.softKey || $row.lifecycle.start || $row.lifecycle.end)
<h5>$r.translate("cif.dates")</h5>
<div class="f_metadata_lifecycle">
#if($!v.lifecycle.private && $v.lifecycle.softKey) $v.lifecycle.softKey #end
#if($v.lifecycle.validFrom) $r.formatDateAndTime($v.lifecycle.validFrom) #end
#if($v.lifecycle.validTo) - $r.formatDateAndTime($v.lifecycle.validTo) #end
</div>
#end
#if($v.expenditureOfWork)
<div class="f_metadata_expenditure">
$r.translate("details.expenditureOfWork", $r.escapeHtml($v.expenditureOfWork))
</div>
#end
#if($v.mainLanguage)
<h5>$r.translate("cif.mainLanguage")</h5>
<p>$r.escapeHtml($v.mainLanguage)</p>
#end
#if($ac)
#foreach($ac_type in $ac)
#if($ac_type.price && $ac_type.price.length() > 0)
<span class='b_float_right b_with_small_icon_left $ac_type.type'>$ac_type.price</span>
#else
<span class='b_float_right b_small_icon $ac_type.type'></span>
#end
#end
#end
<div class="f_metadata_go">
$r.render("start")
</div>
#if($categories && $categories.size() > 0)
<h5>$r.translate("cif.categories")</h5>
<ul>
#foreach($category in $categories)
<li>$r.render($category)</li>
#end
</ul>
#end
#if($groups && $groups.size() > 0)
<h5>$r.translate("cif.groups")</h5>
<ul>
#foreach($group in $groups)
<li>$r.render($group)</li>
#end
</ul>
#end
</div>
<div class="b_c60r">
<h4 class="b_with_small_icon_left $cssClass">$r.escapeHtml($v.displayname)</h4>
#if($v.authors)
<h5>$r.translate("cif.authors")</h5>
<p>$r.escapeHtml($v.authors)</p>
#end
<div class="b_clearfix">$description</div>
#if($objectives)
<h5>$r.translate("cif.objectives")</h5>
<div class="b_clearfix">$objectives</div>
#end
#if($requirements)
<h5>$r.translate("cif.requirements")</h5>
<div class="b_clearfix">$requirements</div>
#end
#if($credits)
<h5>$r.translate("cif.credits")</h5>
<div class="b_clearfix">$credits</div>
#end
</div>
</div>
...@@ -94,8 +94,8 @@ public class RepositoryEntryDetailsController extends FormBasicController { ...@@ -94,8 +94,8 @@ public class RepositoryEntryDetailsController extends FormBasicController {
private CloseableModalController cmc; private CloseableModalController cmc;
private UserCommentsController commentsCtrl; private UserCommentsController commentsCtrl;
private final RepositoryEntry entry; protected RepositoryEntry entry;
private final RepositoryEntryRow row; protected RepositoryEntryRow row;
@Autowired @Autowired
private UserRatingsDAO userRatingsDao; private UserRatingsDAO userRatingsDao;
...@@ -119,7 +119,7 @@ public class RepositoryEntryDetailsController extends FormBasicController { ...@@ -119,7 +119,7 @@ public class RepositoryEntryDetailsController extends FormBasicController {
private String baseUrl; private String baseUrl;
public RepositoryEntryDetailsController(UserRequest ureq, WindowControl wControl, RepositoryEntryRow row) { public RepositoryEntryDetailsController(UserRequest ureq, WindowControl wControl, RepositoryEntryRow row) {
super(ureq, wControl, "details"); super(ureq, wControl, Util.getPackageVelocityRoot(RepositoryEntryDetailsController.class) + "/details.html");
setTranslator(Util.createPackageTranslator(RepositoryService.class, getLocale(), getTranslator())); setTranslator(Util.createPackageTranslator(RepositoryService.class, getLocale(), getTranslator()));
this.row = row; this.row = row;
......
...@@ -72,7 +72,7 @@ ...@@ -72,7 +72,7 @@
</bean> </bean>
</property> </property>
<property name="navigationKey" value="booking" /> <property name="navigationKey" value="booking" />
<property name="iconCssClass" value="b_with_small_icon_left b_order_icon" /> <property name="iconCssClass" value="" />
<property name="securityCallbackClassName" value="org.olat.core.extensions.security.UserOnlyExtensionSecurityCallback" /> <property name="securityCallbackClassName" value="org.olat.core.extensions.security.UserOnlyExtensionSecurityCallback" />
<property name="translationPackage" value="org.olat.home" /> <property name="translationPackage" value="org.olat.home" />
<property name="i18nActionKey" value="menu.orders"/> <property name="i18nActionKey" value="menu.orders"/>
......
...@@ -44,6 +44,7 @@ $fa-css-prefix: "o_icon" !default; ...@@ -44,6 +44,7 @@ $fa-css-prefix: "o_icon" !default;
.o_icon_filter {@extend .o_icon-filter;} .o_icon_filter {@extend .o_icon-filter;}
.o_icon_help { @extend .o_icon-question-circle; @extend .o_icon-lg; cursor: help;} .o_icon_help { @extend .o_icon-question-circle; @extend .o_icon-lg; cursor: help;}
.o_icon_impress { @extend .o_icon-info-circle; } .o_icon_impress { @extend .o_icon-info-circle; }
.o_icon_mail { @extend .o_icon-envelope-o; }
.o_icon_membersmanagement { @extend .o_icon-users;} .o_icon_membersmanagement { @extend .o_icon-users;}
.o_icon_message { @extend .o_icon-envelope;} .o_icon_message { @extend .o_icon-envelope;}
.o_icon_move{ @extend .o_icon-arrows;} .o_icon_move{ @extend .o_icon-arrows;}
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment