Index: lams_admin/web/WEB-INF/tags/StyledRating.tag =================================================================== diff -u -re8c858ae097ae8b7861ec6e70e490daec543e34e -r98ddb292326506f7ac611ce4f1a5835050916525 --- lams_admin/web/WEB-INF/tags/StyledRating.tag (.../StyledRating.tag) (revision e8c858ae097ae8b7861ec6e70e490daec543e34e) +++ lams_admin/web/WEB-INF/tags/StyledRating.tag (.../StyledRating.tag) (revision 98ddb292326506f7ac611ce4f1a5835050916525) @@ -1,487 +1,588 @@ -<% - /** - * StyledRating.tag - * Author: Andrey Balan - * Description: Shows the results of a styled rating. Does not allow for update. - */ - %> +<% + /** + * StyledRating.tag + * Author: Andrey Balan + * Description: Shows the results of a styled rating. Does not allow for update. + */ +%> <%@ tag body-content="scriptless" %> <%@ taglib uri="tags-core" prefix="c" %> <%@ taglib uri="tags-fmt" prefix="fmt" %> -<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %> +<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %> <%@ taglib uri="tags-lams" prefix="lams"%> <%@ taglib uri="tags-function" prefix="fn" %> <%@ attribute name="criteriaRatings" required="true" rtexprvalue="true" type="org.lamsfoundation.lams.rating.dto.StyledCriteriaRatingDTO" %> <%@ attribute name="showJustification" required="true" %> <%@ attribute name="alwaysShowAverage" required="true" %> +<%@ attribute name="rubricsPivotView" required="false" %> <%@ attribute name="rubricsInBetweenColumns" required="false" %> + + + -<%@ attribute name="currentUserDisplay" required="true" %> +<%@ attribute name="currentUserDisplay" required="true" %> - + - - - - - - - - - - - - - - - - - - - - - - -
- - - -
-   - - -
-
- - - - - - + - - - + + + - - - - - - - - - - + + + + + + + + + + + - - - - + +
- - - - + +
-   - -
- ${criteriaRatings.ratingCriteria.ratingCriteriaId}-${rating.itemId} -
- ${rating.userRating} -
- - - - - - ${userRating} - - -
- - ${rating.averageRating} - ${rating.numberOfVotes} - -
-
- -
+   + + +
- - - - - - - - - - - - - - - - - -
-
- ${criteriaRatings.ratingCriteria.ratingCriteriaId}-${rating.itemId} -
-
- - ${rating.averageRating} - ${rating.numberOfVotes} - -
-
-
-
-
-
- -
- - -   -
    - - -
  • - - - - - - : -   -    - - (${rating.userRating}) + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + + + + + +
    +   + +
    + ${criteriaRatings.ratingCriteria.ratingCriteriaId}-${rating.itemId} +
    + ${rating.userRating} +
    + + + + + + ${userRating} + + +
    + + ${rating.averageRating} + ${rating.numberOfVotes} + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + +
    +
    + ${criteriaRatings.ratingCriteria.ratingCriteriaId}-${rating.itemId} +
    +
    + + ${rating.averageRating} + ${rating.numberOfVotes} + +
    +
    +
    +
    +
    +
    + +
    + + +   +
      + + +
    • + + - + + + : +   +    + + (${rating.userRating}) + +
    • - - -
      -
    -
    + +
+
- -   -
    - - -
  • - - - - ${rating.averageRating} - - : -   -    - - (${rating.userRating}) + +   +
      + + +
    • + + - + ${rating.averageRating} + + : +   +    + + (${rating.userRating}) + +
    • - +
      +
    + +   +
    - -
- -   -
-
-
+
- + - <%-- Some styles for the table and results --%> - - - - - - - - <%-- Each answer column has the same length, all remaining space is taken by the question column --%> - - - - + .rubrics-user-panel .collapsable-icon-left a:after { + margin-top: 6px; + } + + .rubrics-table.standard-view tr:first-child { + background-color: initial !important; + } + + .rubrics-table.standard-view th { + font-style: normal; + font-weight: bold; + } + + .rubrics-table.standard-view td:first-child { + font-weight: bold; + } + + .rubrics-table.pivot-view td:not(:first-child) { + text-align: center; + } + + .rubrics-table.pivot-view th { + font-style: normal; + text-align: center; + } + + .column-header-span { + font-style: italic; + } + + .rubrics-table .rubrics-rating-cell { + border-top: none; + + } + .rubrics-table .rubrics-rating-cell .rubrics-rating-count { + text-align: right; + } + + .rubrics-table .rubrics-rating-cell .rubrics-rating-count > .badge { + color: gray; + background-color: white; + font-size: large; + } + + .rubrics-table .rubrics-rating-cell .rubrics-rating-learner { + margin-top: 10px; + } + + .rubrics-table .rubrics-description-cell { + border-bottom: none; + } + + + + + +
- (${columnStatus.count})  -
+ + <%-- Each answer column has the same length, all remaining space is taken by the question column --%> + + - - - - - - - - - - - <%-- These variables are for counting average rating for the given row --%> - - - - - <%-- Check if any other learner rated this learner for this column --%> - - - - - - - - + + + + + + + + + - - - <%-- Check if any other learner rated this learner for this 0.5 column --%> + + <%-- These variables are for counting average rating for the given row --%> + + + + + <%-- Check if any other learner rated this learner for this column --%> - + - - + + - - - - - <%-- Cell with average rating --%> - - - - - <%-- Calculate again because we need the same cell background colour --%> - - - - - - + + + <%-- Check if any other learner rated this learner for this 0.5 column --%> + - -
- -   -
-
+
+ + + +
- + + + + <%-- Cell with average rating --%> + - + + + <%-- Calculate again because we need the same cell background colour --%> - + - + + + <%-- Calculate again because we need the same cell background colour --%> + + + + + + - - - - - -
- (${columnStatus.count + 0.5})  + (${columnStatus.count}) 
- - 0}"> - bg-success - - " - > - + + + (${columnStatus.count + 0.5})  +
+ 0}"> - bg-success - - " - > - - - - - - - - - - - -
0}"> bg-success " - > - - - <%-- learners see just how many rates they got from other learners --%> -
- x ${rateCount} -
- - <%-- teachers see also who gave the rating --%> - + > + +
0}"> + bg-success + + " + > + + + + + - + + + + +
0}"> + bg-success + + " + > + + + <%-- learners see just how many rates they got from other learners --%> +
+ x ${rateCount} +
+ + <%-- teachers see also who gave the rating --%> + + + +
+ +   +
+
+
+
+
+
0}"> bg-success " - > - - - <%-- learners see just how many rates they got from other learners --%> -
- x ${rateCount} -
- - <%-- teachers see also who gave the rating --%> - - - -
- -   -
+ > + + + <%-- learners see just how many rates they got from other learners --%> +
+ x ${rateCount} +
+ + <%-- teachers see also who gave the rating --%> + + + +
+ +   +
+
+
-
-
+
+
-
- - - - - -
- <%-- It is sufficient to take user names and columns from the first row/criterion --%> - - - - -
- - - - + +
+ + + \ No newline at end of file Index: lams_central/web/WEB-INF/tags/StyledRating.tag =================================================================== diff -u -re8c858ae097ae8b7861ec6e70e490daec543e34e -r98ddb292326506f7ac611ce4f1a5835050916525 --- lams_central/web/WEB-INF/tags/StyledRating.tag (.../StyledRating.tag) (revision e8c858ae097ae8b7861ec6e70e490daec543e34e) +++ lams_central/web/WEB-INF/tags/StyledRating.tag (.../StyledRating.tag) (revision 98ddb292326506f7ac611ce4f1a5835050916525) @@ -1,487 +1,588 @@ -<% - /** - * StyledRating.tag - * Author: Andrey Balan - * Description: Shows the results of a styled rating. Does not allow for update. - */ - %> +<% + /** + * StyledRating.tag + * Author: Andrey Balan + * Description: Shows the results of a styled rating. Does not allow for update. + */ +%> <%@ tag body-content="scriptless" %> <%@ taglib uri="tags-core" prefix="c" %> <%@ taglib uri="tags-fmt" prefix="fmt" %> -<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %> +<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %> <%@ taglib uri="tags-lams" prefix="lams"%> <%@ taglib uri="tags-function" prefix="fn" %> <%@ attribute name="criteriaRatings" required="true" rtexprvalue="true" type="org.lamsfoundation.lams.rating.dto.StyledCriteriaRatingDTO" %> <%@ attribute name="showJustification" required="true" %> <%@ attribute name="alwaysShowAverage" required="true" %> +<%@ attribute name="rubricsPivotView" required="false" %> <%@ attribute name="rubricsInBetweenColumns" required="false" %> + + + -<%@ attribute name="currentUserDisplay" required="true" %> +<%@ attribute name="currentUserDisplay" required="true" %> - + - - - - - - - - - - - - - - - - - - - - - - -
- - - -
-   - - -
-
- - - - - - + - - - + + + - - - - - - - - - - + + + + + + + + + + + - - - - + +
- - - - + +
-   - -
- ${criteriaRatings.ratingCriteria.ratingCriteriaId}-${rating.itemId} -
- ${rating.userRating} -
- - - - - - ${userRating} - - -
- - ${rating.averageRating} - ${rating.numberOfVotes} - -
-
- -
+   + + +
- - - - - - - - - - - - - - - - - -
-
- ${criteriaRatings.ratingCriteria.ratingCriteriaId}-${rating.itemId} -
-
- - ${rating.averageRating} - ${rating.numberOfVotes} - -
-
-
-
-
-
- -
- - -   -
    - - -
  • - - - - - - : -   -    - - (${rating.userRating}) + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + + + + + +
    +   + +
    + ${criteriaRatings.ratingCriteria.ratingCriteriaId}-${rating.itemId} +
    + ${rating.userRating} +
    + + + + + + ${userRating} + + +
    + + ${rating.averageRating} + ${rating.numberOfVotes} + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + +
    +
    + ${criteriaRatings.ratingCriteria.ratingCriteriaId}-${rating.itemId} +
    +
    + + ${rating.averageRating} + ${rating.numberOfVotes} + +
    +
    +
    +
    +
    +
    + +
    + + +   +
      + + +
    • + + - + + + : +   +    + + (${rating.userRating}) + +
    • - - -
      -
    -
    + +
+
- -   -
    - - -
  • - - - - ${rating.averageRating} - - : -   -    - - (${rating.userRating}) + +   +
      + + +
    • + + - + ${rating.averageRating} + + : +   +    + + (${rating.userRating}) + +
    • - +
      +
    + +   +
    - -
- -   -
-
-
+
- + - <%-- Some styles for the table and results --%> - - - - - - - - <%-- Each answer column has the same length, all remaining space is taken by the question column --%> - - - - + .rubrics-user-panel .collapsable-icon-left a:after { + margin-top: 6px; + } + + .rubrics-table.standard-view tr:first-child { + background-color: initial !important; + } + + .rubrics-table.standard-view th { + font-style: normal; + font-weight: bold; + } + + .rubrics-table.standard-view td:first-child { + font-weight: bold; + } + + .rubrics-table.pivot-view td:not(:first-child) { + text-align: center; + } + + .rubrics-table.pivot-view th { + font-style: normal; + text-align: center; + } + + .column-header-span { + font-style: italic; + } + + .rubrics-table .rubrics-rating-cell { + border-top: none; + + } + .rubrics-table .rubrics-rating-cell .rubrics-rating-count { + text-align: right; + } + + .rubrics-table .rubrics-rating-cell .rubrics-rating-count > .badge { + color: gray; + background-color: white; + font-size: large; + } + + .rubrics-table .rubrics-rating-cell .rubrics-rating-learner { + margin-top: 10px; + } + + .rubrics-table .rubrics-description-cell { + border-bottom: none; + } + + + + + +
- (${columnStatus.count})  -
+ + <%-- Each answer column has the same length, all remaining space is taken by the question column --%> + + - - - - - - - - - - - <%-- These variables are for counting average rating for the given row --%> - - - - - <%-- Check if any other learner rated this learner for this column --%> - - - - - - - - + + + + + + + + + - - - <%-- Check if any other learner rated this learner for this 0.5 column --%> + + <%-- These variables are for counting average rating for the given row --%> + + + + + <%-- Check if any other learner rated this learner for this column --%> - + - - + + - - - - - <%-- Cell with average rating --%> - - - - - <%-- Calculate again because we need the same cell background colour --%> - - - - - - + + + <%-- Check if any other learner rated this learner for this 0.5 column --%> + - -
- -   -
-
+
+ + + +
- + + + + <%-- Cell with average rating --%> + - + + + <%-- Calculate again because we need the same cell background colour --%> - + - + + + <%-- Calculate again because we need the same cell background colour --%> + + + + + + - - - - - -
- (${columnStatus.count + 0.5})  + (${columnStatus.count}) 
- - 0}"> - bg-success - - " - > - + + + (${columnStatus.count + 0.5})  +
+ 0}"> - bg-success - - " - > - - - - - - - - - - - -
0}"> bg-success " - > - - - <%-- learners see just how many rates they got from other learners --%> -
- x ${rateCount} -
- - <%-- teachers see also who gave the rating --%> - + > + +
0}"> + bg-success + + " + > + + + + + - + + + + +
0}"> + bg-success + + " + > + + + <%-- learners see just how many rates they got from other learners --%> +
+ x ${rateCount} +
+ + <%-- teachers see also who gave the rating --%> + + + +
+ +   +
+
+
+
+
+
0}"> bg-success " - > - - - <%-- learners see just how many rates they got from other learners --%> -
- x ${rateCount} -
- - <%-- teachers see also who gave the rating --%> - - - -
- -   -
+ > + + + <%-- learners see just how many rates they got from other learners --%> +
+ x ${rateCount} +
+ + <%-- teachers see also who gave the rating --%> + + + +
+ +   +
+
+
-
-
+
+
-
- - - - - -
- <%-- It is sufficient to take user names and columns from the first row/criterion --%> - - - - -
- - - - + +
+ + + \ No newline at end of file Index: lams_gradebook/web/WEB-INF/tags/StyledRating.tag =================================================================== diff -u -re8c858ae097ae8b7861ec6e70e490daec543e34e -r98ddb292326506f7ac611ce4f1a5835050916525 --- lams_gradebook/web/WEB-INF/tags/StyledRating.tag (.../StyledRating.tag) (revision e8c858ae097ae8b7861ec6e70e490daec543e34e) +++ lams_gradebook/web/WEB-INF/tags/StyledRating.tag (.../StyledRating.tag) (revision 98ddb292326506f7ac611ce4f1a5835050916525) @@ -1,487 +1,588 @@ -<% - /** - * StyledRating.tag - * Author: Andrey Balan - * Description: Shows the results of a styled rating. Does not allow for update. - */ - %> +<% + /** + * StyledRating.tag + * Author: Andrey Balan + * Description: Shows the results of a styled rating. Does not allow for update. + */ +%> <%@ tag body-content="scriptless" %> <%@ taglib uri="tags-core" prefix="c" %> <%@ taglib uri="tags-fmt" prefix="fmt" %> -<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %> +<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %> <%@ taglib uri="tags-lams" prefix="lams"%> <%@ taglib uri="tags-function" prefix="fn" %> <%@ attribute name="criteriaRatings" required="true" rtexprvalue="true" type="org.lamsfoundation.lams.rating.dto.StyledCriteriaRatingDTO" %> <%@ attribute name="showJustification" required="true" %> <%@ attribute name="alwaysShowAverage" required="true" %> +<%@ attribute name="rubricsPivotView" required="false" %> <%@ attribute name="rubricsInBetweenColumns" required="false" %> + + + -<%@ attribute name="currentUserDisplay" required="true" %> +<%@ attribute name="currentUserDisplay" required="true" %> - + - - - - - - - - - - - - - - - - - - - - - - -
- - - -
-   - - -
-
- - - - - - + - - - + + + - - - - - - - - - - + + + + + + + + + + + - - - - + +
- - - - + +
-   - -
- ${criteriaRatings.ratingCriteria.ratingCriteriaId}-${rating.itemId} -
- ${rating.userRating} -
- - - - - - ${userRating} - - -
- - ${rating.averageRating} - ${rating.numberOfVotes} - -
-
- -
+   + + +
- - - - - - - - - - - - - - - - - -
-
- ${criteriaRatings.ratingCriteria.ratingCriteriaId}-${rating.itemId} -
-
- - ${rating.averageRating} - ${rating.numberOfVotes} - -
-
-
-
-
-
- -
- - -   -
    - - -
  • - - - - - - : -   -    - - (${rating.userRating}) + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + + + + + +
    +   + +
    + ${criteriaRatings.ratingCriteria.ratingCriteriaId}-${rating.itemId} +
    + ${rating.userRating} +
    + + + + + + ${userRating} + + +
    + + ${rating.averageRating} + ${rating.numberOfVotes} + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + +
    +
    + ${criteriaRatings.ratingCriteria.ratingCriteriaId}-${rating.itemId} +
    +
    + + ${rating.averageRating} + ${rating.numberOfVotes} + +
    +
    +
    +
    +
    +
    + +
    + + +   +
      + + +
    • + + - + + + : +   +    + + (${rating.userRating}) + +
    • - - -
      -
    -
    + +
+
- -   -
    - - -
  • - - - - ${rating.averageRating} - - : -   -    - - (${rating.userRating}) + +   +
      + + +
    • + + - + ${rating.averageRating} + + : +   +    + + (${rating.userRating}) + +
    • - +
      +
    + +   +
    - -
- -   -
-
-
+
- + - <%-- Some styles for the table and results --%> - - - - - - - - <%-- Each answer column has the same length, all remaining space is taken by the question column --%> - - - - + .rubrics-user-panel .collapsable-icon-left a:after { + margin-top: 6px; + } + + .rubrics-table.standard-view tr:first-child { + background-color: initial !important; + } + + .rubrics-table.standard-view th { + font-style: normal; + font-weight: bold; + } + + .rubrics-table.standard-view td:first-child { + font-weight: bold; + } + + .rubrics-table.pivot-view td:not(:first-child) { + text-align: center; + } + + .rubrics-table.pivot-view th { + font-style: normal; + text-align: center; + } + + .column-header-span { + font-style: italic; + } + + .rubrics-table .rubrics-rating-cell { + border-top: none; + + } + .rubrics-table .rubrics-rating-cell .rubrics-rating-count { + text-align: right; + } + + .rubrics-table .rubrics-rating-cell .rubrics-rating-count > .badge { + color: gray; + background-color: white; + font-size: large; + } + + .rubrics-table .rubrics-rating-cell .rubrics-rating-learner { + margin-top: 10px; + } + + .rubrics-table .rubrics-description-cell { + border-bottom: none; + } + + + + + +
- (${columnStatus.count})  -
+ + <%-- Each answer column has the same length, all remaining space is taken by the question column --%> + + - - - - - - - - - - - <%-- These variables are for counting average rating for the given row --%> - - - - - <%-- Check if any other learner rated this learner for this column --%> - - - - - - - - + + + + + + + + + - - - <%-- Check if any other learner rated this learner for this 0.5 column --%> + + <%-- These variables are for counting average rating for the given row --%> + + + + + <%-- Check if any other learner rated this learner for this column --%> - + - - + + - - - - - <%-- Cell with average rating --%> - - - - - <%-- Calculate again because we need the same cell background colour --%> - - - - - - + + + <%-- Check if any other learner rated this learner for this 0.5 column --%> + - -
- -   -
-
+
+ + + +
- + + + + <%-- Cell with average rating --%> + - + + + <%-- Calculate again because we need the same cell background colour --%> - + - + + + <%-- Calculate again because we need the same cell background colour --%> + + + + + + - - - - - -
- (${columnStatus.count + 0.5})  + (${columnStatus.count}) 
- - 0}"> - bg-success - - " - > - + + + (${columnStatus.count + 0.5})  +
+ 0}"> - bg-success - - " - > - - - - - - - - - - - -
0}"> bg-success " - > - - - <%-- learners see just how many rates they got from other learners --%> -
- x ${rateCount} -
- - <%-- teachers see also who gave the rating --%> - + > + +
0}"> + bg-success + + " + > + + + + + - + + + + +
0}"> + bg-success + + " + > + + + <%-- learners see just how many rates they got from other learners --%> +
+ x ${rateCount} +
+ + <%-- teachers see also who gave the rating --%> + + + +
+ +   +
+
+
+
+
+
0}"> bg-success " - > - - - <%-- learners see just how many rates they got from other learners --%> -
- x ${rateCount} -
- - <%-- teachers see also who gave the rating --%> - - - -
- -   -
+ > + + + <%-- learners see just how many rates they got from other learners --%> +
+ x ${rateCount} +
+ + <%-- teachers see also who gave the rating --%> + + + +
+ +   +
+
+
-
-
+
+
-
- - - - - -
- <%-- It is sufficient to take user names and columns from the first row/criterion --%> - - - - -
- - - - + +
+ + + \ No newline at end of file Index: lams_learning/web/WEB-INF/tags/StyledRating.tag =================================================================== diff -u -re8c858ae097ae8b7861ec6e70e490daec543e34e -r98ddb292326506f7ac611ce4f1a5835050916525 --- lams_learning/web/WEB-INF/tags/StyledRating.tag (.../StyledRating.tag) (revision e8c858ae097ae8b7861ec6e70e490daec543e34e) +++ lams_learning/web/WEB-INF/tags/StyledRating.tag (.../StyledRating.tag) (revision 98ddb292326506f7ac611ce4f1a5835050916525) @@ -1,487 +1,588 @@ -<% - /** - * StyledRating.tag - * Author: Andrey Balan - * Description: Shows the results of a styled rating. Does not allow for update. - */ - %> +<% + /** + * StyledRating.tag + * Author: Andrey Balan + * Description: Shows the results of a styled rating. Does not allow for update. + */ +%> <%@ tag body-content="scriptless" %> <%@ taglib uri="tags-core" prefix="c" %> <%@ taglib uri="tags-fmt" prefix="fmt" %> -<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %> +<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %> <%@ taglib uri="tags-lams" prefix="lams"%> <%@ taglib uri="tags-function" prefix="fn" %> <%@ attribute name="criteriaRatings" required="true" rtexprvalue="true" type="org.lamsfoundation.lams.rating.dto.StyledCriteriaRatingDTO" %> <%@ attribute name="showJustification" required="true" %> <%@ attribute name="alwaysShowAverage" required="true" %> +<%@ attribute name="rubricsPivotView" required="false" %> <%@ attribute name="rubricsInBetweenColumns" required="false" %> + + + -<%@ attribute name="currentUserDisplay" required="true" %> +<%@ attribute name="currentUserDisplay" required="true" %> - + - - - - - - - - - - - - - - - - - - - - - - -
- - - -
-   - - -
-
- - - - - - + - - - + + + - - - - - - - - - - + + + + + + + + + + + - - - - + +
- - - - + +
-   - -
- ${criteriaRatings.ratingCriteria.ratingCriteriaId}-${rating.itemId} -
- ${rating.userRating} -
- - - - - - ${userRating} - - -
- - ${rating.averageRating} - ${rating.numberOfVotes} - -
-
- -
+   + + +
- - - - - - - - - - - - - - - - - -
-
- ${criteriaRatings.ratingCriteria.ratingCriteriaId}-${rating.itemId} -
-
- - ${rating.averageRating} - ${rating.numberOfVotes} - -
-
-
-
-
-
- -
- - -   -
    - - -
  • - - - - - - : -   -    - - (${rating.userRating}) + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + + + + + +
    +   + +
    + ${criteriaRatings.ratingCriteria.ratingCriteriaId}-${rating.itemId} +
    + ${rating.userRating} +
    + + + + + + ${userRating} + + +
    + + ${rating.averageRating} + ${rating.numberOfVotes} + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + +
    +
    + ${criteriaRatings.ratingCriteria.ratingCriteriaId}-${rating.itemId} +
    +
    + + ${rating.averageRating} + ${rating.numberOfVotes} + +
    +
    +
    +
    +
    +
    + +
    + + +   +
      + + +
    • + + - + + + : +   +    + + (${rating.userRating}) + +
    • - - -
      -
    -
    + +
+
- -   -
    - - -
  • - - - - ${rating.averageRating} - - : -   -    - - (${rating.userRating}) + +   +
      + + +
    • + + - + ${rating.averageRating} + + : +   +    + + (${rating.userRating}) + +
    • - +
      +
    + +   +
    - -
- -   -
-
-
+
- + - <%-- Some styles for the table and results --%> - - - - - - - - <%-- Each answer column has the same length, all remaining space is taken by the question column --%> - - - - + .rubrics-user-panel .collapsable-icon-left a:after { + margin-top: 6px; + } + + .rubrics-table.standard-view tr:first-child { + background-color: initial !important; + } + + .rubrics-table.standard-view th { + font-style: normal; + font-weight: bold; + } + + .rubrics-table.standard-view td:first-child { + font-weight: bold; + } + + .rubrics-table.pivot-view td:not(:first-child) { + text-align: center; + } + + .rubrics-table.pivot-view th { + font-style: normal; + text-align: center; + } + + .column-header-span { + font-style: italic; + } + + .rubrics-table .rubrics-rating-cell { + border-top: none; + + } + .rubrics-table .rubrics-rating-cell .rubrics-rating-count { + text-align: right; + } + + .rubrics-table .rubrics-rating-cell .rubrics-rating-count > .badge { + color: gray; + background-color: white; + font-size: large; + } + + .rubrics-table .rubrics-rating-cell .rubrics-rating-learner { + margin-top: 10px; + } + + .rubrics-table .rubrics-description-cell { + border-bottom: none; + } + + + + + +
- (${columnStatus.count})  -
+ + <%-- Each answer column has the same length, all remaining space is taken by the question column --%> + + - - - - - - - - - - - <%-- These variables are for counting average rating for the given row --%> - - - - - <%-- Check if any other learner rated this learner for this column --%> - - - - - - - - + + + + + + + + + - - - <%-- Check if any other learner rated this learner for this 0.5 column --%> + + <%-- These variables are for counting average rating for the given row --%> + + + + + <%-- Check if any other learner rated this learner for this column --%> - + - - + + - - - - - <%-- Cell with average rating --%> - - - - - <%-- Calculate again because we need the same cell background colour --%> - - - - - - + + + <%-- Check if any other learner rated this learner for this 0.5 column --%> + - -
- -   -
-
+
+ + + +
- + + + + <%-- Cell with average rating --%> + - + + + <%-- Calculate again because we need the same cell background colour --%> - + - + + + <%-- Calculate again because we need the same cell background colour --%> + + + + + + - - - - - -
- (${columnStatus.count + 0.5})  + (${columnStatus.count}) 
- - 0}"> - bg-success - - " - > - + + + (${columnStatus.count + 0.5})  +
+ 0}"> - bg-success - - " - > - - - - - - - - - - - -
0}"> bg-success " - > - - - <%-- learners see just how many rates they got from other learners --%> -
- x ${rateCount} -
- - <%-- teachers see also who gave the rating --%> - + > + +
0}"> + bg-success + + " + > + + + + + - + + + + +
0}"> + bg-success + + " + > + + + <%-- learners see just how many rates they got from other learners --%> +
+ x ${rateCount} +
+ + <%-- teachers see also who gave the rating --%> + + + +
+ +   +
+
+
+
+
+
0}"> bg-success " - > - - - <%-- learners see just how many rates they got from other learners --%> -
- x ${rateCount} -
- - <%-- teachers see also who gave the rating --%> - - - -
- -   -
+ > + + + <%-- learners see just how many rates they got from other learners --%> +
+ x ${rateCount} +
+ + <%-- teachers see also who gave the rating --%> + + + +
+ +   +
+
+
-
-
+
+
-
- - - - - -
- <%-- It is sufficient to take user names and columns from the first row/criterion --%> - - - - -
- - - - + +
+ + + \ No newline at end of file Index: lams_monitoring/web/WEB-INF/tags/StyledRating.tag =================================================================== diff -u -re8c858ae097ae8b7861ec6e70e490daec543e34e -r98ddb292326506f7ac611ce4f1a5835050916525 --- lams_monitoring/web/WEB-INF/tags/StyledRating.tag (.../StyledRating.tag) (revision e8c858ae097ae8b7861ec6e70e490daec543e34e) +++ lams_monitoring/web/WEB-INF/tags/StyledRating.tag (.../StyledRating.tag) (revision 98ddb292326506f7ac611ce4f1a5835050916525) @@ -1,487 +1,588 @@ -<% - /** - * StyledRating.tag - * Author: Andrey Balan - * Description: Shows the results of a styled rating. Does not allow for update. - */ - %> +<% + /** + * StyledRating.tag + * Author: Andrey Balan + * Description: Shows the results of a styled rating. Does not allow for update. + */ +%> <%@ tag body-content="scriptless" %> <%@ taglib uri="tags-core" prefix="c" %> <%@ taglib uri="tags-fmt" prefix="fmt" %> -<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %> +<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %> <%@ taglib uri="tags-lams" prefix="lams"%> <%@ taglib uri="tags-function" prefix="fn" %> <%@ attribute name="criteriaRatings" required="true" rtexprvalue="true" type="org.lamsfoundation.lams.rating.dto.StyledCriteriaRatingDTO" %> <%@ attribute name="showJustification" required="true" %> <%@ attribute name="alwaysShowAverage" required="true" %> +<%@ attribute name="rubricsPivotView" required="false" %> <%@ attribute name="rubricsInBetweenColumns" required="false" %> + + + -<%@ attribute name="currentUserDisplay" required="true" %> +<%@ attribute name="currentUserDisplay" required="true" %> - + - - - - - - - - - - - - - - - - - - - - - - -
- - - -
-   - - -
-
- - - - - - + - - - + + + - - - - - - - - - - + + + + + + + + + + + - - - - + +
- - - - + +
-   - -
- ${criteriaRatings.ratingCriteria.ratingCriteriaId}-${rating.itemId} -
- ${rating.userRating} -
- - - - - - ${userRating} - - -
- - ${rating.averageRating} - ${rating.numberOfVotes} - -
-
- -
+   + + +
- - - - - - - - - - - - - - - - - -
-
- ${criteriaRatings.ratingCriteria.ratingCriteriaId}-${rating.itemId} -
-
- - ${rating.averageRating} - ${rating.numberOfVotes} - -
-
-
-
-
-
- -
- - -   -
    - - -
  • - - - - - - : -   -    - - (${rating.userRating}) + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + + + + + +
    +   + +
    + ${criteriaRatings.ratingCriteria.ratingCriteriaId}-${rating.itemId} +
    + ${rating.userRating} +
    + + + + + + ${userRating} + + +
    + + ${rating.averageRating} + ${rating.numberOfVotes} + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + +
    +
    + ${criteriaRatings.ratingCriteria.ratingCriteriaId}-${rating.itemId} +
    +
    + + ${rating.averageRating} + ${rating.numberOfVotes} + +
    +
    +
    +
    +
    +
    + +
    + + +   +
      + + +
    • + + - + + + : +   +    + + (${rating.userRating}) + +
    • - - -
      -
    -
    + +
+
- -   -
    - - -
  • - - - - ${rating.averageRating} - - : -   -    - - (${rating.userRating}) + +   +
      + + +
    • + + - + ${rating.averageRating} + + : +   +    + + (${rating.userRating}) + +
    • - +
      +
    + +   +
    - -
- -   -
-
-
+
- + - <%-- Some styles for the table and results --%> - - - - - - - - <%-- Each answer column has the same length, all remaining space is taken by the question column --%> - - - - + .rubrics-user-panel .collapsable-icon-left a:after { + margin-top: 6px; + } + + .rubrics-table.standard-view tr:first-child { + background-color: initial !important; + } + + .rubrics-table.standard-view th { + font-style: normal; + font-weight: bold; + } + + .rubrics-table.standard-view td:first-child { + font-weight: bold; + } + + .rubrics-table.pivot-view td:not(:first-child) { + text-align: center; + } + + .rubrics-table.pivot-view th { + font-style: normal; + text-align: center; + } + + .column-header-span { + font-style: italic; + } + + .rubrics-table .rubrics-rating-cell { + border-top: none; + + } + .rubrics-table .rubrics-rating-cell .rubrics-rating-count { + text-align: right; + } + + .rubrics-table .rubrics-rating-cell .rubrics-rating-count > .badge { + color: gray; + background-color: white; + font-size: large; + } + + .rubrics-table .rubrics-rating-cell .rubrics-rating-learner { + margin-top: 10px; + } + + .rubrics-table .rubrics-description-cell { + border-bottom: none; + } + + + + + +
- (${columnStatus.count})  -
+ + <%-- Each answer column has the same length, all remaining space is taken by the question column --%> + + - - - - - - - - - - - <%-- These variables are for counting average rating for the given row --%> - - - - - <%-- Check if any other learner rated this learner for this column --%> - - - - - - - - + + + + + + + + + - - - <%-- Check if any other learner rated this learner for this 0.5 column --%> + + <%-- These variables are for counting average rating for the given row --%> + + + + + <%-- Check if any other learner rated this learner for this column --%> - + - - + + - - - - - <%-- Cell with average rating --%> - - - - - <%-- Calculate again because we need the same cell background colour --%> - - - - - - + + + <%-- Check if any other learner rated this learner for this 0.5 column --%> + - -
- -   -
-
+
+ + + +
- + + + + <%-- Cell with average rating --%> + - + + + <%-- Calculate again because we need the same cell background colour --%> - + - + + + <%-- Calculate again because we need the same cell background colour --%> + + + + + + - - - - - -
- (${columnStatus.count + 0.5})  + (${columnStatus.count}) 
- - 0}"> - bg-success - - " - > - + + + (${columnStatus.count + 0.5})  +
+ 0}"> - bg-success - - " - > - - - - - - - - - - - -
0}"> bg-success " - > - - - <%-- learners see just how many rates they got from other learners --%> -
- x ${rateCount} -
- - <%-- teachers see also who gave the rating --%> - + > + +
0}"> + bg-success + + " + > + + + + + - + + + + +
0}"> + bg-success + + " + > + + + <%-- learners see just how many rates they got from other learners --%> +
+ x ${rateCount} +
+ + <%-- teachers see also who gave the rating --%> + + + +
+ +   +
+
+
+
+
+
0}"> bg-success " - > - - - <%-- learners see just how many rates they got from other learners --%> -
- x ${rateCount} -
- - <%-- teachers see also who gave the rating --%> - - - -
- -   -
+ > + + + <%-- learners see just how many rates they got from other learners --%> +
+ x ${rateCount} +
+ + <%-- teachers see also who gave the rating --%> + + + +
+ +   +
+
+
-
-
+
+
-
- - - - - -
- <%-- It is sufficient to take user names and columns from the first row/criterion --%> - - - - -
- - - - + +
+ + + \ No newline at end of file Index: lams_tool_assessment/web/WEB-INF/tags/StyledRating.tag =================================================================== diff -u -re8c858ae097ae8b7861ec6e70e490daec543e34e -r98ddb292326506f7ac611ce4f1a5835050916525 --- lams_tool_assessment/web/WEB-INF/tags/StyledRating.tag (.../StyledRating.tag) (revision e8c858ae097ae8b7861ec6e70e490daec543e34e) +++ lams_tool_assessment/web/WEB-INF/tags/StyledRating.tag (.../StyledRating.tag) (revision 98ddb292326506f7ac611ce4f1a5835050916525) @@ -1,487 +1,588 @@ -<% - /** - * StyledRating.tag - * Author: Andrey Balan - * Description: Shows the results of a styled rating. Does not allow for update. - */ - %> +<% + /** + * StyledRating.tag + * Author: Andrey Balan + * Description: Shows the results of a styled rating. Does not allow for update. + */ +%> <%@ tag body-content="scriptless" %> <%@ taglib uri="tags-core" prefix="c" %> <%@ taglib uri="tags-fmt" prefix="fmt" %> -<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %> +<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %> <%@ taglib uri="tags-lams" prefix="lams"%> <%@ taglib uri="tags-function" prefix="fn" %> <%@ attribute name="criteriaRatings" required="true" rtexprvalue="true" type="org.lamsfoundation.lams.rating.dto.StyledCriteriaRatingDTO" %> <%@ attribute name="showJustification" required="true" %> <%@ attribute name="alwaysShowAverage" required="true" %> +<%@ attribute name="rubricsPivotView" required="false" %> <%@ attribute name="rubricsInBetweenColumns" required="false" %> + + + -<%@ attribute name="currentUserDisplay" required="true" %> +<%@ attribute name="currentUserDisplay" required="true" %> - + - - - - - - - - - - - - - - - - - - - - - - -
- - - -
-   - - -
-
- - - - - - + - - - + + + - - - - - - - - - - + + + + + + + + + + + - - - - + +
- - - - + +
-   - -
- ${criteriaRatings.ratingCriteria.ratingCriteriaId}-${rating.itemId} -
- ${rating.userRating} -
- - - - - - ${userRating} - - -
- - ${rating.averageRating} - ${rating.numberOfVotes} - -
-
- -
+   + + +
- - - - - - - - - - - - - - - - - -
-
- ${criteriaRatings.ratingCriteria.ratingCriteriaId}-${rating.itemId} -
-
- - ${rating.averageRating} - ${rating.numberOfVotes} - -
-
-
-
-
-
- -
- - -   -
    - - -
  • - - - - - - : -   -    - - (${rating.userRating}) + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + + + + + +
    +   + +
    + ${criteriaRatings.ratingCriteria.ratingCriteriaId}-${rating.itemId} +
    + ${rating.userRating} +
    + + + + + + ${userRating} + + +
    + + ${rating.averageRating} + ${rating.numberOfVotes} + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + +
    +
    + ${criteriaRatings.ratingCriteria.ratingCriteriaId}-${rating.itemId} +
    +
    + + ${rating.averageRating} + ${rating.numberOfVotes} + +
    +
    +
    +
    +
    +
    + +
    + + +   +
      + + +
    • + + - + + + : +   +    + + (${rating.userRating}) + +
    • - - -
      -
    -
    + +
+
- -   -
    - - -
  • - - - - ${rating.averageRating} - - : -   -    - - (${rating.userRating}) + +   +
      + + +
    • + + - + ${rating.averageRating} + + : +   +    + + (${rating.userRating}) + +
    • - +
      +
    + +   +
    - -
- -   -
-
-
+
- + - <%-- Some styles for the table and results --%> - - - - - - - - <%-- Each answer column has the same length, all remaining space is taken by the question column --%> - - - - + .rubrics-user-panel .collapsable-icon-left a:after { + margin-top: 6px; + } + + .rubrics-table.standard-view tr:first-child { + background-color: initial !important; + } + + .rubrics-table.standard-view th { + font-style: normal; + font-weight: bold; + } + + .rubrics-table.standard-view td:first-child { + font-weight: bold; + } + + .rubrics-table.pivot-view td:not(:first-child) { + text-align: center; + } + + .rubrics-table.pivot-view th { + font-style: normal; + text-align: center; + } + + .column-header-span { + font-style: italic; + } + + .rubrics-table .rubrics-rating-cell { + border-top: none; + + } + .rubrics-table .rubrics-rating-cell .rubrics-rating-count { + text-align: right; + } + + .rubrics-table .rubrics-rating-cell .rubrics-rating-count > .badge { + color: gray; + background-color: white; + font-size: large; + } + + .rubrics-table .rubrics-rating-cell .rubrics-rating-learner { + margin-top: 10px; + } + + .rubrics-table .rubrics-description-cell { + border-bottom: none; + } + + + + + +
- (${columnStatus.count})  -
+ + <%-- Each answer column has the same length, all remaining space is taken by the question column --%> + + - - - - - - - - - - - <%-- These variables are for counting average rating for the given row --%> - - - - - <%-- Check if any other learner rated this learner for this column --%> - - - - - - - - + + + + + + + + + - - - <%-- Check if any other learner rated this learner for this 0.5 column --%> + + <%-- These variables are for counting average rating for the given row --%> + + + + + <%-- Check if any other learner rated this learner for this column --%> - + - - + + - - - - - <%-- Cell with average rating --%> - - - - - <%-- Calculate again because we need the same cell background colour --%> - - - - - - + + + <%-- Check if any other learner rated this learner for this 0.5 column --%> + - -
- -   -
-
+
+ + + +
- + + + + <%-- Cell with average rating --%> + - + + + <%-- Calculate again because we need the same cell background colour --%> - + - + + + <%-- Calculate again because we need the same cell background colour --%> + + + + + + - - - - - -
- (${columnStatus.count + 0.5})  + (${columnStatus.count}) 
- - 0}"> - bg-success - - " - > - + + + (${columnStatus.count + 0.5})  +
+ 0}"> - bg-success - - " - > - - - - - - - - - - - -
0}"> bg-success " - > - - - <%-- learners see just how many rates they got from other learners --%> -
- x ${rateCount} -
- - <%-- teachers see also who gave the rating --%> - + > + +
0}"> + bg-success + + " + > + + + + + - + + + + +
0}"> + bg-success + + " + > + + + <%-- learners see just how many rates they got from other learners --%> +
+ x ${rateCount} +
+ + <%-- teachers see also who gave the rating --%> + + + +
+ +   +
+
+
+
+
+
0}"> bg-success " - > - - - <%-- learners see just how many rates they got from other learners --%> -
- x ${rateCount} -
- - <%-- teachers see also who gave the rating --%> - - - -
- -   -
+ > + + + <%-- learners see just how many rates they got from other learners --%> +
+ x ${rateCount} +
+ + <%-- teachers see also who gave the rating --%> + + + +
+ +   +
+
+
-
-
+
+
-
- - - - - -
- <%-- It is sufficient to take user names and columns from the first row/criterion --%> - - - - -
- - - - + +
+ + + \ No newline at end of file Index: lams_tool_chat/web/WEB-INF/tags/StyledRating.tag =================================================================== diff -u -re8c858ae097ae8b7861ec6e70e490daec543e34e -r98ddb292326506f7ac611ce4f1a5835050916525 --- lams_tool_chat/web/WEB-INF/tags/StyledRating.tag (.../StyledRating.tag) (revision e8c858ae097ae8b7861ec6e70e490daec543e34e) +++ lams_tool_chat/web/WEB-INF/tags/StyledRating.tag (.../StyledRating.tag) (revision 98ddb292326506f7ac611ce4f1a5835050916525) @@ -1,487 +1,588 @@ -<% - /** - * StyledRating.tag - * Author: Andrey Balan - * Description: Shows the results of a styled rating. Does not allow for update. - */ - %> +<% + /** + * StyledRating.tag + * Author: Andrey Balan + * Description: Shows the results of a styled rating. Does not allow for update. + */ +%> <%@ tag body-content="scriptless" %> <%@ taglib uri="tags-core" prefix="c" %> <%@ taglib uri="tags-fmt" prefix="fmt" %> -<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %> +<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %> <%@ taglib uri="tags-lams" prefix="lams"%> <%@ taglib uri="tags-function" prefix="fn" %> <%@ attribute name="criteriaRatings" required="true" rtexprvalue="true" type="org.lamsfoundation.lams.rating.dto.StyledCriteriaRatingDTO" %> <%@ attribute name="showJustification" required="true" %> <%@ attribute name="alwaysShowAverage" required="true" %> +<%@ attribute name="rubricsPivotView" required="false" %> <%@ attribute name="rubricsInBetweenColumns" required="false" %> + + + -<%@ attribute name="currentUserDisplay" required="true" %> +<%@ attribute name="currentUserDisplay" required="true" %> - + - - - - - - - - - - - - - - - - - - - - - - -
- - - -
-   - - -
-
- - - - - - + - - - + + + - - - - - - - - - - + + + + + + + + + + + - - - - + +
- - - - + +
-   - -
- ${criteriaRatings.ratingCriteria.ratingCriteriaId}-${rating.itemId} -
- ${rating.userRating} -
- - - - - - ${userRating} - - -
- - ${rating.averageRating} - ${rating.numberOfVotes} - -
-
- -
+   + + +
- - - - - - - - - - - - - - - - - -
-
- ${criteriaRatings.ratingCriteria.ratingCriteriaId}-${rating.itemId} -
-
- - ${rating.averageRating} - ${rating.numberOfVotes} - -
-
-
-
-
-
- -
- - -   -
    - - -
  • - - - - - - : -   -    - - (${rating.userRating}) + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + + + + + +
    +   + +
    + ${criteriaRatings.ratingCriteria.ratingCriteriaId}-${rating.itemId} +
    + ${rating.userRating} +
    + + + + + + ${userRating} + + +
    + + ${rating.averageRating} + ${rating.numberOfVotes} + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + +
    +
    + ${criteriaRatings.ratingCriteria.ratingCriteriaId}-${rating.itemId} +
    +
    + + ${rating.averageRating} + ${rating.numberOfVotes} + +
    +
    +
    +
    +
    +
    + +
    + + +   +
      + + +
    • + + - + + + : +   +    + + (${rating.userRating}) + +
    • - - -
      -
    -
    + +
+
- -   -
    - - -
  • - - - - ${rating.averageRating} - - : -   -    - - (${rating.userRating}) + +   +
      + + +
    • + + - + ${rating.averageRating} + + : +   +    + + (${rating.userRating}) + +
    • - +
      +
    + +   +
    - -
- -   -
-
-
+
- + - <%-- Some styles for the table and results --%> - - - - - - - - <%-- Each answer column has the same length, all remaining space is taken by the question column --%> - - - - + .rubrics-user-panel .collapsable-icon-left a:after { + margin-top: 6px; + } + + .rubrics-table.standard-view tr:first-child { + background-color: initial !important; + } + + .rubrics-table.standard-view th { + font-style: normal; + font-weight: bold; + } + + .rubrics-table.standard-view td:first-child { + font-weight: bold; + } + + .rubrics-table.pivot-view td:not(:first-child) { + text-align: center; + } + + .rubrics-table.pivot-view th { + font-style: normal; + text-align: center; + } + + .column-header-span { + font-style: italic; + } + + .rubrics-table .rubrics-rating-cell { + border-top: none; + + } + .rubrics-table .rubrics-rating-cell .rubrics-rating-count { + text-align: right; + } + + .rubrics-table .rubrics-rating-cell .rubrics-rating-count > .badge { + color: gray; + background-color: white; + font-size: large; + } + + .rubrics-table .rubrics-rating-cell .rubrics-rating-learner { + margin-top: 10px; + } + + .rubrics-table .rubrics-description-cell { + border-bottom: none; + } + + + + + +
- (${columnStatus.count})  -
+ + <%-- Each answer column has the same length, all remaining space is taken by the question column --%> + + - - - - - - - - - - - <%-- These variables are for counting average rating for the given row --%> - - - - - <%-- Check if any other learner rated this learner for this column --%> - - - - - - - - + + + + + + + + + - - - <%-- Check if any other learner rated this learner for this 0.5 column --%> + + <%-- These variables are for counting average rating for the given row --%> + + + + + <%-- Check if any other learner rated this learner for this column --%> - + - - + + - - - - - <%-- Cell with average rating --%> - - - - - <%-- Calculate again because we need the same cell background colour --%> - - - - - - + + + <%-- Check if any other learner rated this learner for this 0.5 column --%> + - -
- -   -
-
+
+ + + +
- + + + + <%-- Cell with average rating --%> + - + + + <%-- Calculate again because we need the same cell background colour --%> - + - + + + <%-- Calculate again because we need the same cell background colour --%> + + + + + + - - - - - -
- (${columnStatus.count + 0.5})  + (${columnStatus.count}) 
- - 0}"> - bg-success - - " - > - + + + (${columnStatus.count + 0.5})  +
+ 0}"> - bg-success - - " - > - - - - - - - - - - - -
0}"> bg-success " - > - - - <%-- learners see just how many rates they got from other learners --%> -
- x ${rateCount} -
- - <%-- teachers see also who gave the rating --%> - + > + +
0}"> + bg-success + + " + > + + + + + - + + + + +
0}"> + bg-success + + " + > + + + <%-- learners see just how many rates they got from other learners --%> +
+ x ${rateCount} +
+ + <%-- teachers see also who gave the rating --%> + + + +
+ +   +
+
+
+
+
+
0}"> bg-success " - > - - - <%-- learners see just how many rates they got from other learners --%> -
- x ${rateCount} -
- - <%-- teachers see also who gave the rating --%> - - - -
- -   -
+ > + + + <%-- learners see just how many rates they got from other learners --%> +
+ x ${rateCount} +
+ + <%-- teachers see also who gave the rating --%> + + + +
+ +   +
+
+
-
-
+
+
-
- - - - - -
- <%-- It is sufficient to take user names and columns from the first row/criterion --%> - - - - -
- - - - + +
+ + + \ No newline at end of file Index: lams_tool_daco/web/WEB-INF/tags/StyledRating.tag =================================================================== diff -u -re8c858ae097ae8b7861ec6e70e490daec543e34e -r98ddb292326506f7ac611ce4f1a5835050916525 --- lams_tool_daco/web/WEB-INF/tags/StyledRating.tag (.../StyledRating.tag) (revision e8c858ae097ae8b7861ec6e70e490daec543e34e) +++ lams_tool_daco/web/WEB-INF/tags/StyledRating.tag (.../StyledRating.tag) (revision 98ddb292326506f7ac611ce4f1a5835050916525) @@ -1,487 +1,588 @@ -<% - /** - * StyledRating.tag - * Author: Andrey Balan - * Description: Shows the results of a styled rating. Does not allow for update. - */ - %> +<% + /** + * StyledRating.tag + * Author: Andrey Balan + * Description: Shows the results of a styled rating. Does not allow for update. + */ +%> <%@ tag body-content="scriptless" %> <%@ taglib uri="tags-core" prefix="c" %> <%@ taglib uri="tags-fmt" prefix="fmt" %> -<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %> +<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %> <%@ taglib uri="tags-lams" prefix="lams"%> <%@ taglib uri="tags-function" prefix="fn" %> <%@ attribute name="criteriaRatings" required="true" rtexprvalue="true" type="org.lamsfoundation.lams.rating.dto.StyledCriteriaRatingDTO" %> <%@ attribute name="showJustification" required="true" %> <%@ attribute name="alwaysShowAverage" required="true" %> +<%@ attribute name="rubricsPivotView" required="false" %> <%@ attribute name="rubricsInBetweenColumns" required="false" %> + + + -<%@ attribute name="currentUserDisplay" required="true" %> +<%@ attribute name="currentUserDisplay" required="true" %> - + - - - - - - - - - - - - - - - - - - - - - - -
- - - -
-   - - -
-
- - - - - - + - - - + + + - - - - - - - - - - + + + + + + + + + + + - - - - + +
- - - - + +
-   - -
- ${criteriaRatings.ratingCriteria.ratingCriteriaId}-${rating.itemId} -
- ${rating.userRating} -
- - - - - - ${userRating} - - -
- - ${rating.averageRating} - ${rating.numberOfVotes} - -
-
- -
+   + + +
- - - - - - - - - - - - - - - - - -
-
- ${criteriaRatings.ratingCriteria.ratingCriteriaId}-${rating.itemId} -
-
- - ${rating.averageRating} - ${rating.numberOfVotes} - -
-
-
-
-
-
- -
- - -   -
    - - -
  • - - - - - - : -   -    - - (${rating.userRating}) + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + + + + + +
    +   + +
    + ${criteriaRatings.ratingCriteria.ratingCriteriaId}-${rating.itemId} +
    + ${rating.userRating} +
    + + + + + + ${userRating} + + +
    + + ${rating.averageRating} + ${rating.numberOfVotes} + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + +
    +
    + ${criteriaRatings.ratingCriteria.ratingCriteriaId}-${rating.itemId} +
    +
    + + ${rating.averageRating} + ${rating.numberOfVotes} + +
    +
    +
    +
    +
    +
    + +
    + + +   +
      + + +
    • + + - + + + : +   +    + + (${rating.userRating}) + +
    • - - -
      -
    -
    + +
+
- -   -
    - - -
  • - - - - ${rating.averageRating} - - : -   -    - - (${rating.userRating}) + +   +
      + + +
    • + + - + ${rating.averageRating} + + : +   +    + + (${rating.userRating}) + +
    • - +
      +
    + +   +
    - -
- -   -
-
-
+
- + - <%-- Some styles for the table and results --%> - - - - - - - - <%-- Each answer column has the same length, all remaining space is taken by the question column --%> - - - - + .rubrics-user-panel .collapsable-icon-left a:after { + margin-top: 6px; + } + + .rubrics-table.standard-view tr:first-child { + background-color: initial !important; + } + + .rubrics-table.standard-view th { + font-style: normal; + font-weight: bold; + } + + .rubrics-table.standard-view td:first-child { + font-weight: bold; + } + + .rubrics-table.pivot-view td:not(:first-child) { + text-align: center; + } + + .rubrics-table.pivot-view th { + font-style: normal; + text-align: center; + } + + .column-header-span { + font-style: italic; + } + + .rubrics-table .rubrics-rating-cell { + border-top: none; + + } + .rubrics-table .rubrics-rating-cell .rubrics-rating-count { + text-align: right; + } + + .rubrics-table .rubrics-rating-cell .rubrics-rating-count > .badge { + color: gray; + background-color: white; + font-size: large; + } + + .rubrics-table .rubrics-rating-cell .rubrics-rating-learner { + margin-top: 10px; + } + + .rubrics-table .rubrics-description-cell { + border-bottom: none; + } + + + + + +
- (${columnStatus.count})  -
+ + <%-- Each answer column has the same length, all remaining space is taken by the question column --%> + + - - - - - - - - - - - <%-- These variables are for counting average rating for the given row --%> - - - - - <%-- Check if any other learner rated this learner for this column --%> - - - - - - - - + + + + + + + + + - - - <%-- Check if any other learner rated this learner for this 0.5 column --%> + + <%-- These variables are for counting average rating for the given row --%> + + + + + <%-- Check if any other learner rated this learner for this column --%> - + - - + + - - - - - <%-- Cell with average rating --%> - - - - - <%-- Calculate again because we need the same cell background colour --%> - - - - - - + + + <%-- Check if any other learner rated this learner for this 0.5 column --%> + - -
- -   -
-
+
+ + + +
- + + + + <%-- Cell with average rating --%> + - + + + <%-- Calculate again because we need the same cell background colour --%> - + - + + + <%-- Calculate again because we need the same cell background colour --%> + + + + + + - - - - - -
- (${columnStatus.count + 0.5})  + (${columnStatus.count}) 
- - 0}"> - bg-success - - " - > - + + + (${columnStatus.count + 0.5})  +
+ 0}"> - bg-success - - " - > - - - - - - - - - - - -
0}"> bg-success " - > - - - <%-- learners see just how many rates they got from other learners --%> -
- x ${rateCount} -
- - <%-- teachers see also who gave the rating --%> - + > + +
0}"> + bg-success + + " + > + + + + + - + + + + +
0}"> + bg-success + + " + > + + + <%-- learners see just how many rates they got from other learners --%> +
+ x ${rateCount} +
+ + <%-- teachers see also who gave the rating --%> + + + +
+ +   +
+
+
+
+
+
0}"> bg-success " - > - - - <%-- learners see just how many rates they got from other learners --%> -
- x ${rateCount} -
- - <%-- teachers see also who gave the rating --%> - - - -
- -   -
+ > + + + <%-- learners see just how many rates they got from other learners --%> +
+ x ${rateCount} +
+ + <%-- teachers see also who gave the rating --%> + + + +
+ +   +
+
+
-
-
+
+
-
- - - - - -
- <%-- It is sufficient to take user names and columns from the first row/criterion --%> - - - - -
- - - - + +
+ + + \ No newline at end of file Index: lams_tool_doku/web/WEB-INF/tags/StyledRating.tag =================================================================== diff -u -re8c858ae097ae8b7861ec6e70e490daec543e34e -r98ddb292326506f7ac611ce4f1a5835050916525 --- lams_tool_doku/web/WEB-INF/tags/StyledRating.tag (.../StyledRating.tag) (revision e8c858ae097ae8b7861ec6e70e490daec543e34e) +++ lams_tool_doku/web/WEB-INF/tags/StyledRating.tag (.../StyledRating.tag) (revision 98ddb292326506f7ac611ce4f1a5835050916525) @@ -1,487 +1,588 @@ -<% - /** - * StyledRating.tag - * Author: Andrey Balan - * Description: Shows the results of a styled rating. Does not allow for update. - */ - %> +<% + /** + * StyledRating.tag + * Author: Andrey Balan + * Description: Shows the results of a styled rating. Does not allow for update. + */ +%> <%@ tag body-content="scriptless" %> <%@ taglib uri="tags-core" prefix="c" %> <%@ taglib uri="tags-fmt" prefix="fmt" %> -<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %> +<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %> <%@ taglib uri="tags-lams" prefix="lams"%> <%@ taglib uri="tags-function" prefix="fn" %> <%@ attribute name="criteriaRatings" required="true" rtexprvalue="true" type="org.lamsfoundation.lams.rating.dto.StyledCriteriaRatingDTO" %> <%@ attribute name="showJustification" required="true" %> <%@ attribute name="alwaysShowAverage" required="true" %> +<%@ attribute name="rubricsPivotView" required="false" %> <%@ attribute name="rubricsInBetweenColumns" required="false" %> + + + -<%@ attribute name="currentUserDisplay" required="true" %> +<%@ attribute name="currentUserDisplay" required="true" %> - + - - - - - - - - - - - - - - - - - - - - - - -
- - - -
-   - - -
-
- - - - - - + - - - + + + - - - - - - - - - - + + + + + + + + + + + - - - - + +
- - - - + +
-   - -
- ${criteriaRatings.ratingCriteria.ratingCriteriaId}-${rating.itemId} -
- ${rating.userRating} -
- - - - - - ${userRating} - - -
- - ${rating.averageRating} - ${rating.numberOfVotes} - -
-
- -
+   + + +
- - - - - - - - - - - - - - - - - -
-
- ${criteriaRatings.ratingCriteria.ratingCriteriaId}-${rating.itemId} -
-
- - ${rating.averageRating} - ${rating.numberOfVotes} - -
-
-
-
-
-
- -
- - -   -
    - - -
  • - - - - - - : -   -    - - (${rating.userRating}) + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + + + + + +
    +   + +
    + ${criteriaRatings.ratingCriteria.ratingCriteriaId}-${rating.itemId} +
    + ${rating.userRating} +
    + + + + + + ${userRating} + + +
    + + ${rating.averageRating} + ${rating.numberOfVotes} + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + +
    +
    + ${criteriaRatings.ratingCriteria.ratingCriteriaId}-${rating.itemId} +
    +
    + + ${rating.averageRating} + ${rating.numberOfVotes} + +
    +
    +
    +
    +
    +
    + +
    + + +   +
      + + +
    • + + - + + + : +   +    + + (${rating.userRating}) + +
    • - - -
      -
    -
    + +
+
- -   -
    - - -
  • - - - - ${rating.averageRating} - - : -   -    - - (${rating.userRating}) + +   +
      + + +
    • + + - + ${rating.averageRating} + + : +   +    + + (${rating.userRating}) + +
    • - +
      +
    + +   +
    - -
- -   -
-
-
+
- + - <%-- Some styles for the table and results --%> - - - - - - - - <%-- Each answer column has the same length, all remaining space is taken by the question column --%> - - - - + .rubrics-user-panel .collapsable-icon-left a:after { + margin-top: 6px; + } + + .rubrics-table.standard-view tr:first-child { + background-color: initial !important; + } + + .rubrics-table.standard-view th { + font-style: normal; + font-weight: bold; + } + + .rubrics-table.standard-view td:first-child { + font-weight: bold; + } + + .rubrics-table.pivot-view td:not(:first-child) { + text-align: center; + } + + .rubrics-table.pivot-view th { + font-style: normal; + text-align: center; + } + + .column-header-span { + font-style: italic; + } + + .rubrics-table .rubrics-rating-cell { + border-top: none; + + } + .rubrics-table .rubrics-rating-cell .rubrics-rating-count { + text-align: right; + } + + .rubrics-table .rubrics-rating-cell .rubrics-rating-count > .badge { + color: gray; + background-color: white; + font-size: large; + } + + .rubrics-table .rubrics-rating-cell .rubrics-rating-learner { + margin-top: 10px; + } + + .rubrics-table .rubrics-description-cell { + border-bottom: none; + } + + + + + +
- (${columnStatus.count})  -
+ + <%-- Each answer column has the same length, all remaining space is taken by the question column --%> + + - - - - - - - - - - - <%-- These variables are for counting average rating for the given row --%> - - - - - <%-- Check if any other learner rated this learner for this column --%> - - - - - - - - + + + + + + + + + - - - <%-- Check if any other learner rated this learner for this 0.5 column --%> + + <%-- These variables are for counting average rating for the given row --%> + + + + + <%-- Check if any other learner rated this learner for this column --%> - + - - + + - - - - - <%-- Cell with average rating --%> - - - - - <%-- Calculate again because we need the same cell background colour --%> - - - - - - + + + <%-- Check if any other learner rated this learner for this 0.5 column --%> + - -
- -   -
-
+
+ + + +
- + + + + <%-- Cell with average rating --%> + - + + + <%-- Calculate again because we need the same cell background colour --%> - + - + + + <%-- Calculate again because we need the same cell background colour --%> + + + + + + - - - - - -
- (${columnStatus.count + 0.5})  + (${columnStatus.count}) 
- - 0}"> - bg-success - - " - > - + + + (${columnStatus.count + 0.5})  +
+ 0}"> - bg-success - - " - > - - - - - - - - - - - -
0}"> bg-success " - > - - - <%-- learners see just how many rates they got from other learners --%> -
- x ${rateCount} -
- - <%-- teachers see also who gave the rating --%> - + > + +
0}"> + bg-success + + " + > + + + + + - + + + + +
0}"> + bg-success + + " + > + + + <%-- learners see just how many rates they got from other learners --%> +
+ x ${rateCount} +
+ + <%-- teachers see also who gave the rating --%> + + + +
+ +   +
+
+
+
+
+
0}"> bg-success " - > - - - <%-- learners see just how many rates they got from other learners --%> -
- x ${rateCount} -
- - <%-- teachers see also who gave the rating --%> - - - -
- -   -
+ > + + + <%-- learners see just how many rates they got from other learners --%> +
+ x ${rateCount} +
+ + <%-- teachers see also who gave the rating --%> + + + +
+ +   +
+
+
-
-
+
+
-
- - - - - -
- <%-- It is sufficient to take user names and columns from the first row/criterion --%> - - - - -
- - - - + +
+ + + \ No newline at end of file Index: lams_tool_forum/web/WEB-INF/tags/StyledRating.tag =================================================================== diff -u -re8c858ae097ae8b7861ec6e70e490daec543e34e -r98ddb292326506f7ac611ce4f1a5835050916525 --- lams_tool_forum/web/WEB-INF/tags/StyledRating.tag (.../StyledRating.tag) (revision e8c858ae097ae8b7861ec6e70e490daec543e34e) +++ lams_tool_forum/web/WEB-INF/tags/StyledRating.tag (.../StyledRating.tag) (revision 98ddb292326506f7ac611ce4f1a5835050916525) @@ -1,487 +1,588 @@ -<% - /** - * StyledRating.tag - * Author: Andrey Balan - * Description: Shows the results of a styled rating. Does not allow for update. - */ - %> +<% + /** + * StyledRating.tag + * Author: Andrey Balan + * Description: Shows the results of a styled rating. Does not allow for update. + */ +%> <%@ tag body-content="scriptless" %> <%@ taglib uri="tags-core" prefix="c" %> <%@ taglib uri="tags-fmt" prefix="fmt" %> -<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %> +<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %> <%@ taglib uri="tags-lams" prefix="lams"%> <%@ taglib uri="tags-function" prefix="fn" %> <%@ attribute name="criteriaRatings" required="true" rtexprvalue="true" type="org.lamsfoundation.lams.rating.dto.StyledCriteriaRatingDTO" %> <%@ attribute name="showJustification" required="true" %> <%@ attribute name="alwaysShowAverage" required="true" %> +<%@ attribute name="rubricsPivotView" required="false" %> <%@ attribute name="rubricsInBetweenColumns" required="false" %> + + + -<%@ attribute name="currentUserDisplay" required="true" %> +<%@ attribute name="currentUserDisplay" required="true" %> - + - - - - - - - - - - - - - - - - - - - - - - -
- - - -
-   - - -
-
- - - - - - + - - - + + + - - - - - - - - - - + + + + + + + + + + + - - - - + +
- - - - + +
-   - -
- ${criteriaRatings.ratingCriteria.ratingCriteriaId}-${rating.itemId} -
- ${rating.userRating} -
- - - - - - ${userRating} - - -
- - ${rating.averageRating} - ${rating.numberOfVotes} - -
-
- -
+   + + +
- - - - - - - - - - - - - - - - - -
-
- ${criteriaRatings.ratingCriteria.ratingCriteriaId}-${rating.itemId} -
-
- - ${rating.averageRating} - ${rating.numberOfVotes} - -
-
-
-
-
-
- -
- - -   -
    - - -
  • - - - - - - : -   -    - - (${rating.userRating}) + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + + + + + +
    +   + +
    + ${criteriaRatings.ratingCriteria.ratingCriteriaId}-${rating.itemId} +
    + ${rating.userRating} +
    + + + + + + ${userRating} + + +
    + + ${rating.averageRating} + ${rating.numberOfVotes} + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + +
    +
    + ${criteriaRatings.ratingCriteria.ratingCriteriaId}-${rating.itemId} +
    +
    + + ${rating.averageRating} + ${rating.numberOfVotes} + +
    +
    +
    +
    +
    +
    + +
    + + +   +
      + + +
    • + + - + + + : +   +    + + (${rating.userRating}) + +
    • - - -
      -
    -
    + +
+
- -   -
    - - -
  • - - - - ${rating.averageRating} - - : -   -    - - (${rating.userRating}) + +   +
      + + +
    • + + - + ${rating.averageRating} + + : +   +    + + (${rating.userRating}) + +
    • - +
      +
    + +   +
    - -
- -   -
-
-
+
- + - <%-- Some styles for the table and results --%> - - - - - - - - <%-- Each answer column has the same length, all remaining space is taken by the question column --%> - - - - + .rubrics-user-panel .collapsable-icon-left a:after { + margin-top: 6px; + } + + .rubrics-table.standard-view tr:first-child { + background-color: initial !important; + } + + .rubrics-table.standard-view th { + font-style: normal; + font-weight: bold; + } + + .rubrics-table.standard-view td:first-child { + font-weight: bold; + } + + .rubrics-table.pivot-view td:not(:first-child) { + text-align: center; + } + + .rubrics-table.pivot-view th { + font-style: normal; + text-align: center; + } + + .column-header-span { + font-style: italic; + } + + .rubrics-table .rubrics-rating-cell { + border-top: none; + + } + .rubrics-table .rubrics-rating-cell .rubrics-rating-count { + text-align: right; + } + + .rubrics-table .rubrics-rating-cell .rubrics-rating-count > .badge { + color: gray; + background-color: white; + font-size: large; + } + + .rubrics-table .rubrics-rating-cell .rubrics-rating-learner { + margin-top: 10px; + } + + .rubrics-table .rubrics-description-cell { + border-bottom: none; + } + + + + + +
- (${columnStatus.count})  -
+ + <%-- Each answer column has the same length, all remaining space is taken by the question column --%> + + - - - - - - - - - - - <%-- These variables are for counting average rating for the given row --%> - - - - - <%-- Check if any other learner rated this learner for this column --%> - - - - - - - - + + + + + + + + + - - - <%-- Check if any other learner rated this learner for this 0.5 column --%> + + <%-- These variables are for counting average rating for the given row --%> + + + + + <%-- Check if any other learner rated this learner for this column --%> - + - - + + - - - - - <%-- Cell with average rating --%> - - - - - <%-- Calculate again because we need the same cell background colour --%> - - - - - - + + + <%-- Check if any other learner rated this learner for this 0.5 column --%> + - -
- -   -
-
+
+ + + +
- + + + + <%-- Cell with average rating --%> + - + + + <%-- Calculate again because we need the same cell background colour --%> - + - + + + <%-- Calculate again because we need the same cell background colour --%> + + + + + + - - - - - -
- (${columnStatus.count + 0.5})  + (${columnStatus.count}) 
- - 0}"> - bg-success - - " - > - + + + (${columnStatus.count + 0.5})  +
+ 0}"> - bg-success - - " - > - - - - - - - - - - - -
0}"> bg-success " - > - - - <%-- learners see just how many rates they got from other learners --%> -
- x ${rateCount} -
- - <%-- teachers see also who gave the rating --%> - + > + +
0}"> + bg-success + + " + > + + + + + - + + + + +
0}"> + bg-success + + " + > + + + <%-- learners see just how many rates they got from other learners --%> +
+ x ${rateCount} +
+ + <%-- teachers see also who gave the rating --%> + + + +
+ +   +
+
+
+
+
+
0}"> bg-success " - > - - - <%-- learners see just how many rates they got from other learners --%> -
- x ${rateCount} -
- - <%-- teachers see also who gave the rating --%> - - - -
- -   -
+ > + + + <%-- learners see just how many rates they got from other learners --%> +
+ x ${rateCount} +
+ + <%-- teachers see also who gave the rating --%> + + + +
+ +   +
+
+
-
-
+
+
-
- - - - - -
- <%-- It is sufficient to take user names and columns from the first row/criterion --%> - - - - -
- - - - + +
+ + + \ No newline at end of file Index: lams_tool_gmap/web/WEB-INF/tags/StyledRating.tag =================================================================== diff -u -re8c858ae097ae8b7861ec6e70e490daec543e34e -r98ddb292326506f7ac611ce4f1a5835050916525 --- lams_tool_gmap/web/WEB-INF/tags/StyledRating.tag (.../StyledRating.tag) (revision e8c858ae097ae8b7861ec6e70e490daec543e34e) +++ lams_tool_gmap/web/WEB-INF/tags/StyledRating.tag (.../StyledRating.tag) (revision 98ddb292326506f7ac611ce4f1a5835050916525) @@ -1,487 +1,588 @@ -<% - /** - * StyledRating.tag - * Author: Andrey Balan - * Description: Shows the results of a styled rating. Does not allow for update. - */ - %> +<% + /** + * StyledRating.tag + * Author: Andrey Balan + * Description: Shows the results of a styled rating. Does not allow for update. + */ +%> <%@ tag body-content="scriptless" %> <%@ taglib uri="tags-core" prefix="c" %> <%@ taglib uri="tags-fmt" prefix="fmt" %> -<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %> +<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %> <%@ taglib uri="tags-lams" prefix="lams"%> <%@ taglib uri="tags-function" prefix="fn" %> <%@ attribute name="criteriaRatings" required="true" rtexprvalue="true" type="org.lamsfoundation.lams.rating.dto.StyledCriteriaRatingDTO" %> <%@ attribute name="showJustification" required="true" %> <%@ attribute name="alwaysShowAverage" required="true" %> +<%@ attribute name="rubricsPivotView" required="false" %> <%@ attribute name="rubricsInBetweenColumns" required="false" %> + + + -<%@ attribute name="currentUserDisplay" required="true" %> +<%@ attribute name="currentUserDisplay" required="true" %> - + - - - - - - - - - - - - - - - - - - - - - - -
- - - -
-   - - -
-
- - - - - - + - - - + + + - - - - - - - - - - + + + + + + + + + + + - - - - + +
- - - - + +
-   - -
- ${criteriaRatings.ratingCriteria.ratingCriteriaId}-${rating.itemId} -
- ${rating.userRating} -
- - - - - - ${userRating} - - -
- - ${rating.averageRating} - ${rating.numberOfVotes} - -
-
- -
+   + + +
- - - - - - - - - - - - - - - - - -
-
- ${criteriaRatings.ratingCriteria.ratingCriteriaId}-${rating.itemId} -
-
- - ${rating.averageRating} - ${rating.numberOfVotes} - -
-
-
-
-
-
- -
- - -   -
    - - -
  • - - - - - - : -   -    - - (${rating.userRating}) + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + + + + + +
    +   + +
    + ${criteriaRatings.ratingCriteria.ratingCriteriaId}-${rating.itemId} +
    + ${rating.userRating} +
    + + + + + + ${userRating} + + +
    + + ${rating.averageRating} + ${rating.numberOfVotes} + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + +
    +
    + ${criteriaRatings.ratingCriteria.ratingCriteriaId}-${rating.itemId} +
    +
    + + ${rating.averageRating} + ${rating.numberOfVotes} + +
    +
    +
    +
    +
    +
    + +
    + + +   +
      + + +
    • + + - + + + : +   +    + + (${rating.userRating}) + +
    • - - -
      -
    -
    + +
+
- -   -
    - - -
  • - - - - ${rating.averageRating} - - : -   -    - - (${rating.userRating}) + +   +
      + + +
    • + + - + ${rating.averageRating} + + : +   +    + + (${rating.userRating}) + +
    • - +
      +
    + +   +
    - -
- -   -
-
-
+
- + - <%-- Some styles for the table and results --%> - - - - - - - - <%-- Each answer column has the same length, all remaining space is taken by the question column --%> - - - - + .rubrics-user-panel .collapsable-icon-left a:after { + margin-top: 6px; + } + + .rubrics-table.standard-view tr:first-child { + background-color: initial !important; + } + + .rubrics-table.standard-view th { + font-style: normal; + font-weight: bold; + } + + .rubrics-table.standard-view td:first-child { + font-weight: bold; + } + + .rubrics-table.pivot-view td:not(:first-child) { + text-align: center; + } + + .rubrics-table.pivot-view th { + font-style: normal; + text-align: center; + } + + .column-header-span { + font-style: italic; + } + + .rubrics-table .rubrics-rating-cell { + border-top: none; + + } + .rubrics-table .rubrics-rating-cell .rubrics-rating-count { + text-align: right; + } + + .rubrics-table .rubrics-rating-cell .rubrics-rating-count > .badge { + color: gray; + background-color: white; + font-size: large; + } + + .rubrics-table .rubrics-rating-cell .rubrics-rating-learner { + margin-top: 10px; + } + + .rubrics-table .rubrics-description-cell { + border-bottom: none; + } + + + + + +
- (${columnStatus.count})  -
+ + <%-- Each answer column has the same length, all remaining space is taken by the question column --%> + + - - - - - - - - - - - <%-- These variables are for counting average rating for the given row --%> - - - - - <%-- Check if any other learner rated this learner for this column --%> - - - - - - - - + + + + + + + + + - - - <%-- Check if any other learner rated this learner for this 0.5 column --%> + + <%-- These variables are for counting average rating for the given row --%> + + + + + <%-- Check if any other learner rated this learner for this column --%> - + - - + + - - - - - <%-- Cell with average rating --%> - - - - - <%-- Calculate again because we need the same cell background colour --%> - - - - - - + + + <%-- Check if any other learner rated this learner for this 0.5 column --%> + - -
- -   -
-
+
+ + + +
- + + + + <%-- Cell with average rating --%> + - + + + <%-- Calculate again because we need the same cell background colour --%> - + - + + + <%-- Calculate again because we need the same cell background colour --%> + + + + + + - - - - - -
- (${columnStatus.count + 0.5})  + (${columnStatus.count}) 
- - 0}"> - bg-success - - " - > - + + + (${columnStatus.count + 0.5})  +
+ 0}"> - bg-success - - " - > - - - - - - - - - - - -
0}"> bg-success " - > - - - <%-- learners see just how many rates they got from other learners --%> -
- x ${rateCount} -
- - <%-- teachers see also who gave the rating --%> - + > + +
0}"> + bg-success + + " + > + + + + + - + + + + +
0}"> + bg-success + + " + > + + + <%-- learners see just how many rates they got from other learners --%> +
+ x ${rateCount} +
+ + <%-- teachers see also who gave the rating --%> + + + +
+ +   +
+
+
+
+
+
0}"> bg-success " - > - - - <%-- learners see just how many rates they got from other learners --%> -
- x ${rateCount} -
- - <%-- teachers see also who gave the rating --%> - - - -
- -   -
+ > + + + <%-- learners see just how many rates they got from other learners --%> +
+ x ${rateCount} +
+ + <%-- teachers see also who gave the rating --%> + + + +
+ +   +
+
+
-
-
+
+
-
- - - - - -
- <%-- It is sufficient to take user names and columns from the first row/criterion --%> - - - - -
- - - - + +
+ + + \ No newline at end of file Index: lams_tool_images/web/WEB-INF/tags/StyledRating.tag =================================================================== diff -u -re8c858ae097ae8b7861ec6e70e490daec543e34e -r98ddb292326506f7ac611ce4f1a5835050916525 --- lams_tool_images/web/WEB-INF/tags/StyledRating.tag (.../StyledRating.tag) (revision e8c858ae097ae8b7861ec6e70e490daec543e34e) +++ lams_tool_images/web/WEB-INF/tags/StyledRating.tag (.../StyledRating.tag) (revision 98ddb292326506f7ac611ce4f1a5835050916525) @@ -1,487 +1,588 @@ -<% - /** - * StyledRating.tag - * Author: Andrey Balan - * Description: Shows the results of a styled rating. Does not allow for update. - */ - %> +<% + /** + * StyledRating.tag + * Author: Andrey Balan + * Description: Shows the results of a styled rating. Does not allow for update. + */ +%> <%@ tag body-content="scriptless" %> <%@ taglib uri="tags-core" prefix="c" %> <%@ taglib uri="tags-fmt" prefix="fmt" %> -<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %> +<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %> <%@ taglib uri="tags-lams" prefix="lams"%> <%@ taglib uri="tags-function" prefix="fn" %> <%@ attribute name="criteriaRatings" required="true" rtexprvalue="true" type="org.lamsfoundation.lams.rating.dto.StyledCriteriaRatingDTO" %> <%@ attribute name="showJustification" required="true" %> <%@ attribute name="alwaysShowAverage" required="true" %> +<%@ attribute name="rubricsPivotView" required="false" %> <%@ attribute name="rubricsInBetweenColumns" required="false" %> + + + -<%@ attribute name="currentUserDisplay" required="true" %> +<%@ attribute name="currentUserDisplay" required="true" %> - + - - - - - - - - - - - - - - - - - - - - - - -
- - - -
-   - - -
-
- - - - - - + - - - + + + - - - - - - - - - - + + + + + + + + + + + - - - - + +
- - - - + +
-   - -
- ${criteriaRatings.ratingCriteria.ratingCriteriaId}-${rating.itemId} -
- ${rating.userRating} -
- - - - - - ${userRating} - - -
- - ${rating.averageRating} - ${rating.numberOfVotes} - -
-
- -
+   + + +
- - - - - - - - - - - - - - - - - -
-
- ${criteriaRatings.ratingCriteria.ratingCriteriaId}-${rating.itemId} -
-
- - ${rating.averageRating} - ${rating.numberOfVotes} - -
-
-
-
-
-
- -
- - -   -
    - - -
  • - - - - - - : -   -    - - (${rating.userRating}) + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + + + + + +
    +   + +
    + ${criteriaRatings.ratingCriteria.ratingCriteriaId}-${rating.itemId} +
    + ${rating.userRating} +
    + + + + + + ${userRating} + + +
    + + ${rating.averageRating} + ${rating.numberOfVotes} + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + +
    +
    + ${criteriaRatings.ratingCriteria.ratingCriteriaId}-${rating.itemId} +
    +
    + + ${rating.averageRating} + ${rating.numberOfVotes} + +
    +
    +
    +
    +
    +
    + +
    + + +   +
      + + +
    • + + - + + + : +   +    + + (${rating.userRating}) + +
    • - - -
      -
    -
    + +
+
- -   -
    - - -
  • - - - - ${rating.averageRating} - - : -   -    - - (${rating.userRating}) + +   +
      + + +
    • + + - + ${rating.averageRating} + + : +   +    + + (${rating.userRating}) + +
    • - +
      +
    + +   +
    - -
- -   -
-
-
+
- + - <%-- Some styles for the table and results --%> - - - - - - - - <%-- Each answer column has the same length, all remaining space is taken by the question column --%> - - - - + .rubrics-user-panel .collapsable-icon-left a:after { + margin-top: 6px; + } + + .rubrics-table.standard-view tr:first-child { + background-color: initial !important; + } + + .rubrics-table.standard-view th { + font-style: normal; + font-weight: bold; + } + + .rubrics-table.standard-view td:first-child { + font-weight: bold; + } + + .rubrics-table.pivot-view td:not(:first-child) { + text-align: center; + } + + .rubrics-table.pivot-view th { + font-style: normal; + text-align: center; + } + + .column-header-span { + font-style: italic; + } + + .rubrics-table .rubrics-rating-cell { + border-top: none; + + } + .rubrics-table .rubrics-rating-cell .rubrics-rating-count { + text-align: right; + } + + .rubrics-table .rubrics-rating-cell .rubrics-rating-count > .badge { + color: gray; + background-color: white; + font-size: large; + } + + .rubrics-table .rubrics-rating-cell .rubrics-rating-learner { + margin-top: 10px; + } + + .rubrics-table .rubrics-description-cell { + border-bottom: none; + } + + + + + +
- (${columnStatus.count})  -
+ + <%-- Each answer column has the same length, all remaining space is taken by the question column --%> + + - - - - - - - - - - - <%-- These variables are for counting average rating for the given row --%> - - - - - <%-- Check if any other learner rated this learner for this column --%> - - - - - - - - + + + + + + + + + - - - <%-- Check if any other learner rated this learner for this 0.5 column --%> + + <%-- These variables are for counting average rating for the given row --%> + + + + + <%-- Check if any other learner rated this learner for this column --%> - + - - + + - - - - - <%-- Cell with average rating --%> - - - - - <%-- Calculate again because we need the same cell background colour --%> - - - - - - + + + <%-- Check if any other learner rated this learner for this 0.5 column --%> + - -
- -   -
-
+
+ + + +
- + + + + <%-- Cell with average rating --%> + - + + + <%-- Calculate again because we need the same cell background colour --%> - + - + + + <%-- Calculate again because we need the same cell background colour --%> + + + + + + - - - - - -
- (${columnStatus.count + 0.5})  + (${columnStatus.count}) 
- - 0}"> - bg-success - - " - > - + + + (${columnStatus.count + 0.5})  +
+ 0}"> - bg-success - - " - > - - - - - - - - - - - -
0}"> bg-success " - > - - - <%-- learners see just how many rates they got from other learners --%> -
- x ${rateCount} -
- - <%-- teachers see also who gave the rating --%> - + > + +
0}"> + bg-success + + " + > + + + + + - + + + + +
0}"> + bg-success + + " + > + + + <%-- learners see just how many rates they got from other learners --%> +
+ x ${rateCount} +
+ + <%-- teachers see also who gave the rating --%> + + + +
+ +   +
+
+
+
+
+
0}"> bg-success " - > - - - <%-- learners see just how many rates they got from other learners --%> -
- x ${rateCount} -
- - <%-- teachers see also who gave the rating --%> - - - -
- -   -
+ > + + + <%-- learners see just how many rates they got from other learners --%> +
+ x ${rateCount} +
+ + <%-- teachers see also who gave the rating --%> + + + +
+ +   +
+
+
-
-
+
+
-
- - - - - -
- <%-- It is sufficient to take user names and columns from the first row/criterion --%> - - - - -
- - - - + +
+ + + \ No newline at end of file Index: lams_tool_imscc/web/WEB-INF/tags/StyledRating.tag =================================================================== diff -u -re8c858ae097ae8b7861ec6e70e490daec543e34e -r98ddb292326506f7ac611ce4f1a5835050916525 --- lams_tool_imscc/web/WEB-INF/tags/StyledRating.tag (.../StyledRating.tag) (revision e8c858ae097ae8b7861ec6e70e490daec543e34e) +++ lams_tool_imscc/web/WEB-INF/tags/StyledRating.tag (.../StyledRating.tag) (revision 98ddb292326506f7ac611ce4f1a5835050916525) @@ -1,487 +1,588 @@ -<% - /** - * StyledRating.tag - * Author: Andrey Balan - * Description: Shows the results of a styled rating. Does not allow for update. - */ - %> +<% + /** + * StyledRating.tag + * Author: Andrey Balan + * Description: Shows the results of a styled rating. Does not allow for update. + */ +%> <%@ tag body-content="scriptless" %> <%@ taglib uri="tags-core" prefix="c" %> <%@ taglib uri="tags-fmt" prefix="fmt" %> -<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %> +<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %> <%@ taglib uri="tags-lams" prefix="lams"%> <%@ taglib uri="tags-function" prefix="fn" %> <%@ attribute name="criteriaRatings" required="true" rtexprvalue="true" type="org.lamsfoundation.lams.rating.dto.StyledCriteriaRatingDTO" %> <%@ attribute name="showJustification" required="true" %> <%@ attribute name="alwaysShowAverage" required="true" %> +<%@ attribute name="rubricsPivotView" required="false" %> <%@ attribute name="rubricsInBetweenColumns" required="false" %> + + + -<%@ attribute name="currentUserDisplay" required="true" %> +<%@ attribute name="currentUserDisplay" required="true" %> - + - - - - - - - - - - - - - - - - - - - - - - -
- - - -
-   - - -
-
- - - - - - + - - - + + + - - - - - - - - - - + + + + + + + + + + + - - - - + +
- - - - + +
-   - -
- ${criteriaRatings.ratingCriteria.ratingCriteriaId}-${rating.itemId} -
- ${rating.userRating} -
- - - - - - ${userRating} - - -
- - ${rating.averageRating} - ${rating.numberOfVotes} - -
-
- -
+   + + +
- - - - - - - - - - - - - - - - - -
-
- ${criteriaRatings.ratingCriteria.ratingCriteriaId}-${rating.itemId} -
-
- - ${rating.averageRating} - ${rating.numberOfVotes} - -
-
-
-
-
-
- -
- - -   -
    - - -
  • - - - - - - : -   -    - - (${rating.userRating}) + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + + + + + +
    +   + +
    + ${criteriaRatings.ratingCriteria.ratingCriteriaId}-${rating.itemId} +
    + ${rating.userRating} +
    + + + + + + ${userRating} + + +
    + + ${rating.averageRating} + ${rating.numberOfVotes} + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + +
    +
    + ${criteriaRatings.ratingCriteria.ratingCriteriaId}-${rating.itemId} +
    +
    + + ${rating.averageRating} + ${rating.numberOfVotes} + +
    +
    +
    +
    +
    +
    + +
    + + +   +
      + + +
    • + + - + + + : +   +    + + (${rating.userRating}) + +
    • - - -
      -
    -
    + +
+
- -   -
    - - -
  • - - - - ${rating.averageRating} - - : -   -    - - (${rating.userRating}) + +   +
      + + +
    • + + - + ${rating.averageRating} + + : +   +    + + (${rating.userRating}) + +
    • - +
      +
    + +   +
    - -
- -   -
-
-
+
- + - <%-- Some styles for the table and results --%> - - - - - - - - <%-- Each answer column has the same length, all remaining space is taken by the question column --%> - - - - + .rubrics-user-panel .collapsable-icon-left a:after { + margin-top: 6px; + } + + .rubrics-table.standard-view tr:first-child { + background-color: initial !important; + } + + .rubrics-table.standard-view th { + font-style: normal; + font-weight: bold; + } + + .rubrics-table.standard-view td:first-child { + font-weight: bold; + } + + .rubrics-table.pivot-view td:not(:first-child) { + text-align: center; + } + + .rubrics-table.pivot-view th { + font-style: normal; + text-align: center; + } + + .column-header-span { + font-style: italic; + } + + .rubrics-table .rubrics-rating-cell { + border-top: none; + + } + .rubrics-table .rubrics-rating-cell .rubrics-rating-count { + text-align: right; + } + + .rubrics-table .rubrics-rating-cell .rubrics-rating-count > .badge { + color: gray; + background-color: white; + font-size: large; + } + + .rubrics-table .rubrics-rating-cell .rubrics-rating-learner { + margin-top: 10px; + } + + .rubrics-table .rubrics-description-cell { + border-bottom: none; + } + + + + + +
- (${columnStatus.count})  -
+ + <%-- Each answer column has the same length, all remaining space is taken by the question column --%> + + - - - - - - - - - - - <%-- These variables are for counting average rating for the given row --%> - - - - - <%-- Check if any other learner rated this learner for this column --%> - - - - - - - - + + + + + + + + + - - - <%-- Check if any other learner rated this learner for this 0.5 column --%> + + <%-- These variables are for counting average rating for the given row --%> + + + + + <%-- Check if any other learner rated this learner for this column --%> - + - - + + - - - - - <%-- Cell with average rating --%> - - - - - <%-- Calculate again because we need the same cell background colour --%> - - - - - - + + + <%-- Check if any other learner rated this learner for this 0.5 column --%> + - -
- -   -
-
+
+ + + +
- + + + + <%-- Cell with average rating --%> + - + + + <%-- Calculate again because we need the same cell background colour --%> - + - + + + <%-- Calculate again because we need the same cell background colour --%> + + + + + + - - - - - -
- (${columnStatus.count + 0.5})  + (${columnStatus.count}) 
- - 0}"> - bg-success - - " - > - + + + (${columnStatus.count + 0.5})  +
+ 0}"> - bg-success - - " - > - - - - - - - - - - - -
0}"> bg-success " - > - - - <%-- learners see just how many rates they got from other learners --%> -
- x ${rateCount} -
- - <%-- teachers see also who gave the rating --%> - + > + +
0}"> + bg-success + + " + > + + + + + - + + + + +
0}"> + bg-success + + " + > + + + <%-- learners see just how many rates they got from other learners --%> +
+ x ${rateCount} +
+ + <%-- teachers see also who gave the rating --%> + + + +
+ +   +
+
+
+
+
+
0}"> bg-success " - > - - - <%-- learners see just how many rates they got from other learners --%> -
- x ${rateCount} -
- - <%-- teachers see also who gave the rating --%> - - - -
- -   -
+ > + + + <%-- learners see just how many rates they got from other learners --%> +
+ x ${rateCount} +
+ + <%-- teachers see also who gave the rating --%> + + + +
+ +   +
+
+
-
-
+
+
-
- - - - - -
- <%-- It is sufficient to take user names and columns from the first row/criterion --%> - - - - -
- - - - + +
+ + + \ No newline at end of file Index: lams_tool_lamc/web/WEB-INF/tags/StyledRating.tag =================================================================== diff -u -re8c858ae097ae8b7861ec6e70e490daec543e34e -r98ddb292326506f7ac611ce4f1a5835050916525 --- lams_tool_lamc/web/WEB-INF/tags/StyledRating.tag (.../StyledRating.tag) (revision e8c858ae097ae8b7861ec6e70e490daec543e34e) +++ lams_tool_lamc/web/WEB-INF/tags/StyledRating.tag (.../StyledRating.tag) (revision 98ddb292326506f7ac611ce4f1a5835050916525) @@ -1,487 +1,588 @@ -<% - /** - * StyledRating.tag - * Author: Andrey Balan - * Description: Shows the results of a styled rating. Does not allow for update. - */ - %> +<% + /** + * StyledRating.tag + * Author: Andrey Balan + * Description: Shows the results of a styled rating. Does not allow for update. + */ +%> <%@ tag body-content="scriptless" %> <%@ taglib uri="tags-core" prefix="c" %> <%@ taglib uri="tags-fmt" prefix="fmt" %> -<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %> +<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %> <%@ taglib uri="tags-lams" prefix="lams"%> <%@ taglib uri="tags-function" prefix="fn" %> <%@ attribute name="criteriaRatings" required="true" rtexprvalue="true" type="org.lamsfoundation.lams.rating.dto.StyledCriteriaRatingDTO" %> <%@ attribute name="showJustification" required="true" %> <%@ attribute name="alwaysShowAverage" required="true" %> +<%@ attribute name="rubricsPivotView" required="false" %> <%@ attribute name="rubricsInBetweenColumns" required="false" %> + + + -<%@ attribute name="currentUserDisplay" required="true" %> +<%@ attribute name="currentUserDisplay" required="true" %> - + - - - - - - - - - - - - - - - - - - - - - - -
- - - -
-   - - -
-
- - - - - - + - - - + + + - - - - - - - - - - + + + + + + + + + + + - - - - + +
- - - - + +
-   - -
- ${criteriaRatings.ratingCriteria.ratingCriteriaId}-${rating.itemId} -
- ${rating.userRating} -
- - - - - - ${userRating} - - -
- - ${rating.averageRating} - ${rating.numberOfVotes} - -
-
- -
+   + + +
- - - - - - - - - - - - - - - - - -
-
- ${criteriaRatings.ratingCriteria.ratingCriteriaId}-${rating.itemId} -
-
- - ${rating.averageRating} - ${rating.numberOfVotes} - -
-
-
-
-
-
- -
- - -   -
    - - -
  • - - - - - - : -   -    - - (${rating.userRating}) + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + + + + + +
    +   + +
    + ${criteriaRatings.ratingCriteria.ratingCriteriaId}-${rating.itemId} +
    + ${rating.userRating} +
    + + + + + + ${userRating} + + +
    + + ${rating.averageRating} + ${rating.numberOfVotes} + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + +
    +
    + ${criteriaRatings.ratingCriteria.ratingCriteriaId}-${rating.itemId} +
    +
    + + ${rating.averageRating} + ${rating.numberOfVotes} + +
    +
    +
    +
    +
    +
    + +
    + + +   +
      + + +
    • + + - + + + : +   +    + + (${rating.userRating}) + +
    • - - -
      -
    -
    + +
+
- -   -
    - - -
  • - - - - ${rating.averageRating} - - : -   -    - - (${rating.userRating}) + +   +
      + + +
    • + + - + ${rating.averageRating} + + : +   +    + + (${rating.userRating}) + +
    • - +
      +
    + +   +
    - -
- -   -
-
-
+
- + - <%-- Some styles for the table and results --%> - - - - - - - - <%-- Each answer column has the same length, all remaining space is taken by the question column --%> - - - - + .rubrics-user-panel .collapsable-icon-left a:after { + margin-top: 6px; + } + + .rubrics-table.standard-view tr:first-child { + background-color: initial !important; + } + + .rubrics-table.standard-view th { + font-style: normal; + font-weight: bold; + } + + .rubrics-table.standard-view td:first-child { + font-weight: bold; + } + + .rubrics-table.pivot-view td:not(:first-child) { + text-align: center; + } + + .rubrics-table.pivot-view th { + font-style: normal; + text-align: center; + } + + .column-header-span { + font-style: italic; + } + + .rubrics-table .rubrics-rating-cell { + border-top: none; + + } + .rubrics-table .rubrics-rating-cell .rubrics-rating-count { + text-align: right; + } + + .rubrics-table .rubrics-rating-cell .rubrics-rating-count > .badge { + color: gray; + background-color: white; + font-size: large; + } + + .rubrics-table .rubrics-rating-cell .rubrics-rating-learner { + margin-top: 10px; + } + + .rubrics-table .rubrics-description-cell { + border-bottom: none; + } + + + + + +
- (${columnStatus.count})  -
+ + <%-- Each answer column has the same length, all remaining space is taken by the question column --%> + + - - - - - - - - - - - <%-- These variables are for counting average rating for the given row --%> - - - - - <%-- Check if any other learner rated this learner for this column --%> - - - - - - - - + + + + + + + + + - - - <%-- Check if any other learner rated this learner for this 0.5 column --%> + + <%-- These variables are for counting average rating for the given row --%> + + + + + <%-- Check if any other learner rated this learner for this column --%> - + - - + + - - - - - <%-- Cell with average rating --%> - - - - - <%-- Calculate again because we need the same cell background colour --%> - - - - - - + + + <%-- Check if any other learner rated this learner for this 0.5 column --%> + - -
- -   -
-
+
+ + + +
- + + + + <%-- Cell with average rating --%> + - + + + <%-- Calculate again because we need the same cell background colour --%> - + - + + + <%-- Calculate again because we need the same cell background colour --%> + + + + + + - - - - - -
- (${columnStatus.count + 0.5})  + (${columnStatus.count}) 
- - 0}"> - bg-success - - " - > - + + + (${columnStatus.count + 0.5})  +
+ 0}"> - bg-success - - " - > - - - - - - - - - - - -
0}"> bg-success " - > - - - <%-- learners see just how many rates they got from other learners --%> -
- x ${rateCount} -
- - <%-- teachers see also who gave the rating --%> - + > + +
0}"> + bg-success + + " + > + + + + + - + + + + +
0}"> + bg-success + + " + > + + + <%-- learners see just how many rates they got from other learners --%> +
+ x ${rateCount} +
+ + <%-- teachers see also who gave the rating --%> + + + +
+ +   +
+
+
+
+
+
0}"> bg-success " - > - - - <%-- learners see just how many rates they got from other learners --%> -
- x ${rateCount} -
- - <%-- teachers see also who gave the rating --%> - - - -
- -   -
+ > + + + <%-- learners see just how many rates they got from other learners --%> +
+ x ${rateCount} +
+ + <%-- teachers see also who gave the rating --%> + + + +
+ +   +
+
+
-
-
+
+
-
- - - - - -
- <%-- It is sufficient to take user names and columns from the first row/criterion --%> - - - - -
- - - - + +
+ + + \ No newline at end of file Index: lams_tool_laqa/web/WEB-INF/tags/StyledRating.tag =================================================================== diff -u -re8c858ae097ae8b7861ec6e70e490daec543e34e -r98ddb292326506f7ac611ce4f1a5835050916525 --- lams_tool_laqa/web/WEB-INF/tags/StyledRating.tag (.../StyledRating.tag) (revision e8c858ae097ae8b7861ec6e70e490daec543e34e) +++ lams_tool_laqa/web/WEB-INF/tags/StyledRating.tag (.../StyledRating.tag) (revision 98ddb292326506f7ac611ce4f1a5835050916525) @@ -1,487 +1,588 @@ -<% - /** - * StyledRating.tag - * Author: Andrey Balan - * Description: Shows the results of a styled rating. Does not allow for update. - */ - %> +<% + /** + * StyledRating.tag + * Author: Andrey Balan + * Description: Shows the results of a styled rating. Does not allow for update. + */ +%> <%@ tag body-content="scriptless" %> <%@ taglib uri="tags-core" prefix="c" %> <%@ taglib uri="tags-fmt" prefix="fmt" %> -<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %> +<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %> <%@ taglib uri="tags-lams" prefix="lams"%> <%@ taglib uri="tags-function" prefix="fn" %> <%@ attribute name="criteriaRatings" required="true" rtexprvalue="true" type="org.lamsfoundation.lams.rating.dto.StyledCriteriaRatingDTO" %> <%@ attribute name="showJustification" required="true" %> <%@ attribute name="alwaysShowAverage" required="true" %> +<%@ attribute name="rubricsPivotView" required="false" %> <%@ attribute name="rubricsInBetweenColumns" required="false" %> + + + -<%@ attribute name="currentUserDisplay" required="true" %> +<%@ attribute name="currentUserDisplay" required="true" %> - + - - - - - - - - - - - - - - - - - - - - - - -
- - - -
-   - - -
-
- - - - - - + - - - + + + - - - - - - - - - - + + + + + + + + + + + - - - - + +
- - - - + +
-   - -
- ${criteriaRatings.ratingCriteria.ratingCriteriaId}-${rating.itemId} -
- ${rating.userRating} -
- - - - - - ${userRating} - - -
- - ${rating.averageRating} - ${rating.numberOfVotes} - -
-
- -
+   + + +
- - - - - - - - - - - - - - - - - -
-
- ${criteriaRatings.ratingCriteria.ratingCriteriaId}-${rating.itemId} -
-
- - ${rating.averageRating} - ${rating.numberOfVotes} - -
-
-
-
-
-
- -
- - -   -
    - - -
  • - - - - - - : -   -    - - (${rating.userRating}) + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + + + + + +
    +   + +
    + ${criteriaRatings.ratingCriteria.ratingCriteriaId}-${rating.itemId} +
    + ${rating.userRating} +
    + + + + + + ${userRating} + + +
    + + ${rating.averageRating} + ${rating.numberOfVotes} + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + +
    +
    + ${criteriaRatings.ratingCriteria.ratingCriteriaId}-${rating.itemId} +
    +
    + + ${rating.averageRating} + ${rating.numberOfVotes} + +
    +
    +
    +
    +
    +
    + +
    + + +   +
      + + +
    • + + - + + + : +   +    + + (${rating.userRating}) + +
    • - - -
      -
    -
    + +
+
- -   -
    - - -
  • - - - - ${rating.averageRating} - - : -   -    - - (${rating.userRating}) + +   +
      + + +
    • + + - + ${rating.averageRating} + + : +   +    + + (${rating.userRating}) + +
    • - +
      +
    + +   +
    - -
- -   -
-
-
+
- + - <%-- Some styles for the table and results --%> - - - - - - - - <%-- Each answer column has the same length, all remaining space is taken by the question column --%> - - - - + .rubrics-user-panel .collapsable-icon-left a:after { + margin-top: 6px; + } + + .rubrics-table.standard-view tr:first-child { + background-color: initial !important; + } + + .rubrics-table.standard-view th { + font-style: normal; + font-weight: bold; + } + + .rubrics-table.standard-view td:first-child { + font-weight: bold; + } + + .rubrics-table.pivot-view td:not(:first-child) { + text-align: center; + } + + .rubrics-table.pivot-view th { + font-style: normal; + text-align: center; + } + + .column-header-span { + font-style: italic; + } + + .rubrics-table .rubrics-rating-cell { + border-top: none; + + } + .rubrics-table .rubrics-rating-cell .rubrics-rating-count { + text-align: right; + } + + .rubrics-table .rubrics-rating-cell .rubrics-rating-count > .badge { + color: gray; + background-color: white; + font-size: large; + } + + .rubrics-table .rubrics-rating-cell .rubrics-rating-learner { + margin-top: 10px; + } + + .rubrics-table .rubrics-description-cell { + border-bottom: none; + } + + + + + +
- (${columnStatus.count})  -
+ + <%-- Each answer column has the same length, all remaining space is taken by the question column --%> + + - - - - - - - - - - - <%-- These variables are for counting average rating for the given row --%> - - - - - <%-- Check if any other learner rated this learner for this column --%> - - - - - - - - + + + + + + + + + - - - <%-- Check if any other learner rated this learner for this 0.5 column --%> + + <%-- These variables are for counting average rating for the given row --%> + + + + + <%-- Check if any other learner rated this learner for this column --%> - + - - + + - - - - - <%-- Cell with average rating --%> - - - - - <%-- Calculate again because we need the same cell background colour --%> - - - - - - + + + <%-- Check if any other learner rated this learner for this 0.5 column --%> + - -
- -   -
-
+
+ + + +
- + + + + <%-- Cell with average rating --%> + - + + + <%-- Calculate again because we need the same cell background colour --%> - + - + + + <%-- Calculate again because we need the same cell background colour --%> + + + + + + - - - - - -
- (${columnStatus.count + 0.5})  + (${columnStatus.count}) 
- - 0}"> - bg-success - - " - > - + + + (${columnStatus.count + 0.5})  +
+ 0}"> - bg-success - - " - > - - - - - - - - - - - -
0}"> bg-success " - > - - - <%-- learners see just how many rates they got from other learners --%> -
- x ${rateCount} -
- - <%-- teachers see also who gave the rating --%> - + > + +
0}"> + bg-success + + " + > + + + + + - + + + + +
0}"> + bg-success + + " + > + + + <%-- learners see just how many rates they got from other learners --%> +
+ x ${rateCount} +
+ + <%-- teachers see also who gave the rating --%> + + + +
+ +   +
+
+
+
+
+
0}"> bg-success " - > - - - <%-- learners see just how many rates they got from other learners --%> -
- x ${rateCount} -
- - <%-- teachers see also who gave the rating --%> - - - -
- -   -
+ > + + + <%-- learners see just how many rates they got from other learners --%> +
+ x ${rateCount} +
+ + <%-- teachers see also who gave the rating --%> + + + +
+ +   +
+
+
-
-
+
+
-
- - - - - -
- <%-- It is sufficient to take user names and columns from the first row/criterion --%> - - - - -
- - - - + +
+ + + \ No newline at end of file Index: lams_tool_larsrc/web/WEB-INF/tags/StyledRating.tag =================================================================== diff -u -re8c858ae097ae8b7861ec6e70e490daec543e34e -r98ddb292326506f7ac611ce4f1a5835050916525 --- lams_tool_larsrc/web/WEB-INF/tags/StyledRating.tag (.../StyledRating.tag) (revision e8c858ae097ae8b7861ec6e70e490daec543e34e) +++ lams_tool_larsrc/web/WEB-INF/tags/StyledRating.tag (.../StyledRating.tag) (revision 98ddb292326506f7ac611ce4f1a5835050916525) @@ -1,487 +1,588 @@ -<% - /** - * StyledRating.tag - * Author: Andrey Balan - * Description: Shows the results of a styled rating. Does not allow for update. - */ - %> +<% + /** + * StyledRating.tag + * Author: Andrey Balan + * Description: Shows the results of a styled rating. Does not allow for update. + */ +%> <%@ tag body-content="scriptless" %> <%@ taglib uri="tags-core" prefix="c" %> <%@ taglib uri="tags-fmt" prefix="fmt" %> -<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %> +<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %> <%@ taglib uri="tags-lams" prefix="lams"%> <%@ taglib uri="tags-function" prefix="fn" %> <%@ attribute name="criteriaRatings" required="true" rtexprvalue="true" type="org.lamsfoundation.lams.rating.dto.StyledCriteriaRatingDTO" %> <%@ attribute name="showJustification" required="true" %> <%@ attribute name="alwaysShowAverage" required="true" %> +<%@ attribute name="rubricsPivotView" required="false" %> <%@ attribute name="rubricsInBetweenColumns" required="false" %> + + + -<%@ attribute name="currentUserDisplay" required="true" %> +<%@ attribute name="currentUserDisplay" required="true" %> - + - - - - - - - - - - - - - - - - - - - - - - -
- - - -
-   - - -
-
- - - - - - + - - - + + + - - - - - - - - - - + + + + + + + + + + + - - - - + +
- - - - + +
-   - -
- ${criteriaRatings.ratingCriteria.ratingCriteriaId}-${rating.itemId} -
- ${rating.userRating} -
- - - - - - ${userRating} - - -
- - ${rating.averageRating} - ${rating.numberOfVotes} - -
-
- -
+   + + +
- - - - - - - - - - - - - - - - - -
-
- ${criteriaRatings.ratingCriteria.ratingCriteriaId}-${rating.itemId} -
-
- - ${rating.averageRating} - ${rating.numberOfVotes} - -
-
-
-
-
-
- -
- - -   -
    - - -
  • - - - - - - : -   -    - - (${rating.userRating}) + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + + + + + +
    +   + +
    + ${criteriaRatings.ratingCriteria.ratingCriteriaId}-${rating.itemId} +
    + ${rating.userRating} +
    + + + + + + ${userRating} + + +
    + + ${rating.averageRating} + ${rating.numberOfVotes} + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + +
    +
    + ${criteriaRatings.ratingCriteria.ratingCriteriaId}-${rating.itemId} +
    +
    + + ${rating.averageRating} + ${rating.numberOfVotes} + +
    +
    +
    +
    +
    +
    + +
    + + +   +
      + + +
    • + + - + + + : +   +    + + (${rating.userRating}) + +
    • - - -
      -
    -
    + +
+
- -   -
    - - -
  • - - - - ${rating.averageRating} - - : -   -    - - (${rating.userRating}) + +   +
      + + +
    • + + - + ${rating.averageRating} + + : +   +    + + (${rating.userRating}) + +
    • - +
      +
    + +   +
    - -
- -   -
-
-
+
- + - <%-- Some styles for the table and results --%> - - - - - - - - <%-- Each answer column has the same length, all remaining space is taken by the question column --%> - - - - + .rubrics-user-panel .collapsable-icon-left a:after { + margin-top: 6px; + } + + .rubrics-table.standard-view tr:first-child { + background-color: initial !important; + } + + .rubrics-table.standard-view th { + font-style: normal; + font-weight: bold; + } + + .rubrics-table.standard-view td:first-child { + font-weight: bold; + } + + .rubrics-table.pivot-view td:not(:first-child) { + text-align: center; + } + + .rubrics-table.pivot-view th { + font-style: normal; + text-align: center; + } + + .column-header-span { + font-style: italic; + } + + .rubrics-table .rubrics-rating-cell { + border-top: none; + + } + .rubrics-table .rubrics-rating-cell .rubrics-rating-count { + text-align: right; + } + + .rubrics-table .rubrics-rating-cell .rubrics-rating-count > .badge { + color: gray; + background-color: white; + font-size: large; + } + + .rubrics-table .rubrics-rating-cell .rubrics-rating-learner { + margin-top: 10px; + } + + .rubrics-table .rubrics-description-cell { + border-bottom: none; + } + + + + + +
- (${columnStatus.count})  -
+ + <%-- Each answer column has the same length, all remaining space is taken by the question column --%> + + - - - - - - - - - - - <%-- These variables are for counting average rating for the given row --%> - - - - - <%-- Check if any other learner rated this learner for this column --%> - - - - - - - - + + + + + + + + + - - - <%-- Check if any other learner rated this learner for this 0.5 column --%> + + <%-- These variables are for counting average rating for the given row --%> + + + + + <%-- Check if any other learner rated this learner for this column --%> - + - - + + - - - - - <%-- Cell with average rating --%> - - - - - <%-- Calculate again because we need the same cell background colour --%> - - - - - - + + + <%-- Check if any other learner rated this learner for this 0.5 column --%> + - -
- -   -
-
+
+ + + +
- + + + + <%-- Cell with average rating --%> + - + + + <%-- Calculate again because we need the same cell background colour --%> - + - + + + <%-- Calculate again because we need the same cell background colour --%> + + + + + + - - - - - -
- (${columnStatus.count + 0.5})  + (${columnStatus.count}) 
- - 0}"> - bg-success - - " - > - + + + (${columnStatus.count + 0.5})  +
+ 0}"> - bg-success - - " - > - - - - - - - - - - - -
0}"> bg-success " - > - - - <%-- learners see just how many rates they got from other learners --%> -
- x ${rateCount} -
- - <%-- teachers see also who gave the rating --%> - + > + +
0}"> + bg-success + + " + > + + + + + - + + + + +
0}"> + bg-success + + " + > + + + <%-- learners see just how many rates they got from other learners --%> +
+ x ${rateCount} +
+ + <%-- teachers see also who gave the rating --%> + + + +
+ +   +
+
+
+
+
+
0}"> bg-success " - > - - - <%-- learners see just how many rates they got from other learners --%> -
- x ${rateCount} -
- - <%-- teachers see also who gave the rating --%> - - - -
- -   -
+ > + + + <%-- learners see just how many rates they got from other learners --%> +
+ x ${rateCount} +
+ + <%-- teachers see also who gave the rating --%> + + + +
+ +   +
+
+
-
-
+
+
-
- - - - - -
- <%-- It is sufficient to take user names and columns from the first row/criterion --%> - - - - -
- - - - + +
+ + + \ No newline at end of file Index: lams_tool_leader/web/WEB-INF/tags/StyledRating.tag =================================================================== diff -u -re8c858ae097ae8b7861ec6e70e490daec543e34e -r98ddb292326506f7ac611ce4f1a5835050916525 --- lams_tool_leader/web/WEB-INF/tags/StyledRating.tag (.../StyledRating.tag) (revision e8c858ae097ae8b7861ec6e70e490daec543e34e) +++ lams_tool_leader/web/WEB-INF/tags/StyledRating.tag (.../StyledRating.tag) (revision 98ddb292326506f7ac611ce4f1a5835050916525) @@ -1,487 +1,588 @@ -<% - /** - * StyledRating.tag - * Author: Andrey Balan - * Description: Shows the results of a styled rating. Does not allow for update. - */ - %> +<% + /** + * StyledRating.tag + * Author: Andrey Balan + * Description: Shows the results of a styled rating. Does not allow for update. + */ +%> <%@ tag body-content="scriptless" %> <%@ taglib uri="tags-core" prefix="c" %> <%@ taglib uri="tags-fmt" prefix="fmt" %> -<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %> +<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %> <%@ taglib uri="tags-lams" prefix="lams"%> <%@ taglib uri="tags-function" prefix="fn" %> <%@ attribute name="criteriaRatings" required="true" rtexprvalue="true" type="org.lamsfoundation.lams.rating.dto.StyledCriteriaRatingDTO" %> <%@ attribute name="showJustification" required="true" %> <%@ attribute name="alwaysShowAverage" required="true" %> +<%@ attribute name="rubricsPivotView" required="false" %> <%@ attribute name="rubricsInBetweenColumns" required="false" %> + + + -<%@ attribute name="currentUserDisplay" required="true" %> +<%@ attribute name="currentUserDisplay" required="true" %> - + - - - - - - - - - - - - - - - - - - - - - - -
- - - -
-   - - -
-
- - - - - - + - - - + + + - - - - - - - - - - + + + + + + + + + + + - - - - + +
- - - - + +
-   - -
- ${criteriaRatings.ratingCriteria.ratingCriteriaId}-${rating.itemId} -
- ${rating.userRating} -
- - - - - - ${userRating} - - -
- - ${rating.averageRating} - ${rating.numberOfVotes} - -
-
- -
+   + + +
- - - - - - - - - - - - - - - - - -
-
- ${criteriaRatings.ratingCriteria.ratingCriteriaId}-${rating.itemId} -
-
- - ${rating.averageRating} - ${rating.numberOfVotes} - -
-
-
-
-
-
- -
- - -   -
    - - -
  • - - - - - - : -   -    - - (${rating.userRating}) + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + + + + + +
    +   + +
    + ${criteriaRatings.ratingCriteria.ratingCriteriaId}-${rating.itemId} +
    + ${rating.userRating} +
    + + + + + + ${userRating} + + +
    + + ${rating.averageRating} + ${rating.numberOfVotes} + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + +
    +
    + ${criteriaRatings.ratingCriteria.ratingCriteriaId}-${rating.itemId} +
    +
    + + ${rating.averageRating} + ${rating.numberOfVotes} + +
    +
    +
    +
    +
    +
    + +
    + + +   +
      + + +
    • + + - + + + : +   +    + + (${rating.userRating}) + +
    • - - -
      -
    -
    + +
+
- -   -
    - - -
  • - - - - ${rating.averageRating} - - : -   -    - - (${rating.userRating}) + +   +
      + + +
    • + + - + ${rating.averageRating} + + : +   +    + + (${rating.userRating}) + +
    • - +
      +
    + +   +
    - -
- -   -
-
-
+
- + - <%-- Some styles for the table and results --%> - - - - - - - - <%-- Each answer column has the same length, all remaining space is taken by the question column --%> - - - - + .rubrics-user-panel .collapsable-icon-left a:after { + margin-top: 6px; + } + + .rubrics-table.standard-view tr:first-child { + background-color: initial !important; + } + + .rubrics-table.standard-view th { + font-style: normal; + font-weight: bold; + } + + .rubrics-table.standard-view td:first-child { + font-weight: bold; + } + + .rubrics-table.pivot-view td:not(:first-child) { + text-align: center; + } + + .rubrics-table.pivot-view th { + font-style: normal; + text-align: center; + } + + .column-header-span { + font-style: italic; + } + + .rubrics-table .rubrics-rating-cell { + border-top: none; + + } + .rubrics-table .rubrics-rating-cell .rubrics-rating-count { + text-align: right; + } + + .rubrics-table .rubrics-rating-cell .rubrics-rating-count > .badge { + color: gray; + background-color: white; + font-size: large; + } + + .rubrics-table .rubrics-rating-cell .rubrics-rating-learner { + margin-top: 10px; + } + + .rubrics-table .rubrics-description-cell { + border-bottom: none; + } + + + + + +
- (${columnStatus.count})  -
+ + <%-- Each answer column has the same length, all remaining space is taken by the question column --%> + + - - - - - - - - - - - <%-- These variables are for counting average rating for the given row --%> - - - - - <%-- Check if any other learner rated this learner for this column --%> - - - - - - - - + + + + + + + + + - - - <%-- Check if any other learner rated this learner for this 0.5 column --%> + + <%-- These variables are for counting average rating for the given row --%> + + + + + <%-- Check if any other learner rated this learner for this column --%> - + - - + + - - - - - <%-- Cell with average rating --%> - - - - - <%-- Calculate again because we need the same cell background colour --%> - - - - - - + + + <%-- Check if any other learner rated this learner for this 0.5 column --%> + - -
- -   -
-
+
+ + + +
- + + + + <%-- Cell with average rating --%> + - + + + <%-- Calculate again because we need the same cell background colour --%> - + - + + + <%-- Calculate again because we need the same cell background colour --%> + + + + + + - - - - - -
- (${columnStatus.count + 0.5})  + (${columnStatus.count}) 
- - 0}"> - bg-success - - " - > - + + + (${columnStatus.count + 0.5})  +
+ 0}"> - bg-success - - " - > - - - - - - - - - - - -
0}"> bg-success " - > - - - <%-- learners see just how many rates they got from other learners --%> -
- x ${rateCount} -
- - <%-- teachers see also who gave the rating --%> - + > + +
0}"> + bg-success + + " + > + + + + + - + + + + +
0}"> + bg-success + + " + > + + + <%-- learners see just how many rates they got from other learners --%> +
+ x ${rateCount} +
+ + <%-- teachers see also who gave the rating --%> + + + +
+ +   +
+
+
+
+
+
0}"> bg-success " - > - - - <%-- learners see just how many rates they got from other learners --%> -
- x ${rateCount} -
- - <%-- teachers see also who gave the rating --%> - - - -
- -   -
+ > + + + <%-- learners see just how many rates they got from other learners --%> +
+ x ${rateCount} +
+ + <%-- teachers see also who gave the rating --%> + + + +
+ +   +
+
+
-
-
+
+
-
- - - - - -
- <%-- It is sufficient to take user names and columns from the first row/criterion --%> - - - - -
- - - - + +
+ + + \ No newline at end of file Index: lams_tool_mindmap/web/WEB-INF/tags/StyledRating.tag =================================================================== diff -u -re8c858ae097ae8b7861ec6e70e490daec543e34e -r98ddb292326506f7ac611ce4f1a5835050916525 --- lams_tool_mindmap/web/WEB-INF/tags/StyledRating.tag (.../StyledRating.tag) (revision e8c858ae097ae8b7861ec6e70e490daec543e34e) +++ lams_tool_mindmap/web/WEB-INF/tags/StyledRating.tag (.../StyledRating.tag) (revision 98ddb292326506f7ac611ce4f1a5835050916525) @@ -1,487 +1,588 @@ -<% - /** - * StyledRating.tag - * Author: Andrey Balan - * Description: Shows the results of a styled rating. Does not allow for update. - */ - %> +<% + /** + * StyledRating.tag + * Author: Andrey Balan + * Description: Shows the results of a styled rating. Does not allow for update. + */ +%> <%@ tag body-content="scriptless" %> <%@ taglib uri="tags-core" prefix="c" %> <%@ taglib uri="tags-fmt" prefix="fmt" %> -<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %> +<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %> <%@ taglib uri="tags-lams" prefix="lams"%> <%@ taglib uri="tags-function" prefix="fn" %> <%@ attribute name="criteriaRatings" required="true" rtexprvalue="true" type="org.lamsfoundation.lams.rating.dto.StyledCriteriaRatingDTO" %> <%@ attribute name="showJustification" required="true" %> <%@ attribute name="alwaysShowAverage" required="true" %> +<%@ attribute name="rubricsPivotView" required="false" %> <%@ attribute name="rubricsInBetweenColumns" required="false" %> + + + -<%@ attribute name="currentUserDisplay" required="true" %> +<%@ attribute name="currentUserDisplay" required="true" %> - + - - - - - - - - - - - - - - - - - - - - - - -
- - - -
-   - - -
-
- - - - - - + - - - + + + - - - - - - - - - - + + + + + + + + + + + - - - - + +
- - - - + +
-   - -
- ${criteriaRatings.ratingCriteria.ratingCriteriaId}-${rating.itemId} -
- ${rating.userRating} -
- - - - - - ${userRating} - - -
- - ${rating.averageRating} - ${rating.numberOfVotes} - -
-
- -
+   + + +
- - - - - - - - - - - - - - - - - -
-
- ${criteriaRatings.ratingCriteria.ratingCriteriaId}-${rating.itemId} -
-
- - ${rating.averageRating} - ${rating.numberOfVotes} - -
-
-
-
-
-
- -
- - -   -
    - - -
  • - - - - - - : -   -    - - (${rating.userRating}) + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + + + + + +
    +   + +
    + ${criteriaRatings.ratingCriteria.ratingCriteriaId}-${rating.itemId} +
    + ${rating.userRating} +
    + + + + + + ${userRating} + + +
    + + ${rating.averageRating} + ${rating.numberOfVotes} + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + +
    +
    + ${criteriaRatings.ratingCriteria.ratingCriteriaId}-${rating.itemId} +
    +
    + + ${rating.averageRating} + ${rating.numberOfVotes} + +
    +
    +
    +
    +
    +
    + +
    + + +   +
      + + +
    • + + - + + + : +   +    + + (${rating.userRating}) + +
    • - - -
      -
    -
    + +
+
- -   -
    - - -
  • - - - - ${rating.averageRating} - - : -   -    - - (${rating.userRating}) + +   +
      + + +
    • + + - + ${rating.averageRating} + + : +   +    + + (${rating.userRating}) + +
    • - +
      +
    + +   +
    - -
- -   -
-
-
+
- + - <%-- Some styles for the table and results --%> - - - - - - - - <%-- Each answer column has the same length, all remaining space is taken by the question column --%> - - - - + .rubrics-user-panel .collapsable-icon-left a:after { + margin-top: 6px; + } + + .rubrics-table.standard-view tr:first-child { + background-color: initial !important; + } + + .rubrics-table.standard-view th { + font-style: normal; + font-weight: bold; + } + + .rubrics-table.standard-view td:first-child { + font-weight: bold; + } + + .rubrics-table.pivot-view td:not(:first-child) { + text-align: center; + } + + .rubrics-table.pivot-view th { + font-style: normal; + text-align: center; + } + + .column-header-span { + font-style: italic; + } + + .rubrics-table .rubrics-rating-cell { + border-top: none; + + } + .rubrics-table .rubrics-rating-cell .rubrics-rating-count { + text-align: right; + } + + .rubrics-table .rubrics-rating-cell .rubrics-rating-count > .badge { + color: gray; + background-color: white; + font-size: large; + } + + .rubrics-table .rubrics-rating-cell .rubrics-rating-learner { + margin-top: 10px; + } + + .rubrics-table .rubrics-description-cell { + border-bottom: none; + } + + + + + +
- (${columnStatus.count})  -
+ + <%-- Each answer column has the same length, all remaining space is taken by the question column --%> + + - - - - - - - - - - - <%-- These variables are for counting average rating for the given row --%> - - - - - <%-- Check if any other learner rated this learner for this column --%> - - - - - - - - + + + + + + + + + - - - <%-- Check if any other learner rated this learner for this 0.5 column --%> + + <%-- These variables are for counting average rating for the given row --%> + + + + + <%-- Check if any other learner rated this learner for this column --%> - + - - + + - - - - - <%-- Cell with average rating --%> - - - - - <%-- Calculate again because we need the same cell background colour --%> - - - - - - + + + <%-- Check if any other learner rated this learner for this 0.5 column --%> + - -
- -   -
-
+
+ + + +
- + + + + <%-- Cell with average rating --%> + - + + + <%-- Calculate again because we need the same cell background colour --%> - + - + + + <%-- Calculate again because we need the same cell background colour --%> + + + + + + - - - - - -
- (${columnStatus.count + 0.5})  + (${columnStatus.count}) 
- - 0}"> - bg-success - - " - > - + + + (${columnStatus.count + 0.5})  +
+ 0}"> - bg-success - - " - > - - - - - - - - - - - -
0}"> bg-success " - > - - - <%-- learners see just how many rates they got from other learners --%> -
- x ${rateCount} -
- - <%-- teachers see also who gave the rating --%> - + > + +
0}"> + bg-success + + " + > + + + + + - + + + + +
0}"> + bg-success + + " + > + + + <%-- learners see just how many rates they got from other learners --%> +
+ x ${rateCount} +
+ + <%-- teachers see also who gave the rating --%> + + + +
+ +   +
+
+
+
+
+
0}"> bg-success " - > - - - <%-- learners see just how many rates they got from other learners --%> -
- x ${rateCount} -
- - <%-- teachers see also who gave the rating --%> - - - -
- -   -
+ > + + + <%-- learners see just how many rates they got from other learners --%> +
+ x ${rateCount} +
+ + <%-- teachers see also who gave the rating --%> + + + +
+ +   +
+
+
-
-
+
+
-
- - - - - -
- <%-- It is sufficient to take user names and columns from the first row/criterion --%> - - - - -
- - - - + +
+ + + \ No newline at end of file Index: lams_tool_nb/web/WEB-INF/tags/StyledRating.tag =================================================================== diff -u -re8c858ae097ae8b7861ec6e70e490daec543e34e -r98ddb292326506f7ac611ce4f1a5835050916525 --- lams_tool_nb/web/WEB-INF/tags/StyledRating.tag (.../StyledRating.tag) (revision e8c858ae097ae8b7861ec6e70e490daec543e34e) +++ lams_tool_nb/web/WEB-INF/tags/StyledRating.tag (.../StyledRating.tag) (revision 98ddb292326506f7ac611ce4f1a5835050916525) @@ -1,487 +1,588 @@ -<% - /** - * StyledRating.tag - * Author: Andrey Balan - * Description: Shows the results of a styled rating. Does not allow for update. - */ - %> +<% + /** + * StyledRating.tag + * Author: Andrey Balan + * Description: Shows the results of a styled rating. Does not allow for update. + */ +%> <%@ tag body-content="scriptless" %> <%@ taglib uri="tags-core" prefix="c" %> <%@ taglib uri="tags-fmt" prefix="fmt" %> -<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %> +<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %> <%@ taglib uri="tags-lams" prefix="lams"%> <%@ taglib uri="tags-function" prefix="fn" %> <%@ attribute name="criteriaRatings" required="true" rtexprvalue="true" type="org.lamsfoundation.lams.rating.dto.StyledCriteriaRatingDTO" %> <%@ attribute name="showJustification" required="true" %> <%@ attribute name="alwaysShowAverage" required="true" %> +<%@ attribute name="rubricsPivotView" required="false" %> <%@ attribute name="rubricsInBetweenColumns" required="false" %> + + + -<%@ attribute name="currentUserDisplay" required="true" %> +<%@ attribute name="currentUserDisplay" required="true" %> - + - - - - - - - - - - - - - - - - - - - - - - -
- - - -
-   - - -
-
- - - - - - + - - - + + + - - - - - - - - - - + + + + + + + + + + + - - - - + +
- - - - + +
-   - -
- ${criteriaRatings.ratingCriteria.ratingCriteriaId}-${rating.itemId} -
- ${rating.userRating} -
- - - - - - ${userRating} - - -
- - ${rating.averageRating} - ${rating.numberOfVotes} - -
-
- -
+   + + +
- - - - - - - - - - - - - - - - - -
-
- ${criteriaRatings.ratingCriteria.ratingCriteriaId}-${rating.itemId} -
-
- - ${rating.averageRating} - ${rating.numberOfVotes} - -
-
-
-
-
-
- -
- - -   -
    - - -
  • - - - - - - : -   -    - - (${rating.userRating}) + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + + + + + +
    +   + +
    + ${criteriaRatings.ratingCriteria.ratingCriteriaId}-${rating.itemId} +
    + ${rating.userRating} +
    + + + + + + ${userRating} + + +
    + + ${rating.averageRating} + ${rating.numberOfVotes} + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + +
    +
    + ${criteriaRatings.ratingCriteria.ratingCriteriaId}-${rating.itemId} +
    +
    + + ${rating.averageRating} + ${rating.numberOfVotes} + +
    +
    +
    +
    +
    +
    + +
    + + +   +
      + + +
    • + + - + + + : +   +    + + (${rating.userRating}) + +
    • - - -
      -
    -
    + +
+
- -   -
    - - -
  • - - - - ${rating.averageRating} - - : -   -    - - (${rating.userRating}) + +   +
      + + +
    • + + - + ${rating.averageRating} + + : +   +    + + (${rating.userRating}) + +
    • - +
      +
    + +   +
    - -
- -   -
-
-
+
- + - <%-- Some styles for the table and results --%> - - - - - - - - <%-- Each answer column has the same length, all remaining space is taken by the question column --%> - - - - + .rubrics-user-panel .collapsable-icon-left a:after { + margin-top: 6px; + } + + .rubrics-table.standard-view tr:first-child { + background-color: initial !important; + } + + .rubrics-table.standard-view th { + font-style: normal; + font-weight: bold; + } + + .rubrics-table.standard-view td:first-child { + font-weight: bold; + } + + .rubrics-table.pivot-view td:not(:first-child) { + text-align: center; + } + + .rubrics-table.pivot-view th { + font-style: normal; + text-align: center; + } + + .column-header-span { + font-style: italic; + } + + .rubrics-table .rubrics-rating-cell { + border-top: none; + + } + .rubrics-table .rubrics-rating-cell .rubrics-rating-count { + text-align: right; + } + + .rubrics-table .rubrics-rating-cell .rubrics-rating-count > .badge { + color: gray; + background-color: white; + font-size: large; + } + + .rubrics-table .rubrics-rating-cell .rubrics-rating-learner { + margin-top: 10px; + } + + .rubrics-table .rubrics-description-cell { + border-bottom: none; + } + + + + + +
- (${columnStatus.count})  -
+ + <%-- Each answer column has the same length, all remaining space is taken by the question column --%> + + - - - - - - - - - - - <%-- These variables are for counting average rating for the given row --%> - - - - - <%-- Check if any other learner rated this learner for this column --%> - - - - - - - - + + + + + + + + + - - - <%-- Check if any other learner rated this learner for this 0.5 column --%> + + <%-- These variables are for counting average rating for the given row --%> + + + + + <%-- Check if any other learner rated this learner for this column --%> - + - - + + - - - - - <%-- Cell with average rating --%> - - - - - <%-- Calculate again because we need the same cell background colour --%> - - - - - - + + + <%-- Check if any other learner rated this learner for this 0.5 column --%> + - -
- -   -
-
+
+ + + +
- + + + + <%-- Cell with average rating --%> + - + + + <%-- Calculate again because we need the same cell background colour --%> - + - + + + <%-- Calculate again because we need the same cell background colour --%> + + + + + + - - - - - -
- (${columnStatus.count + 0.5})  + (${columnStatus.count}) 
- - 0}"> - bg-success - - " - > - + + + (${columnStatus.count + 0.5})  +
+ 0}"> - bg-success - - " - > - - - - - - - - - - - -
0}"> bg-success " - > - - - <%-- learners see just how many rates they got from other learners --%> -
- x ${rateCount} -
- - <%-- teachers see also who gave the rating --%> - + > + +
0}"> + bg-success + + " + > + + + + + - + + + + +
0}"> + bg-success + + " + > + + + <%-- learners see just how many rates they got from other learners --%> +
+ x ${rateCount} +
+ + <%-- teachers see also who gave the rating --%> + + + +
+ +   +
+
+
+
+
+
0}"> bg-success " - > - - - <%-- learners see just how many rates they got from other learners --%> -
- x ${rateCount} -
- - <%-- teachers see also who gave the rating --%> - - - -
- -   -
+ > + + + <%-- learners see just how many rates they got from other learners --%> +
+ x ${rateCount} +
+ + <%-- teachers see also who gave the rating --%> + + + +
+ +   +
+
+
-
-
+
+
-
- - - - - -
- <%-- It is sufficient to take user names and columns from the first row/criterion --%> - - - - -
- - - - + +
+ + + \ No newline at end of file Index: lams_tool_notebook/web/WEB-INF/tags/StyledRating.tag =================================================================== diff -u -re8c858ae097ae8b7861ec6e70e490daec543e34e -r98ddb292326506f7ac611ce4f1a5835050916525 --- lams_tool_notebook/web/WEB-INF/tags/StyledRating.tag (.../StyledRating.tag) (revision e8c858ae097ae8b7861ec6e70e490daec543e34e) +++ lams_tool_notebook/web/WEB-INF/tags/StyledRating.tag (.../StyledRating.tag) (revision 98ddb292326506f7ac611ce4f1a5835050916525) @@ -1,487 +1,588 @@ -<% - /** - * StyledRating.tag - * Author: Andrey Balan - * Description: Shows the results of a styled rating. Does not allow for update. - */ - %> +<% + /** + * StyledRating.tag + * Author: Andrey Balan + * Description: Shows the results of a styled rating. Does not allow for update. + */ +%> <%@ tag body-content="scriptless" %> <%@ taglib uri="tags-core" prefix="c" %> <%@ taglib uri="tags-fmt" prefix="fmt" %> -<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %> +<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %> <%@ taglib uri="tags-lams" prefix="lams"%> <%@ taglib uri="tags-function" prefix="fn" %> <%@ attribute name="criteriaRatings" required="true" rtexprvalue="true" type="org.lamsfoundation.lams.rating.dto.StyledCriteriaRatingDTO" %> <%@ attribute name="showJustification" required="true" %> <%@ attribute name="alwaysShowAverage" required="true" %> +<%@ attribute name="rubricsPivotView" required="false" %> <%@ attribute name="rubricsInBetweenColumns" required="false" %> + + + -<%@ attribute name="currentUserDisplay" required="true" %> +<%@ attribute name="currentUserDisplay" required="true" %> - + - - - - - - - - - - - - - - - - - - - - - - -
- - - -
-   - - -
-
- - - - - - + - - - + + + - - - - - - - - - - + + + + + + + + + + + - - - - + +
- - - - + +
-   - -
- ${criteriaRatings.ratingCriteria.ratingCriteriaId}-${rating.itemId} -
- ${rating.userRating} -
- - - - - - ${userRating} - - -
- - ${rating.averageRating} - ${rating.numberOfVotes} - -
-
- -
+   + + +
- - - - - - - - - - - - - - - - - -
-
- ${criteriaRatings.ratingCriteria.ratingCriteriaId}-${rating.itemId} -
-
- - ${rating.averageRating} - ${rating.numberOfVotes} - -
-
-
-
-
-
- -
- - -   -
    - - -
  • - - - - - - : -   -    - - (${rating.userRating}) + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + + + + + +
    +   + +
    + ${criteriaRatings.ratingCriteria.ratingCriteriaId}-${rating.itemId} +
    + ${rating.userRating} +
    + + + + + + ${userRating} + + +
    + + ${rating.averageRating} + ${rating.numberOfVotes} + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + +
    +
    + ${criteriaRatings.ratingCriteria.ratingCriteriaId}-${rating.itemId} +
    +
    + + ${rating.averageRating} + ${rating.numberOfVotes} + +
    +
    +
    +
    +
    +
    + +
    + + +   +
      + + +
    • + + - + + + : +   +    + + (${rating.userRating}) + +
    • - - -
      -
    -
    + +
+
- -   -
    - - -
  • - - - - ${rating.averageRating} - - : -   -    - - (${rating.userRating}) + +   +
      + + +
    • + + - + ${rating.averageRating} + + : +   +    + + (${rating.userRating}) + +
    • - +
      +
    + +   +
    - -
- -   -
-
-
+
- + - <%-- Some styles for the table and results --%> - - - - - - - - <%-- Each answer column has the same length, all remaining space is taken by the question column --%> - - - - + .rubrics-user-panel .collapsable-icon-left a:after { + margin-top: 6px; + } + + .rubrics-table.standard-view tr:first-child { + background-color: initial !important; + } + + .rubrics-table.standard-view th { + font-style: normal; + font-weight: bold; + } + + .rubrics-table.standard-view td:first-child { + font-weight: bold; + } + + .rubrics-table.pivot-view td:not(:first-child) { + text-align: center; + } + + .rubrics-table.pivot-view th { + font-style: normal; + text-align: center; + } + + .column-header-span { + font-style: italic; + } + + .rubrics-table .rubrics-rating-cell { + border-top: none; + + } + .rubrics-table .rubrics-rating-cell .rubrics-rating-count { + text-align: right; + } + + .rubrics-table .rubrics-rating-cell .rubrics-rating-count > .badge { + color: gray; + background-color: white; + font-size: large; + } + + .rubrics-table .rubrics-rating-cell .rubrics-rating-learner { + margin-top: 10px; + } + + .rubrics-table .rubrics-description-cell { + border-bottom: none; + } + + + + + +
- (${columnStatus.count})  -
+ + <%-- Each answer column has the same length, all remaining space is taken by the question column --%> + + - - - - - - - - - - - <%-- These variables are for counting average rating for the given row --%> - - - - - <%-- Check if any other learner rated this learner for this column --%> - - - - - - - - + + + + + + + + + - - - <%-- Check if any other learner rated this learner for this 0.5 column --%> + + <%-- These variables are for counting average rating for the given row --%> + + + + + <%-- Check if any other learner rated this learner for this column --%> - + - - + + - - - - - <%-- Cell with average rating --%> - - - - - <%-- Calculate again because we need the same cell background colour --%> - - - - - - + + + <%-- Check if any other learner rated this learner for this 0.5 column --%> + - -
- -   -
-
+
+ + + +
- + + + + <%-- Cell with average rating --%> + - + + + <%-- Calculate again because we need the same cell background colour --%> - + - + + + <%-- Calculate again because we need the same cell background colour --%> + + + + + + - - - - - -
- (${columnStatus.count + 0.5})  + (${columnStatus.count}) 
- - 0}"> - bg-success - - " - > - + + + (${columnStatus.count + 0.5})  +
+ 0}"> - bg-success - - " - > - - - - - - - - - - - -
0}"> bg-success " - > - - - <%-- learners see just how many rates they got from other learners --%> -
- x ${rateCount} -
- - <%-- teachers see also who gave the rating --%> - + > + +
0}"> + bg-success + + " + > + + + + + - + + + + +
0}"> + bg-success + + " + > + + + <%-- learners see just how many rates they got from other learners --%> +
+ x ${rateCount} +
+ + <%-- teachers see also who gave the rating --%> + + + +
+ +   +
+
+
+
+
+
0}"> bg-success " - > - - - <%-- learners see just how many rates they got from other learners --%> -
- x ${rateCount} -
- - <%-- teachers see also who gave the rating --%> - - - -
- -   -
+ > + + + <%-- learners see just how many rates they got from other learners --%> +
+ x ${rateCount} +
+ + <%-- teachers see also who gave the rating --%> + + + +
+ +   +
+
+
-
-
+
+
-
- - - - - -
- <%-- It is sufficient to take user names and columns from the first row/criterion --%> - - - - -
- - - - + +
+ + + \ No newline at end of file Index: lams_tool_pixlr/web/WEB-INF/tags/StyledRating.tag =================================================================== diff -u -re8c858ae097ae8b7861ec6e70e490daec543e34e -r98ddb292326506f7ac611ce4f1a5835050916525 --- lams_tool_pixlr/web/WEB-INF/tags/StyledRating.tag (.../StyledRating.tag) (revision e8c858ae097ae8b7861ec6e70e490daec543e34e) +++ lams_tool_pixlr/web/WEB-INF/tags/StyledRating.tag (.../StyledRating.tag) (revision 98ddb292326506f7ac611ce4f1a5835050916525) @@ -1,487 +1,588 @@ -<% - /** - * StyledRating.tag - * Author: Andrey Balan - * Description: Shows the results of a styled rating. Does not allow for update. - */ - %> +<% + /** + * StyledRating.tag + * Author: Andrey Balan + * Description: Shows the results of a styled rating. Does not allow for update. + */ +%> <%@ tag body-content="scriptless" %> <%@ taglib uri="tags-core" prefix="c" %> <%@ taglib uri="tags-fmt" prefix="fmt" %> -<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %> +<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %> <%@ taglib uri="tags-lams" prefix="lams"%> <%@ taglib uri="tags-function" prefix="fn" %> <%@ attribute name="criteriaRatings" required="true" rtexprvalue="true" type="org.lamsfoundation.lams.rating.dto.StyledCriteriaRatingDTO" %> <%@ attribute name="showJustification" required="true" %> <%@ attribute name="alwaysShowAverage" required="true" %> +<%@ attribute name="rubricsPivotView" required="false" %> <%@ attribute name="rubricsInBetweenColumns" required="false" %> + + + -<%@ attribute name="currentUserDisplay" required="true" %> +<%@ attribute name="currentUserDisplay" required="true" %> - + - - - - - - - - - - - - - - - - - - - - - - -
- - - -
-   - - -
-
- - - - - - + - - - + + + - - - - - - - - - - + + + + + + + + + + + - - - - + +
- - - - + +
-   - -
- ${criteriaRatings.ratingCriteria.ratingCriteriaId}-${rating.itemId} -
- ${rating.userRating} -
- - - - - - ${userRating} - - -
- - ${rating.averageRating} - ${rating.numberOfVotes} - -
-
- -
+   + + +
- - - - - - - - - - - - - - - - - -
-
- ${criteriaRatings.ratingCriteria.ratingCriteriaId}-${rating.itemId} -
-
- - ${rating.averageRating} - ${rating.numberOfVotes} - -
-
-
-
-
-
- -
- - -   -
    - - -
  • - - - - - - : -   -    - - (${rating.userRating}) + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + + + + + +
    +   + +
    + ${criteriaRatings.ratingCriteria.ratingCriteriaId}-${rating.itemId} +
    + ${rating.userRating} +
    + + + + + + ${userRating} + + +
    + + ${rating.averageRating} + ${rating.numberOfVotes} + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + +
    +
    + ${criteriaRatings.ratingCriteria.ratingCriteriaId}-${rating.itemId} +
    +
    + + ${rating.averageRating} + ${rating.numberOfVotes} + +
    +
    +
    +
    +
    +
    + +
    + + +   +
      + + +
    • + + - + + + : +   +    + + (${rating.userRating}) + +
    • - - -
      -
    -
    + +
+
- -   -
    - - -
  • - - - - ${rating.averageRating} - - : -   -    - - (${rating.userRating}) + +   +
      + + +
    • + + - + ${rating.averageRating} + + : +   +    + + (${rating.userRating}) + +
    • - +
      +
    + +   +
    - -
- -   -
-
-
+
- + - <%-- Some styles for the table and results --%> - - - - - - - - <%-- Each answer column has the same length, all remaining space is taken by the question column --%> - - - - + .rubrics-user-panel .collapsable-icon-left a:after { + margin-top: 6px; + } + + .rubrics-table.standard-view tr:first-child { + background-color: initial !important; + } + + .rubrics-table.standard-view th { + font-style: normal; + font-weight: bold; + } + + .rubrics-table.standard-view td:first-child { + font-weight: bold; + } + + .rubrics-table.pivot-view td:not(:first-child) { + text-align: center; + } + + .rubrics-table.pivot-view th { + font-style: normal; + text-align: center; + } + + .column-header-span { + font-style: italic; + } + + .rubrics-table .rubrics-rating-cell { + border-top: none; + + } + .rubrics-table .rubrics-rating-cell .rubrics-rating-count { + text-align: right; + } + + .rubrics-table .rubrics-rating-cell .rubrics-rating-count > .badge { + color: gray; + background-color: white; + font-size: large; + } + + .rubrics-table .rubrics-rating-cell .rubrics-rating-learner { + margin-top: 10px; + } + + .rubrics-table .rubrics-description-cell { + border-bottom: none; + } + + + + + +
- (${columnStatus.count})  -
+ + <%-- Each answer column has the same length, all remaining space is taken by the question column --%> + + - - - - - - - - - - - <%-- These variables are for counting average rating for the given row --%> - - - - - <%-- Check if any other learner rated this learner for this column --%> - - - - - - - - + + + + + + + + + - - - <%-- Check if any other learner rated this learner for this 0.5 column --%> + + <%-- These variables are for counting average rating for the given row --%> + + + + + <%-- Check if any other learner rated this learner for this column --%> - + - - + + - - - - - <%-- Cell with average rating --%> - - - - - <%-- Calculate again because we need the same cell background colour --%> - - - - - - + + + <%-- Check if any other learner rated this learner for this 0.5 column --%> + - -
- -   -
-
+
+ + + +
- + + + + <%-- Cell with average rating --%> + - + + + <%-- Calculate again because we need the same cell background colour --%> - + - + + + <%-- Calculate again because we need the same cell background colour --%> + + + + + + - - - - - -
- (${columnStatus.count + 0.5})  + (${columnStatus.count}) 
- - 0}"> - bg-success - - " - > - + + + (${columnStatus.count + 0.5})  +
+ 0}"> - bg-success - - " - > - - - - - - - - - - - -
0}"> bg-success " - > - - - <%-- learners see just how many rates they got from other learners --%> -
- x ${rateCount} -
- - <%-- teachers see also who gave the rating --%> - + > + +
0}"> + bg-success + + " + > + + + + + - + + + + +
0}"> + bg-success + + " + > + + + <%-- learners see just how many rates they got from other learners --%> +
+ x ${rateCount} +
+ + <%-- teachers see also who gave the rating --%> + + + +
+ +   +
+
+
+
+
+
0}"> bg-success " - > - - - <%-- learners see just how many rates they got from other learners --%> -
- x ${rateCount} -
- - <%-- teachers see also who gave the rating --%> - - - -
- -   -
+ > + + + <%-- learners see just how many rates they got from other learners --%> +
+ x ${rateCount} +
+ + <%-- teachers see also who gave the rating --%> + + + +
+ +   +
+
+
-
-
+
+
-
- - - - - -
- <%-- It is sufficient to take user names and columns from the first row/criterion --%> - - - - -
- - - - + +
+ + + \ No newline at end of file Index: lams_tool_preview/web/WEB-INF/tags/StyledRating.tag =================================================================== diff -u -r9c87eb663c98f86c544b5b40cca172d40b3cdc3e -r98ddb292326506f7ac611ce4f1a5835050916525 --- lams_tool_preview/web/WEB-INF/tags/StyledRating.tag (.../StyledRating.tag) (revision 9c87eb663c98f86c544b5b40cca172d40b3cdc3e) +++ lams_tool_preview/web/WEB-INF/tags/StyledRating.tag (.../StyledRating.tag) (revision 98ddb292326506f7ac611ce4f1a5835050916525) @@ -1,14 +1,14 @@ -<% - /** - * StyledRating.tag - * Author: Andrey Balan - * Description: Shows the results of a styled rating. Does not allow for update. - */ - %> +<% + /** + * StyledRating.tag + * Author: Andrey Balan + * Description: Shows the results of a styled rating. Does not allow for update. + */ +%> <%@ tag body-content="scriptless" %> <%@ taglib uri="tags-core" prefix="c" %> <%@ taglib uri="tags-fmt" prefix="fmt" %> -<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %> +<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %> <%@ taglib uri="tags-lams" prefix="lams"%> <%@ taglib uri="tags-function" prefix="fn" %> @@ -28,561 +28,561 @@ -<%@ attribute name="currentUserDisplay" required="true" %> +<%@ attribute name="currentUserDisplay" required="true" %> - + - - - - - - - - - - - - - - - - - - - - - - -
- - - -
-   - - -
-
- - - - - - + - - - + + + - - - - - - - - - - + + + + + + + + + + + - - - - + +
- - - - + +
-   - -
- ${criteriaRatings.ratingCriteria.ratingCriteriaId}-${rating.itemId} -
- ${rating.userRating} -
- - - - - - ${userRating} - - -
- - ${rating.averageRating} - ${rating.numberOfVotes} - -
-
- -
+   + + +
- - - - - - - - - - - - - - - - - -
-
- ${criteriaRatings.ratingCriteria.ratingCriteriaId}-${rating.itemId} -
-
- - ${rating.averageRating} - ${rating.numberOfVotes} - -
-
-
-
-
-
- -
- - -   -
    - - -
  • - - - - - - : -   -    - - (${rating.userRating}) + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + + + + + +
    +   + +
    + ${criteriaRatings.ratingCriteria.ratingCriteriaId}-${rating.itemId} +
    + ${rating.userRating} +
    + + + + + + ${userRating} + + +
    + + ${rating.averageRating} + ${rating.numberOfVotes} + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + +
    +
    + ${criteriaRatings.ratingCriteria.ratingCriteriaId}-${rating.itemId} +
    +
    + + ${rating.averageRating} + ${rating.numberOfVotes} + +
    +
    +
    +
    +
    +
    + +
    + + +   +
      + + +
    • + + - + + + : +   +    + + (${rating.userRating}) + +
    • - - -
      -
    -
    + +
+
- -   -
    - - -
  • - - - - ${rating.averageRating} - - : -   -    - - (${rating.userRating}) + +   +
      + + +
    • + + - + ${rating.averageRating} + + : +   +    + + (${rating.userRating}) + +
    • - +
      +
    + +   +
    - -
- -   -
-
-
+
- + - <%-- Some styles for the table and results --%> - - - - - - - - <%-- Each answer column has the same length, all remaining space is taken by the question column --%> - - - - + .rubrics-user-panel .collapsable-icon-left a:after { + margin-top: 6px; + } + + .rubrics-table.standard-view tr:first-child { + background-color: initial !important; + } + + .rubrics-table.standard-view th { + font-style: normal; + font-weight: bold; + } + + .rubrics-table.standard-view td:first-child { + font-weight: bold; + } + + .rubrics-table.pivot-view td:not(:first-child) { + text-align: center; + } + + .rubrics-table.pivot-view th { + font-style: normal; + text-align: center; + } + + .column-header-span { + font-style: italic; + } + + .rubrics-table .rubrics-rating-cell { + border-top: none; + + } + .rubrics-table .rubrics-rating-cell .rubrics-rating-count { + text-align: right; + } + + .rubrics-table .rubrics-rating-cell .rubrics-rating-count > .badge { + color: gray; + background-color: white; + font-size: large; + } + + .rubrics-table .rubrics-rating-cell .rubrics-rating-learner { + margin-top: 10px; + } + + .rubrics-table .rubrics-description-cell { + border-bottom: none; + } + + + + + +
- (${columnStatus.count})  -
+ + <%-- Each answer column has the same length, all remaining space is taken by the question column --%> + + - - - - - - - - - - - <%-- These variables are for counting average rating for the given row --%> - - - - - <%-- Check if any other learner rated this learner for this column --%> - - - - - - - - + + + + + + + + + - - - <%-- Check if any other learner rated this learner for this 0.5 column --%> + + <%-- These variables are for counting average rating for the given row --%> + + + + + <%-- Check if any other learner rated this learner for this column --%> - + - - + + - - - - - <%-- Cell with average rating --%> - - - - - <%-- Calculate again because we need the same cell background colour --%> - - - - - - + + + <%-- Check if any other learner rated this learner for this 0.5 column --%> + - -
- -   -
-
+
+ + + +
- + + + + <%-- Cell with average rating --%> + - + + + <%-- Calculate again because we need the same cell background colour --%> - + - + + + <%-- Calculate again because we need the same cell background colour --%> + + + + + + - - - - - -
- (${columnStatus.count + 0.5})  + (${columnStatus.count}) 
- - 0}"> - bg-success - - " - > - + + + (${columnStatus.count + 0.5})  +
+ 0}"> - bg-success - - " - > - - - - - - - - - - - -
0}"> bg-success " - > - - - <%-- learners see just how many rates they got from other learners --%> -
- x ${rateCount} -
- - <%-- teachers see also who gave the rating --%> - + > + +
0}"> + bg-success + + " + > + + + + + - + + + + +
0}"> + bg-success + + " + > + + + <%-- learners see just how many rates they got from other learners --%> +
+ x ${rateCount} +
+ + <%-- teachers see also who gave the rating --%> + + + +
+ +   +
+
+
+
+
+
0}"> bg-success " - > - - - <%-- learners see just how many rates they got from other learners --%> -
- x ${rateCount} -
- - <%-- teachers see also who gave the rating --%> - - - -
- -   -
+ > + + + <%-- learners see just how many rates they got from other learners --%> +
+ x ${rateCount} +
+ + <%-- teachers see also who gave the rating --%> + + + +
+ +   +
+
+
-
-
+
+
-
- -
- <%-- It is sufficient to take user names and columns from the first row/criterion --%> - - - - - - - -
- - - - - - -
- <%-- It is sufficient to take user names and columns from the first row/criterion --%> - - - - -
- + + + + + +
+ <%-- It is sufficient to take user names and columns from the first row/criterion --%> + + + + +
+ - -
- - - <%-- Each answer column has the same length, all remaining space is take by the question column --%> - - - - + + +
+
- (${columnStatus.count})  -
+ + <%-- Each answer column has the same length, all remaining space is take by the question column --%> + + - - - - - - - - - + + + + + + + - - - - + + + + - -
- (${columnStatus.count + 0.5})  + (${columnStatus.count}) 
- - - - class="bg-success" - - > - + + + (${columnStatus.count + 0.5})  +
+ - class="bg-success" - + + + + class="bg-success" + > - + + class="bg-success" + + > + +
+ + +
-
- -
- - - +
+
+
+ + \ No newline at end of file Index: lams_tool_sbmt/web/WEB-INF/tags/StyledRating.tag =================================================================== diff -u -re8c858ae097ae8b7861ec6e70e490daec543e34e -r98ddb292326506f7ac611ce4f1a5835050916525 --- lams_tool_sbmt/web/WEB-INF/tags/StyledRating.tag (.../StyledRating.tag) (revision e8c858ae097ae8b7861ec6e70e490daec543e34e) +++ lams_tool_sbmt/web/WEB-INF/tags/StyledRating.tag (.../StyledRating.tag) (revision 98ddb292326506f7ac611ce4f1a5835050916525) @@ -1,487 +1,588 @@ -<% - /** - * StyledRating.tag - * Author: Andrey Balan - * Description: Shows the results of a styled rating. Does not allow for update. - */ - %> +<% + /** + * StyledRating.tag + * Author: Andrey Balan + * Description: Shows the results of a styled rating. Does not allow for update. + */ +%> <%@ tag body-content="scriptless" %> <%@ taglib uri="tags-core" prefix="c" %> <%@ taglib uri="tags-fmt" prefix="fmt" %> -<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %> +<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %> <%@ taglib uri="tags-lams" prefix="lams"%> <%@ taglib uri="tags-function" prefix="fn" %> <%@ attribute name="criteriaRatings" required="true" rtexprvalue="true" type="org.lamsfoundation.lams.rating.dto.StyledCriteriaRatingDTO" %> <%@ attribute name="showJustification" required="true" %> <%@ attribute name="alwaysShowAverage" required="true" %> +<%@ attribute name="rubricsPivotView" required="false" %> <%@ attribute name="rubricsInBetweenColumns" required="false" %> + + + -<%@ attribute name="currentUserDisplay" required="true" %> +<%@ attribute name="currentUserDisplay" required="true" %> - + - - - - - - - - - - - - - - - - - - - - - - -
- - - -
-   - - -
-
- - - - - - + - - - + + + - - - - - - - - - - + + + + + + + + + + + - - - - + +
- - - - + +
-   - -
- ${criteriaRatings.ratingCriteria.ratingCriteriaId}-${rating.itemId} -
- ${rating.userRating} -
- - - - - - ${userRating} - - -
- - ${rating.averageRating} - ${rating.numberOfVotes} - -
-
- -
+   + + +
- - - - - - - - - - - - - - - - - -
-
- ${criteriaRatings.ratingCriteria.ratingCriteriaId}-${rating.itemId} -
-
- - ${rating.averageRating} - ${rating.numberOfVotes} - -
-
-
-
-
-
- -
- - -   -
    - - -
  • - - - - - - : -   -    - - (${rating.userRating}) + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + + + + + +
    +   + +
    + ${criteriaRatings.ratingCriteria.ratingCriteriaId}-${rating.itemId} +
    + ${rating.userRating} +
    + + + + + + ${userRating} + + +
    + + ${rating.averageRating} + ${rating.numberOfVotes} + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + +
    +
    + ${criteriaRatings.ratingCriteria.ratingCriteriaId}-${rating.itemId} +
    +
    + + ${rating.averageRating} + ${rating.numberOfVotes} + +
    +
    +
    +
    +
    +
    + +
    + + +   +
      + + +
    • + + - + + + : +   +    + + (${rating.userRating}) + +
    • - - -
      -
    -
    + +
+
- -   -
    - - -
  • - - - - ${rating.averageRating} - - : -   -    - - (${rating.userRating}) + +   +
      + + +
    • + + - + ${rating.averageRating} + + : +   +    + + (${rating.userRating}) + +
    • - +
      +
    + +   +
    - -
- -   -
-
-
+
- + - <%-- Some styles for the table and results --%> - - - - - - - - <%-- Each answer column has the same length, all remaining space is taken by the question column --%> - - - - + .rubrics-user-panel .collapsable-icon-left a:after { + margin-top: 6px; + } + + .rubrics-table.standard-view tr:first-child { + background-color: initial !important; + } + + .rubrics-table.standard-view th { + font-style: normal; + font-weight: bold; + } + + .rubrics-table.standard-view td:first-child { + font-weight: bold; + } + + .rubrics-table.pivot-view td:not(:first-child) { + text-align: center; + } + + .rubrics-table.pivot-view th { + font-style: normal; + text-align: center; + } + + .column-header-span { + font-style: italic; + } + + .rubrics-table .rubrics-rating-cell { + border-top: none; + + } + .rubrics-table .rubrics-rating-cell .rubrics-rating-count { + text-align: right; + } + + .rubrics-table .rubrics-rating-cell .rubrics-rating-count > .badge { + color: gray; + background-color: white; + font-size: large; + } + + .rubrics-table .rubrics-rating-cell .rubrics-rating-learner { + margin-top: 10px; + } + + .rubrics-table .rubrics-description-cell { + border-bottom: none; + } + + + + + +
- (${columnStatus.count})  -
+ + <%-- Each answer column has the same length, all remaining space is taken by the question column --%> + + - - - - - - - - - - - <%-- These variables are for counting average rating for the given row --%> - - - - - <%-- Check if any other learner rated this learner for this column --%> - - - - - - - - + + + + + + + + + - - - <%-- Check if any other learner rated this learner for this 0.5 column --%> + + <%-- These variables are for counting average rating for the given row --%> + + + + + <%-- Check if any other learner rated this learner for this column --%> - + - - + + - - - - - <%-- Cell with average rating --%> - - - - - <%-- Calculate again because we need the same cell background colour --%> - - - - - - + + + <%-- Check if any other learner rated this learner for this 0.5 column --%> + - -
- -   -
-
+
+ + + +
- + + + + <%-- Cell with average rating --%> + - + + + <%-- Calculate again because we need the same cell background colour --%> - + - + + + <%-- Calculate again because we need the same cell background colour --%> + + + + + + - - - - - -
- (${columnStatus.count + 0.5})  + (${columnStatus.count}) 
- - 0}"> - bg-success - - " - > - + + + (${columnStatus.count + 0.5})  +
+ 0}"> - bg-success - - " - > - - - - - - - - - - - -
0}"> bg-success " - > - - - <%-- learners see just how many rates they got from other learners --%> -
- x ${rateCount} -
- - <%-- teachers see also who gave the rating --%> - + > + +
0}"> + bg-success + + " + > + + + + + - + + + + +
0}"> + bg-success + + " + > + + + <%-- learners see just how many rates they got from other learners --%> +
+ x ${rateCount} +
+ + <%-- teachers see also who gave the rating --%> + + + +
+ +   +
+
+
+
+
+
0}"> bg-success " - > - - - <%-- learners see just how many rates they got from other learners --%> -
- x ${rateCount} -
- - <%-- teachers see also who gave the rating --%> - - - -
- -   -
+ > + + + <%-- learners see just how many rates they got from other learners --%> +
+ x ${rateCount} +
+ + <%-- teachers see also who gave the rating --%> + + + +
+ +   +
+
+
-
-
+
+
-
- - - - - -
- <%-- It is sufficient to take user names and columns from the first row/criterion --%> - - - - -
- - - - + +
+ + + \ No newline at end of file Index: lams_tool_scratchie/web/WEB-INF/tags/StyledRating.tag =================================================================== diff -u -re8c858ae097ae8b7861ec6e70e490daec543e34e -r98ddb292326506f7ac611ce4f1a5835050916525 --- lams_tool_scratchie/web/WEB-INF/tags/StyledRating.tag (.../StyledRating.tag) (revision e8c858ae097ae8b7861ec6e70e490daec543e34e) +++ lams_tool_scratchie/web/WEB-INF/tags/StyledRating.tag (.../StyledRating.tag) (revision 98ddb292326506f7ac611ce4f1a5835050916525) @@ -1,487 +1,588 @@ -<% - /** - * StyledRating.tag - * Author: Andrey Balan - * Description: Shows the results of a styled rating. Does not allow for update. - */ - %> +<% + /** + * StyledRating.tag + * Author: Andrey Balan + * Description: Shows the results of a styled rating. Does not allow for update. + */ +%> <%@ tag body-content="scriptless" %> <%@ taglib uri="tags-core" prefix="c" %> <%@ taglib uri="tags-fmt" prefix="fmt" %> -<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %> +<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %> <%@ taglib uri="tags-lams" prefix="lams"%> <%@ taglib uri="tags-function" prefix="fn" %> <%@ attribute name="criteriaRatings" required="true" rtexprvalue="true" type="org.lamsfoundation.lams.rating.dto.StyledCriteriaRatingDTO" %> <%@ attribute name="showJustification" required="true" %> <%@ attribute name="alwaysShowAverage" required="true" %> +<%@ attribute name="rubricsPivotView" required="false" %> <%@ attribute name="rubricsInBetweenColumns" required="false" %> + + + -<%@ attribute name="currentUserDisplay" required="true" %> +<%@ attribute name="currentUserDisplay" required="true" %> - + - - - - - - - - - - - - - - - - - - - - - - -
- - - -
-   - - -
-
- - - - - - + - - - + + + - - - - - - - - - - + + + + + + + + + + + - - - - + +
- - - - + +
-   - -
- ${criteriaRatings.ratingCriteria.ratingCriteriaId}-${rating.itemId} -
- ${rating.userRating} -
- - - - - - ${userRating} - - -
- - ${rating.averageRating} - ${rating.numberOfVotes} - -
-
- -
+   + + +
- - - - - - - - - - - - - - - - - -
-
- ${criteriaRatings.ratingCriteria.ratingCriteriaId}-${rating.itemId} -
-
- - ${rating.averageRating} - ${rating.numberOfVotes} - -
-
-
-
-
-
- -
- - -   -
    - - -
  • - - - - - - : -   -    - - (${rating.userRating}) + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + + + + + +
    +   + +
    + ${criteriaRatings.ratingCriteria.ratingCriteriaId}-${rating.itemId} +
    + ${rating.userRating} +
    + + + + + + ${userRating} + + +
    + + ${rating.averageRating} + ${rating.numberOfVotes} + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + +
    +
    + ${criteriaRatings.ratingCriteria.ratingCriteriaId}-${rating.itemId} +
    +
    + + ${rating.averageRating} + ${rating.numberOfVotes} + +
    +
    +
    +
    +
    +
    + +
    + + +   +
      + + +
    • + + - + + + : +   +    + + (${rating.userRating}) + +
    • - - -
      -
    -
    + +
+
- -   -
    - - -
  • - - - - ${rating.averageRating} - - : -   -    - - (${rating.userRating}) + +   +
      + + +
    • + + - + ${rating.averageRating} + + : +   +    + + (${rating.userRating}) + +
    • - +
      +
    + +   +
    - -
- -   -
-
-
+
- + - <%-- Some styles for the table and results --%> - - - - - - - - <%-- Each answer column has the same length, all remaining space is taken by the question column --%> - - - - + .rubrics-user-panel .collapsable-icon-left a:after { + margin-top: 6px; + } + + .rubrics-table.standard-view tr:first-child { + background-color: initial !important; + } + + .rubrics-table.standard-view th { + font-style: normal; + font-weight: bold; + } + + .rubrics-table.standard-view td:first-child { + font-weight: bold; + } + + .rubrics-table.pivot-view td:not(:first-child) { + text-align: center; + } + + .rubrics-table.pivot-view th { + font-style: normal; + text-align: center; + } + + .column-header-span { + font-style: italic; + } + + .rubrics-table .rubrics-rating-cell { + border-top: none; + + } + .rubrics-table .rubrics-rating-cell .rubrics-rating-count { + text-align: right; + } + + .rubrics-table .rubrics-rating-cell .rubrics-rating-count > .badge { + color: gray; + background-color: white; + font-size: large; + } + + .rubrics-table .rubrics-rating-cell .rubrics-rating-learner { + margin-top: 10px; + } + + .rubrics-table .rubrics-description-cell { + border-bottom: none; + } + + + + + +
- (${columnStatus.count})  -
+ + <%-- Each answer column has the same length, all remaining space is taken by the question column --%> + + - - - - - - - - - - - <%-- These variables are for counting average rating for the given row --%> - - - - - <%-- Check if any other learner rated this learner for this column --%> - - - - - - - - + + + + + + + + + - - - <%-- Check if any other learner rated this learner for this 0.5 column --%> + + <%-- These variables are for counting average rating for the given row --%> + + + + + <%-- Check if any other learner rated this learner for this column --%> - + - - + + - - - - - <%-- Cell with average rating --%> - - - - - <%-- Calculate again because we need the same cell background colour --%> - - - - - - + + + <%-- Check if any other learner rated this learner for this 0.5 column --%> + - -
- -   -
-
+
+ + + +
- + + + + <%-- Cell with average rating --%> + - + + + <%-- Calculate again because we need the same cell background colour --%> - + - + + + <%-- Calculate again because we need the same cell background colour --%> + + + + + + - - - - - -
- (${columnStatus.count + 0.5})  + (${columnStatus.count}) 
- - 0}"> - bg-success - - " - > - + + + (${columnStatus.count + 0.5})  +
+ 0}"> - bg-success - - " - > - - - - - - - - - - - -
0}"> bg-success " - > - - - <%-- learners see just how many rates they got from other learners --%> -
- x ${rateCount} -
- - <%-- teachers see also who gave the rating --%> - + > + +
0}"> + bg-success + + " + > + + + + + - + + + + +
0}"> + bg-success + + " + > + + + <%-- learners see just how many rates they got from other learners --%> +
+ x ${rateCount} +
+ + <%-- teachers see also who gave the rating --%> + + + +
+ +   +
+
+
+
+
+
0}"> bg-success " - > - - - <%-- learners see just how many rates they got from other learners --%> -
- x ${rateCount} -
- - <%-- teachers see also who gave the rating --%> - - - -
- -   -
+ > + + + <%-- learners see just how many rates they got from other learners --%> +
+ x ${rateCount} +
+ + <%-- teachers see also who gave the rating --%> + + + +
+ +   +
+
+
-
-
+
+
-
- - - - - -
- <%-- It is sufficient to take user names and columns from the first row/criterion --%> - - - - -
- - - - + +
+ + + \ No newline at end of file Index: lams_tool_scribe/web/WEB-INF/tags/StyledRating.tag =================================================================== diff -u -re8c858ae097ae8b7861ec6e70e490daec543e34e -r98ddb292326506f7ac611ce4f1a5835050916525 --- lams_tool_scribe/web/WEB-INF/tags/StyledRating.tag (.../StyledRating.tag) (revision e8c858ae097ae8b7861ec6e70e490daec543e34e) +++ lams_tool_scribe/web/WEB-INF/tags/StyledRating.tag (.../StyledRating.tag) (revision 98ddb292326506f7ac611ce4f1a5835050916525) @@ -1,487 +1,588 @@ -<% - /** - * StyledRating.tag - * Author: Andrey Balan - * Description: Shows the results of a styled rating. Does not allow for update. - */ - %> +<% + /** + * StyledRating.tag + * Author: Andrey Balan + * Description: Shows the results of a styled rating. Does not allow for update. + */ +%> <%@ tag body-content="scriptless" %> <%@ taglib uri="tags-core" prefix="c" %> <%@ taglib uri="tags-fmt" prefix="fmt" %> -<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %> +<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %> <%@ taglib uri="tags-lams" prefix="lams"%> <%@ taglib uri="tags-function" prefix="fn" %> <%@ attribute name="criteriaRatings" required="true" rtexprvalue="true" type="org.lamsfoundation.lams.rating.dto.StyledCriteriaRatingDTO" %> <%@ attribute name="showJustification" required="true" %> <%@ attribute name="alwaysShowAverage" required="true" %> +<%@ attribute name="rubricsPivotView" required="false" %> <%@ attribute name="rubricsInBetweenColumns" required="false" %> + + + -<%@ attribute name="currentUserDisplay" required="true" %> +<%@ attribute name="currentUserDisplay" required="true" %> - + - - - - - - - - - - - - - - - - - - - - - - -
- - - -
-   - - -
-
- - - - - - + - - - + + + - - - - - - - - - - + + + + + + + + + + + - - - - + +
- - - - + +
-   - -
- ${criteriaRatings.ratingCriteria.ratingCriteriaId}-${rating.itemId} -
- ${rating.userRating} -
- - - - - - ${userRating} - - -
- - ${rating.averageRating} - ${rating.numberOfVotes} - -
-
- -
+   + + +
- - - - - - - - - - - - - - - - - -
-
- ${criteriaRatings.ratingCriteria.ratingCriteriaId}-${rating.itemId} -
-
- - ${rating.averageRating} - ${rating.numberOfVotes} - -
-
-
-
-
-
- -
- - -   -
    - - -
  • - - - - - - : -   -    - - (${rating.userRating}) + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + + + + + +
    +   + +
    + ${criteriaRatings.ratingCriteria.ratingCriteriaId}-${rating.itemId} +
    + ${rating.userRating} +
    + + + + + + ${userRating} + + +
    + + ${rating.averageRating} + ${rating.numberOfVotes} + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + +
    +
    + ${criteriaRatings.ratingCriteria.ratingCriteriaId}-${rating.itemId} +
    +
    + + ${rating.averageRating} + ${rating.numberOfVotes} + +
    +
    +
    +
    +
    +
    + +
    + + +   +
      + + +
    • + + - + + + : +   +    + + (${rating.userRating}) + +
    • - - -
      -
    -
    + +
+
- -   -
    - - -
  • - - - - ${rating.averageRating} - - : -   -    - - (${rating.userRating}) + +   +
      + + +
    • + + - + ${rating.averageRating} + + : +   +    + + (${rating.userRating}) + +
    • - +
      +
    + +   +
    - -
- -   -
-
-
+
- + - <%-- Some styles for the table and results --%> - - - - - - - - <%-- Each answer column has the same length, all remaining space is taken by the question column --%> - - - - + .rubrics-user-panel .collapsable-icon-left a:after { + margin-top: 6px; + } + + .rubrics-table.standard-view tr:first-child { + background-color: initial !important; + } + + .rubrics-table.standard-view th { + font-style: normal; + font-weight: bold; + } + + .rubrics-table.standard-view td:first-child { + font-weight: bold; + } + + .rubrics-table.pivot-view td:not(:first-child) { + text-align: center; + } + + .rubrics-table.pivot-view th { + font-style: normal; + text-align: center; + } + + .column-header-span { + font-style: italic; + } + + .rubrics-table .rubrics-rating-cell { + border-top: none; + + } + .rubrics-table .rubrics-rating-cell .rubrics-rating-count { + text-align: right; + } + + .rubrics-table .rubrics-rating-cell .rubrics-rating-count > .badge { + color: gray; + background-color: white; + font-size: large; + } + + .rubrics-table .rubrics-rating-cell .rubrics-rating-learner { + margin-top: 10px; + } + + .rubrics-table .rubrics-description-cell { + border-bottom: none; + } + + + + + +
- (${columnStatus.count})  -
+ + <%-- Each answer column has the same length, all remaining space is taken by the question column --%> + + - - - - - - - - - - - <%-- These variables are for counting average rating for the given row --%> - - - - - <%-- Check if any other learner rated this learner for this column --%> - - - - - - - - + + + + + + + + + - - - <%-- Check if any other learner rated this learner for this 0.5 column --%> + + <%-- These variables are for counting average rating for the given row --%> + + + + + <%-- Check if any other learner rated this learner for this column --%> - + - - + + - - - - - <%-- Cell with average rating --%> - - - - - <%-- Calculate again because we need the same cell background colour --%> - - - - - - + + + <%-- Check if any other learner rated this learner for this 0.5 column --%> + - -
- -   -
-
+
+ + + +
- + + + + <%-- Cell with average rating --%> + - + + + <%-- Calculate again because we need the same cell background colour --%> - + - + + + <%-- Calculate again because we need the same cell background colour --%> + + + + + + - - - - - -
- (${columnStatus.count + 0.5})  + (${columnStatus.count}) 
- - 0}"> - bg-success - - " - > - + + + (${columnStatus.count + 0.5})  +
+ 0}"> - bg-success - - " - > - - - - - - - - - - - -
0}"> bg-success " - > - - - <%-- learners see just how many rates they got from other learners --%> -
- x ${rateCount} -
- - <%-- teachers see also who gave the rating --%> - + > + +
0}"> + bg-success + + " + > + + + + + - + + + + +
0}"> + bg-success + + " + > + + + <%-- learners see just how many rates they got from other learners --%> +
+ x ${rateCount} +
+ + <%-- teachers see also who gave the rating --%> + + + +
+ +   +
+
+
+
+
+
0}"> bg-success " - > - - - <%-- learners see just how many rates they got from other learners --%> -
- x ${rateCount} -
- - <%-- teachers see also who gave the rating --%> - - - -
- -   -
+ > + + + <%-- learners see just how many rates they got from other learners --%> +
+ x ${rateCount} +
+ + <%-- teachers see also who gave the rating --%> + + + +
+ +   +
+
+
-
-
+
+
-
- - - - - -
- <%-- It is sufficient to take user names and columns from the first row/criterion --%> - - - - -
- - - - + +
+ + + \ No newline at end of file Index: lams_tool_spreadsheet/web/WEB-INF/tags/StyledRating.tag =================================================================== diff -u -re8c858ae097ae8b7861ec6e70e490daec543e34e -r98ddb292326506f7ac611ce4f1a5835050916525 --- lams_tool_spreadsheet/web/WEB-INF/tags/StyledRating.tag (.../StyledRating.tag) (revision e8c858ae097ae8b7861ec6e70e490daec543e34e) +++ lams_tool_spreadsheet/web/WEB-INF/tags/StyledRating.tag (.../StyledRating.tag) (revision 98ddb292326506f7ac611ce4f1a5835050916525) @@ -1,487 +1,588 @@ -<% - /** - * StyledRating.tag - * Author: Andrey Balan - * Description: Shows the results of a styled rating. Does not allow for update. - */ - %> +<% + /** + * StyledRating.tag + * Author: Andrey Balan + * Description: Shows the results of a styled rating. Does not allow for update. + */ +%> <%@ tag body-content="scriptless" %> <%@ taglib uri="tags-core" prefix="c" %> <%@ taglib uri="tags-fmt" prefix="fmt" %> -<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %> +<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %> <%@ taglib uri="tags-lams" prefix="lams"%> <%@ taglib uri="tags-function" prefix="fn" %> <%@ attribute name="criteriaRatings" required="true" rtexprvalue="true" type="org.lamsfoundation.lams.rating.dto.StyledCriteriaRatingDTO" %> <%@ attribute name="showJustification" required="true" %> <%@ attribute name="alwaysShowAverage" required="true" %> +<%@ attribute name="rubricsPivotView" required="false" %> <%@ attribute name="rubricsInBetweenColumns" required="false" %> + + + -<%@ attribute name="currentUserDisplay" required="true" %> +<%@ attribute name="currentUserDisplay" required="true" %> - + - - - - - - - - - - - - - - - - - - - - - - -
- - - -
-   - - -
-
- - - - - - + - - - + + + - - - - - - - - - - + + + + + + + + + + + - - - - + +
- - - - + +
-   - -
- ${criteriaRatings.ratingCriteria.ratingCriteriaId}-${rating.itemId} -
- ${rating.userRating} -
- - - - - - ${userRating} - - -
- - ${rating.averageRating} - ${rating.numberOfVotes} - -
-
- -
+   + + +
- - - - - - - - - - - - - - - - - -
-
- ${criteriaRatings.ratingCriteria.ratingCriteriaId}-${rating.itemId} -
-
- - ${rating.averageRating} - ${rating.numberOfVotes} - -
-
-
-
-
-
- -
- - -   -
    - - -
  • - - - - - - : -   -    - - (${rating.userRating}) + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + + + + + +
    +   + +
    + ${criteriaRatings.ratingCriteria.ratingCriteriaId}-${rating.itemId} +
    + ${rating.userRating} +
    + + + + + + ${userRating} + + +
    + + ${rating.averageRating} + ${rating.numberOfVotes} + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + +
    +
    + ${criteriaRatings.ratingCriteria.ratingCriteriaId}-${rating.itemId} +
    +
    + + ${rating.averageRating} + ${rating.numberOfVotes} + +
    +
    +
    +
    +
    +
    + +
    + + +   +
      + + +
    • + + - + + + : +   +    + + (${rating.userRating}) + +
    • - - -
      -
    -
    + +
+
- -   -
    - - -
  • - - - - ${rating.averageRating} - - : -   -    - - (${rating.userRating}) + +   +
      + + +
    • + + - + ${rating.averageRating} + + : +   +    + + (${rating.userRating}) + +
    • - +
      +
    + +   +
    - -
- -   -
-
-
+
- + - <%-- Some styles for the table and results --%> - - - - - - - - <%-- Each answer column has the same length, all remaining space is taken by the question column --%> - - - - + .rubrics-user-panel .collapsable-icon-left a:after { + margin-top: 6px; + } + + .rubrics-table.standard-view tr:first-child { + background-color: initial !important; + } + + .rubrics-table.standard-view th { + font-style: normal; + font-weight: bold; + } + + .rubrics-table.standard-view td:first-child { + font-weight: bold; + } + + .rubrics-table.pivot-view td:not(:first-child) { + text-align: center; + } + + .rubrics-table.pivot-view th { + font-style: normal; + text-align: center; + } + + .column-header-span { + font-style: italic; + } + + .rubrics-table .rubrics-rating-cell { + border-top: none; + + } + .rubrics-table .rubrics-rating-cell .rubrics-rating-count { + text-align: right; + } + + .rubrics-table .rubrics-rating-cell .rubrics-rating-count > .badge { + color: gray; + background-color: white; + font-size: large; + } + + .rubrics-table .rubrics-rating-cell .rubrics-rating-learner { + margin-top: 10px; + } + + .rubrics-table .rubrics-description-cell { + border-bottom: none; + } + + + + + +
- (${columnStatus.count})  -
+ + <%-- Each answer column has the same length, all remaining space is taken by the question column --%> + + - - - - - - - - - - - <%-- These variables are for counting average rating for the given row --%> - - - - - <%-- Check if any other learner rated this learner for this column --%> - - - - - - - - + + + + + + + + + - - - <%-- Check if any other learner rated this learner for this 0.5 column --%> + + <%-- These variables are for counting average rating for the given row --%> + + + + + <%-- Check if any other learner rated this learner for this column --%> - + - - + + - - - - - <%-- Cell with average rating --%> - - - - - <%-- Calculate again because we need the same cell background colour --%> - - - - - - + + + <%-- Check if any other learner rated this learner for this 0.5 column --%> + - -
- -   -
-
+
+ + + +
- + + + + <%-- Cell with average rating --%> + - + + + <%-- Calculate again because we need the same cell background colour --%> - + - + + + <%-- Calculate again because we need the same cell background colour --%> + + + + + + - - - - - -
- (${columnStatus.count + 0.5})  + (${columnStatus.count}) 
- - 0}"> - bg-success - - " - > - + + + (${columnStatus.count + 0.5})  +
+ 0}"> - bg-success - - " - > - - - - - - - - - - - -
0}"> bg-success " - > - - - <%-- learners see just how many rates they got from other learners --%> -
- x ${rateCount} -
- - <%-- teachers see also who gave the rating --%> - + > + +
0}"> + bg-success + + " + > + + + + + - + + + + +
0}"> + bg-success + + " + > + + + <%-- learners see just how many rates they got from other learners --%> +
+ x ${rateCount} +
+ + <%-- teachers see also who gave the rating --%> + + + +
+ +   +
+
+
+
+
+
0}"> bg-success " - > - - - <%-- learners see just how many rates they got from other learners --%> -
- x ${rateCount} -
- - <%-- teachers see also who gave the rating --%> - - - -
- -   -
+ > + + + <%-- learners see just how many rates they got from other learners --%> +
+ x ${rateCount} +
+ + <%-- teachers see also who gave the rating --%> + + + +
+ +   +
+
+
-
-
+
+
-
- - - - - -
- <%-- It is sufficient to take user names and columns from the first row/criterion --%> - - - - -
- - - - + +
+ + + \ No newline at end of file Index: lams_tool_survey/web/WEB-INF/tags/StyledRating.tag =================================================================== diff -u -re8c858ae097ae8b7861ec6e70e490daec543e34e -r98ddb292326506f7ac611ce4f1a5835050916525 --- lams_tool_survey/web/WEB-INF/tags/StyledRating.tag (.../StyledRating.tag) (revision e8c858ae097ae8b7861ec6e70e490daec543e34e) +++ lams_tool_survey/web/WEB-INF/tags/StyledRating.tag (.../StyledRating.tag) (revision 98ddb292326506f7ac611ce4f1a5835050916525) @@ -1,487 +1,588 @@ -<% - /** - * StyledRating.tag - * Author: Andrey Balan - * Description: Shows the results of a styled rating. Does not allow for update. - */ - %> +<% + /** + * StyledRating.tag + * Author: Andrey Balan + * Description: Shows the results of a styled rating. Does not allow for update. + */ +%> <%@ tag body-content="scriptless" %> <%@ taglib uri="tags-core" prefix="c" %> <%@ taglib uri="tags-fmt" prefix="fmt" %> -<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %> +<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %> <%@ taglib uri="tags-lams" prefix="lams"%> <%@ taglib uri="tags-function" prefix="fn" %> <%@ attribute name="criteriaRatings" required="true" rtexprvalue="true" type="org.lamsfoundation.lams.rating.dto.StyledCriteriaRatingDTO" %> <%@ attribute name="showJustification" required="true" %> <%@ attribute name="alwaysShowAverage" required="true" %> +<%@ attribute name="rubricsPivotView" required="false" %> <%@ attribute name="rubricsInBetweenColumns" required="false" %> + + + -<%@ attribute name="currentUserDisplay" required="true" %> +<%@ attribute name="currentUserDisplay" required="true" %> - + - - - - - - - - - - - - - - - - - - - - - - -
- - - -
-   - - -
-
- - - - - - + - - - + + + - - - - - - - - - - + + + + + + + + + + + - - - - + +
- - - - + +
-   - -
- ${criteriaRatings.ratingCriteria.ratingCriteriaId}-${rating.itemId} -
- ${rating.userRating} -
- - - - - - ${userRating} - - -
- - ${rating.averageRating} - ${rating.numberOfVotes} - -
-
- -
+   + + +
- - - - - - - - - - - - - - - - - -
-
- ${criteriaRatings.ratingCriteria.ratingCriteriaId}-${rating.itemId} -
-
- - ${rating.averageRating} - ${rating.numberOfVotes} - -
-
-
-
-
-
- -
- - -   -
    - - -
  • - - - - - - : -   -    - - (${rating.userRating}) + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + + + + + +
    +   + +
    + ${criteriaRatings.ratingCriteria.ratingCriteriaId}-${rating.itemId} +
    + ${rating.userRating} +
    + + + + + + ${userRating} + + +
    + + ${rating.averageRating} + ${rating.numberOfVotes} + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + +
    +
    + ${criteriaRatings.ratingCriteria.ratingCriteriaId}-${rating.itemId} +
    +
    + + ${rating.averageRating} + ${rating.numberOfVotes} + +
    +
    +
    +
    +
    +
    + +
    + + +   +
      + + +
    • + + - + + + : +   +    + + (${rating.userRating}) + +
    • - - -
      -
    -
    + +
+
- -   -
    - - -
  • - - - - ${rating.averageRating} - - : -   -    - - (${rating.userRating}) + +   +
      + + +
    • + + - + ${rating.averageRating} + + : +   +    + + (${rating.userRating}) + +
    • - +
      +
    + +   +
    - -
- -   -
-
-
+
- + - <%-- Some styles for the table and results --%> - - - - - - - - <%-- Each answer column has the same length, all remaining space is taken by the question column --%> - - - - + .rubrics-user-panel .collapsable-icon-left a:after { + margin-top: 6px; + } + + .rubrics-table.standard-view tr:first-child { + background-color: initial !important; + } + + .rubrics-table.standard-view th { + font-style: normal; + font-weight: bold; + } + + .rubrics-table.standard-view td:first-child { + font-weight: bold; + } + + .rubrics-table.pivot-view td:not(:first-child) { + text-align: center; + } + + .rubrics-table.pivot-view th { + font-style: normal; + text-align: center; + } + + .column-header-span { + font-style: italic; + } + + .rubrics-table .rubrics-rating-cell { + border-top: none; + + } + .rubrics-table .rubrics-rating-cell .rubrics-rating-count { + text-align: right; + } + + .rubrics-table .rubrics-rating-cell .rubrics-rating-count > .badge { + color: gray; + background-color: white; + font-size: large; + } + + .rubrics-table .rubrics-rating-cell .rubrics-rating-learner { + margin-top: 10px; + } + + .rubrics-table .rubrics-description-cell { + border-bottom: none; + } + + + + + +
- (${columnStatus.count})  -
+ + <%-- Each answer column has the same length, all remaining space is taken by the question column --%> + + - - - - - - - - - - - <%-- These variables are for counting average rating for the given row --%> - - - - - <%-- Check if any other learner rated this learner for this column --%> - - - - - - - - + + + + + + + + + - - - <%-- Check if any other learner rated this learner for this 0.5 column --%> + + <%-- These variables are for counting average rating for the given row --%> + + + + + <%-- Check if any other learner rated this learner for this column --%> - + - - + + - - - - - <%-- Cell with average rating --%> - - - - - <%-- Calculate again because we need the same cell background colour --%> - - - - - - + + + <%-- Check if any other learner rated this learner for this 0.5 column --%> + - -
- -   -
-
+
+ + + +
- + + + + <%-- Cell with average rating --%> + - + + + <%-- Calculate again because we need the same cell background colour --%> - + - + + + <%-- Calculate again because we need the same cell background colour --%> + + + + + + - - - - - -
- (${columnStatus.count + 0.5})  + (${columnStatus.count}) 
- - 0}"> - bg-success - - " - > - + + + (${columnStatus.count + 0.5})  +
+ 0}"> - bg-success - - " - > - - - - - - - - - - - -
0}"> bg-success " - > - - - <%-- learners see just how many rates they got from other learners --%> -
- x ${rateCount} -
- - <%-- teachers see also who gave the rating --%> - + > + +
0}"> + bg-success + + " + > + + + + + - + + + + +
0}"> + bg-success + + " + > + + + <%-- learners see just how many rates they got from other learners --%> +
+ x ${rateCount} +
+ + <%-- teachers see also who gave the rating --%> + + + +
+ +   +
+
+
+
+
+
0}"> bg-success " - > - - - <%-- learners see just how many rates they got from other learners --%> -
- x ${rateCount} -
- - <%-- teachers see also who gave the rating --%> - - - -
- -   -
+ > + + + <%-- learners see just how many rates they got from other learners --%> +
+ x ${rateCount} +
+ + <%-- teachers see also who gave the rating --%> + + + +
+ +   +
+
+
-
-
+
+
-
- - - - - -
- <%-- It is sufficient to take user names and columns from the first row/criterion --%> - - - - -
- - - - + +
+ + + \ No newline at end of file Index: lams_tool_task/web/WEB-INF/tags/StyledRating.tag =================================================================== diff -u -re8c858ae097ae8b7861ec6e70e490daec543e34e -r98ddb292326506f7ac611ce4f1a5835050916525 --- lams_tool_task/web/WEB-INF/tags/StyledRating.tag (.../StyledRating.tag) (revision e8c858ae097ae8b7861ec6e70e490daec543e34e) +++ lams_tool_task/web/WEB-INF/tags/StyledRating.tag (.../StyledRating.tag) (revision 98ddb292326506f7ac611ce4f1a5835050916525) @@ -1,487 +1,588 @@ -<% - /** - * StyledRating.tag - * Author: Andrey Balan - * Description: Shows the results of a styled rating. Does not allow for update. - */ - %> +<% + /** + * StyledRating.tag + * Author: Andrey Balan + * Description: Shows the results of a styled rating. Does not allow for update. + */ +%> <%@ tag body-content="scriptless" %> <%@ taglib uri="tags-core" prefix="c" %> <%@ taglib uri="tags-fmt" prefix="fmt" %> -<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %> +<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %> <%@ taglib uri="tags-lams" prefix="lams"%> <%@ taglib uri="tags-function" prefix="fn" %> <%@ attribute name="criteriaRatings" required="true" rtexprvalue="true" type="org.lamsfoundation.lams.rating.dto.StyledCriteriaRatingDTO" %> <%@ attribute name="showJustification" required="true" %> <%@ attribute name="alwaysShowAverage" required="true" %> +<%@ attribute name="rubricsPivotView" required="false" %> <%@ attribute name="rubricsInBetweenColumns" required="false" %> + + + -<%@ attribute name="currentUserDisplay" required="true" %> +<%@ attribute name="currentUserDisplay" required="true" %> - + - - - - - - - - - - - - - - - - - - - - - - -
- - - -
-   - - -
-
- - - - - - + - - - + + + - - - - - - - - - - + + + + + + + + + + + - - - - + +
- - - - + +
-   - -
- ${criteriaRatings.ratingCriteria.ratingCriteriaId}-${rating.itemId} -
- ${rating.userRating} -
- - - - - - ${userRating} - - -
- - ${rating.averageRating} - ${rating.numberOfVotes} - -
-
- -
+   + + +
- - - - - - - - - - - - - - - - - -
-
- ${criteriaRatings.ratingCriteria.ratingCriteriaId}-${rating.itemId} -
-
- - ${rating.averageRating} - ${rating.numberOfVotes} - -
-
-
-
-
-
- -
- - -   -
    - - -
  • - - - - - - : -   -    - - (${rating.userRating}) + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + + + + + +
    +   + +
    + ${criteriaRatings.ratingCriteria.ratingCriteriaId}-${rating.itemId} +
    + ${rating.userRating} +
    + + + + + + ${userRating} + + +
    + + ${rating.averageRating} + ${rating.numberOfVotes} + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + +
    +
    + ${criteriaRatings.ratingCriteria.ratingCriteriaId}-${rating.itemId} +
    +
    + + ${rating.averageRating} + ${rating.numberOfVotes} + +
    +
    +
    +
    +
    +
    + +
    + + +   +
      + + +
    • + + - + + + : +   +    + + (${rating.userRating}) + +
    • - - -
      -
    -
    + +
+
- -   -
    - - -
  • - - - - ${rating.averageRating} - - : -   -    - - (${rating.userRating}) + +   +
      + + +
    • + + - + ${rating.averageRating} + + : +   +    + + (${rating.userRating}) + +
    • - +
      +
    + +   +
    - -
- -   -
-
-
+
- + - <%-- Some styles for the table and results --%> - - - - - - - - <%-- Each answer column has the same length, all remaining space is taken by the question column --%> - - - - + .rubrics-user-panel .collapsable-icon-left a:after { + margin-top: 6px; + } + + .rubrics-table.standard-view tr:first-child { + background-color: initial !important; + } + + .rubrics-table.standard-view th { + font-style: normal; + font-weight: bold; + } + + .rubrics-table.standard-view td:first-child { + font-weight: bold; + } + + .rubrics-table.pivot-view td:not(:first-child) { + text-align: center; + } + + .rubrics-table.pivot-view th { + font-style: normal; + text-align: center; + } + + .column-header-span { + font-style: italic; + } + + .rubrics-table .rubrics-rating-cell { + border-top: none; + + } + .rubrics-table .rubrics-rating-cell .rubrics-rating-count { + text-align: right; + } + + .rubrics-table .rubrics-rating-cell .rubrics-rating-count > .badge { + color: gray; + background-color: white; + font-size: large; + } + + .rubrics-table .rubrics-rating-cell .rubrics-rating-learner { + margin-top: 10px; + } + + .rubrics-table .rubrics-description-cell { + border-bottom: none; + } + + + + + +
- (${columnStatus.count})  -
+ + <%-- Each answer column has the same length, all remaining space is taken by the question column --%> + + - - - - - - - - - - - <%-- These variables are for counting average rating for the given row --%> - - - - - <%-- Check if any other learner rated this learner for this column --%> - - - - - - - - + + + + + + + + + - - - <%-- Check if any other learner rated this learner for this 0.5 column --%> + + <%-- These variables are for counting average rating for the given row --%> + + + + + <%-- Check if any other learner rated this learner for this column --%> - + - - + + - - - - - <%-- Cell with average rating --%> - - - - - <%-- Calculate again because we need the same cell background colour --%> - - - - - - + + + <%-- Check if any other learner rated this learner for this 0.5 column --%> + - -
- -   -
-
+
+ + + +
- + + + + <%-- Cell with average rating --%> + - + + + <%-- Calculate again because we need the same cell background colour --%> - + - + + + <%-- Calculate again because we need the same cell background colour --%> + + + + + + - - - - - -
- (${columnStatus.count + 0.5})  + (${columnStatus.count}) 
- - 0}"> - bg-success - - " - > - + + + (${columnStatus.count + 0.5})  +
+ 0}"> - bg-success - - " - > - - - - - - - - - - - -
0}"> bg-success " - > - - - <%-- learners see just how many rates they got from other learners --%> -
- x ${rateCount} -
- - <%-- teachers see also who gave the rating --%> - + > + +
0}"> + bg-success + + " + > + + + + + - + + + + +
0}"> + bg-success + + " + > + + + <%-- learners see just how many rates they got from other learners --%> +
+ x ${rateCount} +
+ + <%-- teachers see also who gave the rating --%> + + + +
+ +   +
+
+
+
+
+
0}"> bg-success " - > - - - <%-- learners see just how many rates they got from other learners --%> -
- x ${rateCount} -
- - <%-- teachers see also who gave the rating --%> - - - -
- -   -
+ > + + + <%-- learners see just how many rates they got from other learners --%> +
+ x ${rateCount} +
+ + <%-- teachers see also who gave the rating --%> + + + +
+ +   +
+
+
-
-
+
+
-
- - - - - -
- <%-- It is sufficient to take user names and columns from the first row/criterion --%> - - - - -
- - - - + +
+ + + \ No newline at end of file Index: lams_tool_vote/web/WEB-INF/tags/StyledRating.tag =================================================================== diff -u -re8c858ae097ae8b7861ec6e70e490daec543e34e -r98ddb292326506f7ac611ce4f1a5835050916525 --- lams_tool_vote/web/WEB-INF/tags/StyledRating.tag (.../StyledRating.tag) (revision e8c858ae097ae8b7861ec6e70e490daec543e34e) +++ lams_tool_vote/web/WEB-INF/tags/StyledRating.tag (.../StyledRating.tag) (revision 98ddb292326506f7ac611ce4f1a5835050916525) @@ -1,487 +1,588 @@ -<% - /** - * StyledRating.tag - * Author: Andrey Balan - * Description: Shows the results of a styled rating. Does not allow for update. - */ - %> +<% + /** + * StyledRating.tag + * Author: Andrey Balan + * Description: Shows the results of a styled rating. Does not allow for update. + */ +%> <%@ tag body-content="scriptless" %> <%@ taglib uri="tags-core" prefix="c" %> <%@ taglib uri="tags-fmt" prefix="fmt" %> -<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %> +<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %> <%@ taglib uri="tags-lams" prefix="lams"%> <%@ taglib uri="tags-function" prefix="fn" %> <%@ attribute name="criteriaRatings" required="true" rtexprvalue="true" type="org.lamsfoundation.lams.rating.dto.StyledCriteriaRatingDTO" %> <%@ attribute name="showJustification" required="true" %> <%@ attribute name="alwaysShowAverage" required="true" %> +<%@ attribute name="rubricsPivotView" required="false" %> <%@ attribute name="rubricsInBetweenColumns" required="false" %> + + + -<%@ attribute name="currentUserDisplay" required="true" %> +<%@ attribute name="currentUserDisplay" required="true" %> - + - - - - - - - - - - - - - - - - - - - - - - -
- - - -
-   - - -
-
- - - - - - + - - - + + + - - - - - - - - - - + + + + + + + + + + + - - - - + +
- - - - + +
-   - -
- ${criteriaRatings.ratingCriteria.ratingCriteriaId}-${rating.itemId} -
- ${rating.userRating} -
- - - - - - ${userRating} - - -
- - ${rating.averageRating} - ${rating.numberOfVotes} - -
-
- -
+   + + +
- - - - - - - - - - - - - - - - - -
-
- ${criteriaRatings.ratingCriteria.ratingCriteriaId}-${rating.itemId} -
-
- - ${rating.averageRating} - ${rating.numberOfVotes} - -
-
-
-
-
-
- -
- - -   -
    - - -
  • - - - - - - : -   -    - - (${rating.userRating}) + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + + + + + +
    +   + +
    + ${criteriaRatings.ratingCriteria.ratingCriteriaId}-${rating.itemId} +
    + ${rating.userRating} +
    + + + + + + ${userRating} + + +
    + + ${rating.averageRating} + ${rating.numberOfVotes} + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + +
    +
    + ${criteriaRatings.ratingCriteria.ratingCriteriaId}-${rating.itemId} +
    +
    + + ${rating.averageRating} + ${rating.numberOfVotes} + +
    +
    +
    +
    +
    +
    + +
    + + +   +
      + + +
    • + + - + + + : +   +    + + (${rating.userRating}) + +
    • - - -
      -
    -
    + +
+
- -   -
    - - -
  • - - - - ${rating.averageRating} - - : -   -    - - (${rating.userRating}) + +   +
      + + +
    • + + - + ${rating.averageRating} + + : +   +    + + (${rating.userRating}) + +
    • - +
      +
    + +   +
    - -
- -   -
-
-
+
- + - <%-- Some styles for the table and results --%> - - - - - - - - <%-- Each answer column has the same length, all remaining space is taken by the question column --%> - - - - + .rubrics-user-panel .collapsable-icon-left a:after { + margin-top: 6px; + } + + .rubrics-table.standard-view tr:first-child { + background-color: initial !important; + } + + .rubrics-table.standard-view th { + font-style: normal; + font-weight: bold; + } + + .rubrics-table.standard-view td:first-child { + font-weight: bold; + } + + .rubrics-table.pivot-view td:not(:first-child) { + text-align: center; + } + + .rubrics-table.pivot-view th { + font-style: normal; + text-align: center; + } + + .column-header-span { + font-style: italic; + } + + .rubrics-table .rubrics-rating-cell { + border-top: none; + + } + .rubrics-table .rubrics-rating-cell .rubrics-rating-count { + text-align: right; + } + + .rubrics-table .rubrics-rating-cell .rubrics-rating-count > .badge { + color: gray; + background-color: white; + font-size: large; + } + + .rubrics-table .rubrics-rating-cell .rubrics-rating-learner { + margin-top: 10px; + } + + .rubrics-table .rubrics-description-cell { + border-bottom: none; + } + + + + + +
- (${columnStatus.count})  -
+ + <%-- Each answer column has the same length, all remaining space is taken by the question column --%> + + - - - - - - - - - - - <%-- These variables are for counting average rating for the given row --%> - - - - - <%-- Check if any other learner rated this learner for this column --%> - - - - - - - - + + + + + + + + + - - - <%-- Check if any other learner rated this learner for this 0.5 column --%> + + <%-- These variables are for counting average rating for the given row --%> + + + + + <%-- Check if any other learner rated this learner for this column --%> - + - - + + - - - - - <%-- Cell with average rating --%> - - - - - <%-- Calculate again because we need the same cell background colour --%> - - - - - - + + + <%-- Check if any other learner rated this learner for this 0.5 column --%> + - -
- -   -
-
+
+ + + +
- + + + + <%-- Cell with average rating --%> + - + + + <%-- Calculate again because we need the same cell background colour --%> - + - + + + <%-- Calculate again because we need the same cell background colour --%> + + + + + + - - - - - -
- (${columnStatus.count + 0.5})  + (${columnStatus.count}) 
- - 0}"> - bg-success - - " - > - + + + (${columnStatus.count + 0.5})  +
+ 0}"> - bg-success - - " - > - - - - - - - - - - - -
0}"> bg-success " - > - - - <%-- learners see just how many rates they got from other learners --%> -
- x ${rateCount} -
- - <%-- teachers see also who gave the rating --%> - + > + +
0}"> + bg-success + + " + > + + + + + - + + + + +
0}"> + bg-success + + " + > + + + <%-- learners see just how many rates they got from other learners --%> +
+ x ${rateCount} +
+ + <%-- teachers see also who gave the rating --%> + + + +
+ +   +
+
+
+
+
+
0}"> bg-success " - > - - - <%-- learners see just how many rates they got from other learners --%> -
- x ${rateCount} -
- - <%-- teachers see also who gave the rating --%> - - - -
- -   -
+ > + + + <%-- learners see just how many rates they got from other learners --%> +
+ x ${rateCount} +
+ + <%-- teachers see also who gave the rating --%> + + + +
+ +   +
+
+
-
-
+
+
-
- - - - - -
- <%-- It is sufficient to take user names and columns from the first row/criterion --%> - - - - -
- - - - + +
+ + + \ No newline at end of file Index: lams_tool_whiteboard/web/WEB-INF/tags/StyledRating.tag =================================================================== diff -u -re8c858ae097ae8b7861ec6e70e490daec543e34e -r98ddb292326506f7ac611ce4f1a5835050916525 --- lams_tool_whiteboard/web/WEB-INF/tags/StyledRating.tag (.../StyledRating.tag) (revision e8c858ae097ae8b7861ec6e70e490daec543e34e) +++ lams_tool_whiteboard/web/WEB-INF/tags/StyledRating.tag (.../StyledRating.tag) (revision 98ddb292326506f7ac611ce4f1a5835050916525) @@ -1,487 +1,588 @@ -<% - /** - * StyledRating.tag - * Author: Andrey Balan - * Description: Shows the results of a styled rating. Does not allow for update. - */ - %> +<% + /** + * StyledRating.tag + * Author: Andrey Balan + * Description: Shows the results of a styled rating. Does not allow for update. + */ +%> <%@ tag body-content="scriptless" %> <%@ taglib uri="tags-core" prefix="c" %> <%@ taglib uri="tags-fmt" prefix="fmt" %> -<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %> +<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %> <%@ taglib uri="tags-lams" prefix="lams"%> <%@ taglib uri="tags-function" prefix="fn" %> <%@ attribute name="criteriaRatings" required="true" rtexprvalue="true" type="org.lamsfoundation.lams.rating.dto.StyledCriteriaRatingDTO" %> <%@ attribute name="showJustification" required="true" %> <%@ attribute name="alwaysShowAverage" required="true" %> +<%@ attribute name="rubricsPivotView" required="false" %> <%@ attribute name="rubricsInBetweenColumns" required="false" %> + + + -<%@ attribute name="currentUserDisplay" required="true" %> +<%@ attribute name="currentUserDisplay" required="true" %> - + - - - - - - - - - - - - - - - - - - - - - - -
- - - -
-   - - -
-
- - - - - - + - - - + + + - - - - - - - - - - + + + + + + + + + + + - - - - + +
- - - - + +
-   - -
- ${criteriaRatings.ratingCriteria.ratingCriteriaId}-${rating.itemId} -
- ${rating.userRating} -
- - - - - - ${userRating} - - -
- - ${rating.averageRating} - ${rating.numberOfVotes} - -
-
- -
+   + + +
- - - - - - - - - - - - - - - - - -
-
- ${criteriaRatings.ratingCriteria.ratingCriteriaId}-${rating.itemId} -
-
- - ${rating.averageRating} - ${rating.numberOfVotes} - -
-
-
-
-
-
- -
- - -   -
    - - -
  • - - - - - - : -   -    - - (${rating.userRating}) + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + + + + + +
    +   + +
    + ${criteriaRatings.ratingCriteria.ratingCriteriaId}-${rating.itemId} +
    + ${rating.userRating} +
    + + + + + + ${userRating} + + +
    + + ${rating.averageRating} + ${rating.numberOfVotes} + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + +
    +
    + ${criteriaRatings.ratingCriteria.ratingCriteriaId}-${rating.itemId} +
    +
    + + ${rating.averageRating} + ${rating.numberOfVotes} + +
    +
    +
    +
    +
    +
    + +
    + + +   +
      + + +
    • + + - + + + : +   +    + + (${rating.userRating}) + +
    • - - -
      -
    -
    + +
+
- -   -
    - - -
  • - - - - ${rating.averageRating} - - : -   -    - - (${rating.userRating}) + +   +
      + + +
    • + + - + ${rating.averageRating} + + : +   +    + + (${rating.userRating}) + +
    • - +
      +
    + +   +
    - -
- -   -
-
-
+
- + - <%-- Some styles for the table and results --%> - - - - - - - - <%-- Each answer column has the same length, all remaining space is taken by the question column --%> - - - - + .rubrics-user-panel .collapsable-icon-left a:after { + margin-top: 6px; + } + + .rubrics-table.standard-view tr:first-child { + background-color: initial !important; + } + + .rubrics-table.standard-view th { + font-style: normal; + font-weight: bold; + } + + .rubrics-table.standard-view td:first-child { + font-weight: bold; + } + + .rubrics-table.pivot-view td:not(:first-child) { + text-align: center; + } + + .rubrics-table.pivot-view th { + font-style: normal; + text-align: center; + } + + .column-header-span { + font-style: italic; + } + + .rubrics-table .rubrics-rating-cell { + border-top: none; + + } + .rubrics-table .rubrics-rating-cell .rubrics-rating-count { + text-align: right; + } + + .rubrics-table .rubrics-rating-cell .rubrics-rating-count > .badge { + color: gray; + background-color: white; + font-size: large; + } + + .rubrics-table .rubrics-rating-cell .rubrics-rating-learner { + margin-top: 10px; + } + + .rubrics-table .rubrics-description-cell { + border-bottom: none; + } + + + + + +
- (${columnStatus.count})  -
+ + <%-- Each answer column has the same length, all remaining space is taken by the question column --%> + + - - - - - - - - - - - <%-- These variables are for counting average rating for the given row --%> - - - - - <%-- Check if any other learner rated this learner for this column --%> - - - - - - - - + + + + + + + + + - - - <%-- Check if any other learner rated this learner for this 0.5 column --%> + + <%-- These variables are for counting average rating for the given row --%> + + + + + <%-- Check if any other learner rated this learner for this column --%> - + - - + + - - - - - <%-- Cell with average rating --%> - - - - - <%-- Calculate again because we need the same cell background colour --%> - - - - - - + + + <%-- Check if any other learner rated this learner for this 0.5 column --%> + - -
- -   -
-
+
+ + + +
- + + + + <%-- Cell with average rating --%> + - + + + <%-- Calculate again because we need the same cell background colour --%> - + - + + + <%-- Calculate again because we need the same cell background colour --%> + + + + + + - - - - - -
- (${columnStatus.count + 0.5})  + (${columnStatus.count}) 
- - 0}"> - bg-success - - " - > - + + + (${columnStatus.count + 0.5})  +
+ 0}"> - bg-success - - " - > - - - - - - - - - - - -
0}"> bg-success " - > - - - <%-- learners see just how many rates they got from other learners --%> -
- x ${rateCount} -
- - <%-- teachers see also who gave the rating --%> - + > + +
0}"> + bg-success + + " + > + + + + + - + + + + +
0}"> + bg-success + + " + > + + + <%-- learners see just how many rates they got from other learners --%> +
+ x ${rateCount} +
+ + <%-- teachers see also who gave the rating --%> + + + +
+ +   +
+
+
+
+
+
0}"> bg-success " - > - - - <%-- learners see just how many rates they got from other learners --%> -
- x ${rateCount} -
- - <%-- teachers see also who gave the rating --%> - - - -
- -   -
+ > + + + <%-- learners see just how many rates they got from other learners --%> +
+ x ${rateCount} +
+ + <%-- teachers see also who gave the rating --%> + + + +
+ +   +
+
+
-
-
+
+
-
- - - - - -
- <%-- It is sufficient to take user names and columns from the first row/criterion --%> - - - - -
- - - - + +
+ + + \ No newline at end of file Index: lams_tool_wiki/web/WEB-INF/tags/StyledRating.tag =================================================================== diff -u -re8c858ae097ae8b7861ec6e70e490daec543e34e -r98ddb292326506f7ac611ce4f1a5835050916525 --- lams_tool_wiki/web/WEB-INF/tags/StyledRating.tag (.../StyledRating.tag) (revision e8c858ae097ae8b7861ec6e70e490daec543e34e) +++ lams_tool_wiki/web/WEB-INF/tags/StyledRating.tag (.../StyledRating.tag) (revision 98ddb292326506f7ac611ce4f1a5835050916525) @@ -1,487 +1,588 @@ -<% - /** - * StyledRating.tag - * Author: Andrey Balan - * Description: Shows the results of a styled rating. Does not allow for update. - */ - %> +<% + /** + * StyledRating.tag + * Author: Andrey Balan + * Description: Shows the results of a styled rating. Does not allow for update. + */ +%> <%@ tag body-content="scriptless" %> <%@ taglib uri="tags-core" prefix="c" %> <%@ taglib uri="tags-fmt" prefix="fmt" %> -<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %> +<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %> <%@ taglib uri="tags-lams" prefix="lams"%> <%@ taglib uri="tags-function" prefix="fn" %> <%@ attribute name="criteriaRatings" required="true" rtexprvalue="true" type="org.lamsfoundation.lams.rating.dto.StyledCriteriaRatingDTO" %> <%@ attribute name="showJustification" required="true" %> <%@ attribute name="alwaysShowAverage" required="true" %> +<%@ attribute name="rubricsPivotView" required="false" %> <%@ attribute name="rubricsInBetweenColumns" required="false" %> + + + -<%@ attribute name="currentUserDisplay" required="true" %> +<%@ attribute name="currentUserDisplay" required="true" %> - + - - - - - - - - - - - - - - - - - - - - - - -
- - - -
-   - - -
-
- - - - - - + - - - + + + - - - - - - - - - - + + + + + + + + + + + - - - - + +
- - - - + +
-   - -
- ${criteriaRatings.ratingCriteria.ratingCriteriaId}-${rating.itemId} -
- ${rating.userRating} -
- - - - - - ${userRating} - - -
- - ${rating.averageRating} - ${rating.numberOfVotes} - -
-
- -
+   + + +
- - - - - - - - - - - - - - - - - -
-
- ${criteriaRatings.ratingCriteria.ratingCriteriaId}-${rating.itemId} -
-
- - ${rating.averageRating} - ${rating.numberOfVotes} - -
-
-
-
-
-
- -
- - -   -
    - - -
  • - - - - - - : -   -    - - (${rating.userRating}) + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + + + + + +
    +   + +
    + ${criteriaRatings.ratingCriteria.ratingCriteriaId}-${rating.itemId} +
    + ${rating.userRating} +
    + + + + + + ${userRating} + + +
    + + ${rating.averageRating} + ${rating.numberOfVotes} + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + +
    +
    + ${criteriaRatings.ratingCriteria.ratingCriteriaId}-${rating.itemId} +
    +
    + + ${rating.averageRating} + ${rating.numberOfVotes} + +
    +
    +
    +
    +
    +
    + +
    + + +   +
      + + +
    • + + - + + + : +   +    + + (${rating.userRating}) + +
    • - - -
      -
    -
    + +
+
- -   -
    - - -
  • - - - - ${rating.averageRating} - - : -   -    - - (${rating.userRating}) + +   +
      + + +
    • + + - + ${rating.averageRating} + + : +   +    + + (${rating.userRating}) + +
    • - +
      +
    + +   +
    - -
- -   -
-
-
+
- + - <%-- Some styles for the table and results --%> - - - - - - - - <%-- Each answer column has the same length, all remaining space is taken by the question column --%> - - - - + .rubrics-user-panel .collapsable-icon-left a:after { + margin-top: 6px; + } + + .rubrics-table.standard-view tr:first-child { + background-color: initial !important; + } + + .rubrics-table.standard-view th { + font-style: normal; + font-weight: bold; + } + + .rubrics-table.standard-view td:first-child { + font-weight: bold; + } + + .rubrics-table.pivot-view td:not(:first-child) { + text-align: center; + } + + .rubrics-table.pivot-view th { + font-style: normal; + text-align: center; + } + + .column-header-span { + font-style: italic; + } + + .rubrics-table .rubrics-rating-cell { + border-top: none; + + } + .rubrics-table .rubrics-rating-cell .rubrics-rating-count { + text-align: right; + } + + .rubrics-table .rubrics-rating-cell .rubrics-rating-count > .badge { + color: gray; + background-color: white; + font-size: large; + } + + .rubrics-table .rubrics-rating-cell .rubrics-rating-learner { + margin-top: 10px; + } + + .rubrics-table .rubrics-description-cell { + border-bottom: none; + } + + + + + +
- (${columnStatus.count})  -
+ + <%-- Each answer column has the same length, all remaining space is taken by the question column --%> + + - - - - - - - - - - - <%-- These variables are for counting average rating for the given row --%> - - - - - <%-- Check if any other learner rated this learner for this column --%> - - - - - - - - + + + + + + + + + - - - <%-- Check if any other learner rated this learner for this 0.5 column --%> + + <%-- These variables are for counting average rating for the given row --%> + + + + + <%-- Check if any other learner rated this learner for this column --%> - + - - + + - - - - - <%-- Cell with average rating --%> - - - - - <%-- Calculate again because we need the same cell background colour --%> - - - - - - + + + <%-- Check if any other learner rated this learner for this 0.5 column --%> + - -
- -   -
-
+
+ + + +
- + + + + <%-- Cell with average rating --%> + - + + + <%-- Calculate again because we need the same cell background colour --%> - + - + + + <%-- Calculate again because we need the same cell background colour --%> + + + + + + - - - - - -
- (${columnStatus.count + 0.5})  + (${columnStatus.count}) 
- - 0}"> - bg-success - - " - > - + + + (${columnStatus.count + 0.5})  +
+ 0}"> - bg-success - - " - > - - - - - - - - - - - -
0}"> bg-success " - > - - - <%-- learners see just how many rates they got from other learners --%> -
- x ${rateCount} -
- - <%-- teachers see also who gave the rating --%> - + > + +
0}"> + bg-success + + " + > + + + + + - + + + + +
0}"> + bg-success + + " + > + + + <%-- learners see just how many rates they got from other learners --%> +
+ x ${rateCount} +
+ + <%-- teachers see also who gave the rating --%> + + + +
+ +   +
+
+
+
+
+
0}"> bg-success " - > - - - <%-- learners see just how many rates they got from other learners --%> -
- x ${rateCount} -
- - <%-- teachers see also who gave the rating --%> - - - -
- -   -
+ > + + + <%-- learners see just how many rates they got from other learners --%> +
+ x ${rateCount} +
+ + <%-- teachers see also who gave the rating --%> + + + +
+ +   +
+
+
-
-
+
+
-
- - - - - -
- <%-- It is sufficient to take user names and columns from the first row/criterion --%> - - - - -
- - - - + +
+ + + \ No newline at end of file Index: lams_tool_zoom/web/WEB-INF/tags/StyledRating.tag =================================================================== diff -u -re8c858ae097ae8b7861ec6e70e490daec543e34e -r98ddb292326506f7ac611ce4f1a5835050916525 --- lams_tool_zoom/web/WEB-INF/tags/StyledRating.tag (.../StyledRating.tag) (revision e8c858ae097ae8b7861ec6e70e490daec543e34e) +++ lams_tool_zoom/web/WEB-INF/tags/StyledRating.tag (.../StyledRating.tag) (revision 98ddb292326506f7ac611ce4f1a5835050916525) @@ -1,487 +1,588 @@ -<% - /** - * StyledRating.tag - * Author: Andrey Balan - * Description: Shows the results of a styled rating. Does not allow for update. - */ - %> +<% + /** + * StyledRating.tag + * Author: Andrey Balan + * Description: Shows the results of a styled rating. Does not allow for update. + */ +%> <%@ tag body-content="scriptless" %> <%@ taglib uri="tags-core" prefix="c" %> <%@ taglib uri="tags-fmt" prefix="fmt" %> -<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %> +<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %> <%@ taglib uri="tags-lams" prefix="lams"%> <%@ taglib uri="tags-function" prefix="fn" %> <%@ attribute name="criteriaRatings" required="true" rtexprvalue="true" type="org.lamsfoundation.lams.rating.dto.StyledCriteriaRatingDTO" %> <%@ attribute name="showJustification" required="true" %> <%@ attribute name="alwaysShowAverage" required="true" %> +<%@ attribute name="rubricsPivotView" required="false" %> <%@ attribute name="rubricsInBetweenColumns" required="false" %> + + + -<%@ attribute name="currentUserDisplay" required="true" %> +<%@ attribute name="currentUserDisplay" required="true" %> - + - - - - - - - - - - - - - - - - - - - - - - -
- - - -
-   - - -
-
- - - - - - + - - - + + + - - - - - - - - - - + + + + + + + + + + + - - - - + +
- - - - + +
-   - -
- ${criteriaRatings.ratingCriteria.ratingCriteriaId}-${rating.itemId} -
- ${rating.userRating} -
- - - - - - ${userRating} - - -
- - ${rating.averageRating} - ${rating.numberOfVotes} - -
-
- -
+   + + +
- - - - - - - - - - - - - - - - - -
-
- ${criteriaRatings.ratingCriteria.ratingCriteriaId}-${rating.itemId} -
-
- - ${rating.averageRating} - ${rating.numberOfVotes} - -
-
-
-
-
-
- -
- - -   -
    - - -
  • - - - - - - : -   -    - - (${rating.userRating}) + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + + + + + +
    +   + +
    + ${criteriaRatings.ratingCriteria.ratingCriteriaId}-${rating.itemId} +
    + ${rating.userRating} +
    + + + + + + ${userRating} + + +
    + + ${rating.averageRating} + ${rating.numberOfVotes} + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + +
    +
    + ${criteriaRatings.ratingCriteria.ratingCriteriaId}-${rating.itemId} +
    +
    + + ${rating.averageRating} + ${rating.numberOfVotes} + +
    +
    +
    +
    +
    +
    + +
    + + +   +
      + + +
    • + + - + + + : +   +    + + (${rating.userRating}) + +
    • - - -
      -
    -
    + +
+
- -   -
    - - -
  • - - - - ${rating.averageRating} - - : -   -    - - (${rating.userRating}) + +   +
      + + +
    • + + - + ${rating.averageRating} + + : +   +    + + (${rating.userRating}) + +
    • - +
      +
    + +   +
    - -
- -   -
-
-
+
- + - <%-- Some styles for the table and results --%> - - - - - - - - <%-- Each answer column has the same length, all remaining space is taken by the question column --%> - - - - + .rubrics-user-panel .collapsable-icon-left a:after { + margin-top: 6px; + } + + .rubrics-table.standard-view tr:first-child { + background-color: initial !important; + } + + .rubrics-table.standard-view th { + font-style: normal; + font-weight: bold; + } + + .rubrics-table.standard-view td:first-child { + font-weight: bold; + } + + .rubrics-table.pivot-view td:not(:first-child) { + text-align: center; + } + + .rubrics-table.pivot-view th { + font-style: normal; + text-align: center; + } + + .column-header-span { + font-style: italic; + } + + .rubrics-table .rubrics-rating-cell { + border-top: none; + + } + .rubrics-table .rubrics-rating-cell .rubrics-rating-count { + text-align: right; + } + + .rubrics-table .rubrics-rating-cell .rubrics-rating-count > .badge { + color: gray; + background-color: white; + font-size: large; + } + + .rubrics-table .rubrics-rating-cell .rubrics-rating-learner { + margin-top: 10px; + } + + .rubrics-table .rubrics-description-cell { + border-bottom: none; + } + + + + + +
- (${columnStatus.count})  -
+ + <%-- Each answer column has the same length, all remaining space is taken by the question column --%> + + - - - - - - - - - - - <%-- These variables are for counting average rating for the given row --%> - - - - - <%-- Check if any other learner rated this learner for this column --%> - - - - - - - - + + + + + + + + + - - - <%-- Check if any other learner rated this learner for this 0.5 column --%> + + <%-- These variables are for counting average rating for the given row --%> + + + + + <%-- Check if any other learner rated this learner for this column --%> - + - - + + - - - - - <%-- Cell with average rating --%> - - - - - <%-- Calculate again because we need the same cell background colour --%> - - - - - - + + + <%-- Check if any other learner rated this learner for this 0.5 column --%> + - -
- -   -
-
+
+ + + +
- + + + + <%-- Cell with average rating --%> + - + + + <%-- Calculate again because we need the same cell background colour --%> - + - + + + <%-- Calculate again because we need the same cell background colour --%> + + + + + + - - - - - -
- (${columnStatus.count + 0.5})  + (${columnStatus.count}) 
- - 0}"> - bg-success - - " - > - + + + (${columnStatus.count + 0.5})  +
+ 0}"> - bg-success - - " - > - - - - - - - - - - - -
0}"> bg-success " - > - - - <%-- learners see just how many rates they got from other learners --%> -
- x ${rateCount} -
- - <%-- teachers see also who gave the rating --%> - + > + +
0}"> + bg-success + + " + > + + + + + - + + + + +
0}"> + bg-success + + " + > + + + <%-- learners see just how many rates they got from other learners --%> +
+ x ${rateCount} +
+ + <%-- teachers see also who gave the rating --%> + + + +
+ +   +
+
+
+
+
+
0}"> bg-success " - > - - - <%-- learners see just how many rates they got from other learners --%> -
- x ${rateCount} -
- - <%-- teachers see also who gave the rating --%> - - - -
- -   -
+ > + + + <%-- learners see just how many rates they got from other learners --%> +
+ x ${rateCount} +
+ + <%-- teachers see also who gave the rating --%> + + + +
+ +   +
+
+
-
-
+
+
-
- - - - - -
- <%-- It is sufficient to take user names and columns from the first row/criterion --%> - - - - -
- - - - + +
+ + + \ No newline at end of file Index: lams_www/web/WEB-INF/tags/StyledRating.tag =================================================================== diff -u -re8c858ae097ae8b7861ec6e70e490daec543e34e -r98ddb292326506f7ac611ce4f1a5835050916525 --- lams_www/web/WEB-INF/tags/StyledRating.tag (.../StyledRating.tag) (revision e8c858ae097ae8b7861ec6e70e490daec543e34e) +++ lams_www/web/WEB-INF/tags/StyledRating.tag (.../StyledRating.tag) (revision 98ddb292326506f7ac611ce4f1a5835050916525) @@ -1,487 +1,588 @@ -<% - /** - * StyledRating.tag - * Author: Andrey Balan - * Description: Shows the results of a styled rating. Does not allow for update. - */ - %> +<% + /** + * StyledRating.tag + * Author: Andrey Balan + * Description: Shows the results of a styled rating. Does not allow for update. + */ +%> <%@ tag body-content="scriptless" %> <%@ taglib uri="tags-core" prefix="c" %> <%@ taglib uri="tags-fmt" prefix="fmt" %> -<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %> +<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %> <%@ taglib uri="tags-lams" prefix="lams"%> <%@ taglib uri="tags-function" prefix="fn" %> <%@ attribute name="criteriaRatings" required="true" rtexprvalue="true" type="org.lamsfoundation.lams.rating.dto.StyledCriteriaRatingDTO" %> <%@ attribute name="showJustification" required="true" %> <%@ attribute name="alwaysShowAverage" required="true" %> +<%@ attribute name="rubricsPivotView" required="false" %> <%@ attribute name="rubricsInBetweenColumns" required="false" %> + + + -<%@ attribute name="currentUserDisplay" required="true" %> +<%@ attribute name="currentUserDisplay" required="true" %> - + - - - - - - - - - - - - - - - - - - - - - - -
- - - -
-   - - -
-
- - - - - - + - - - + + + - - - - - - - - - - + + + + + + + + + + + - - - - + +
- - - - + +
-   - -
- ${criteriaRatings.ratingCriteria.ratingCriteriaId}-${rating.itemId} -
- ${rating.userRating} -
- - - - - - ${userRating} - - -
- - ${rating.averageRating} - ${rating.numberOfVotes} - -
-
- -
+   + + +
- - - - - - - - - - - - - - - - - -
-
- ${criteriaRatings.ratingCriteria.ratingCriteriaId}-${rating.itemId} -
-
- - ${rating.averageRating} - ${rating.numberOfVotes} - -
-
-
-
-
-
- -
- - -   -
    - - -
  • - - - - - - : -   -    - - (${rating.userRating}) + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + + + + + +
    +   + +
    + ${criteriaRatings.ratingCriteria.ratingCriteriaId}-${rating.itemId} +
    + ${rating.userRating} +
    + + + + + + ${userRating} + + +
    + + ${rating.averageRating} + ${rating.numberOfVotes} + +
    +
    + +
    +
    + + + + + + + + + + + + + + + + + +
    +
    + ${criteriaRatings.ratingCriteria.ratingCriteriaId}-${rating.itemId} +
    +
    + + ${rating.averageRating} + ${rating.numberOfVotes} + +
    +
    +
    +
    +
    +
    + +
    + + +   +
      + + +
    • + + - + + + : +   +    + + (${rating.userRating}) + +
    • - - -
      -
    -
    + +
+
- -   -
    - - -
  • - - - - ${rating.averageRating} - - : -   -    - - (${rating.userRating}) + +   +
      + + +
    • + + - + ${rating.averageRating} + + : +   +    + + (${rating.userRating}) + +
    • - +
      +
    + +   +
    - -
- -   -
-
-
+
- + - <%-- Some styles for the table and results --%> - - - - - - - - <%-- Each answer column has the same length, all remaining space is taken by the question column --%> - - - - + .rubrics-user-panel .collapsable-icon-left a:after { + margin-top: 6px; + } + + .rubrics-table.standard-view tr:first-child { + background-color: initial !important; + } + + .rubrics-table.standard-view th { + font-style: normal; + font-weight: bold; + } + + .rubrics-table.standard-view td:first-child { + font-weight: bold; + } + + .rubrics-table.pivot-view td:not(:first-child) { + text-align: center; + } + + .rubrics-table.pivot-view th { + font-style: normal; + text-align: center; + } + + .column-header-span { + font-style: italic; + } + + .rubrics-table .rubrics-rating-cell { + border-top: none; + + } + .rubrics-table .rubrics-rating-cell .rubrics-rating-count { + text-align: right; + } + + .rubrics-table .rubrics-rating-cell .rubrics-rating-count > .badge { + color: gray; + background-color: white; + font-size: large; + } + + .rubrics-table .rubrics-rating-cell .rubrics-rating-learner { + margin-top: 10px; + } + + .rubrics-table .rubrics-description-cell { + border-bottom: none; + } + + + + + +
- (${columnStatus.count})  -
+ + <%-- Each answer column has the same length, all remaining space is taken by the question column --%> + + - - - - - - - - - - - <%-- These variables are for counting average rating for the given row --%> - - - - - <%-- Check if any other learner rated this learner for this column --%> - - - - - - - - + + + + + + + + + - - - <%-- Check if any other learner rated this learner for this 0.5 column --%> + + <%-- These variables are for counting average rating for the given row --%> + + + + + <%-- Check if any other learner rated this learner for this column --%> - + - - + + - - - - - <%-- Cell with average rating --%> - - - - - <%-- Calculate again because we need the same cell background colour --%> - - - - - - + + + <%-- Check if any other learner rated this learner for this 0.5 column --%> + - -
- -   -
-
+
+ + + +
- + + + + <%-- Cell with average rating --%> + - + + + <%-- Calculate again because we need the same cell background colour --%> - + - + + + <%-- Calculate again because we need the same cell background colour --%> + + + + + + - - - - - -
- (${columnStatus.count + 0.5})  + (${columnStatus.count}) 
- - 0}"> - bg-success - - " - > - + + + (${columnStatus.count + 0.5})  +
+ 0}"> - bg-success - - " - > - - - - - - - - - - - -
0}"> bg-success " - > - - - <%-- learners see just how many rates they got from other learners --%> -
- x ${rateCount} -
- - <%-- teachers see also who gave the rating --%> - + > + +
0}"> + bg-success + + " + > + + + + + - + + + + +
0}"> + bg-success + + " + > + + + <%-- learners see just how many rates they got from other learners --%> +
+ x ${rateCount} +
+ + <%-- teachers see also who gave the rating --%> + + + +
+ +   +
+
+
+
+
+
0}"> bg-success " - > - - - <%-- learners see just how many rates they got from other learners --%> -
- x ${rateCount} -
- - <%-- teachers see also who gave the rating --%> - - - -
- -   -
+ > + + + <%-- learners see just how many rates they got from other learners --%> +
+ x ${rateCount} +
+ + <%-- teachers see also who gave the rating --%> + + + +
+ +   +
+
+
-
-
+
+
-
- - - - - -
- <%-- It is sufficient to take user names and columns from the first row/criterion --%> - - - - -
- - - - + +
+ + + \ No newline at end of file