MDL-31830 course: several management interface improvements

* Tidied up course detail permissions so that user is not shown information they couldn't access elsewhere.
* category link dimming now accounts for course creation as an action as well.
* category single select when in courses view mode is now limited to courses user can action in.
* There is now a check at the start of the management page to redirect to course/index.php if the user isn't able to manage in any category.
* Tweaked navigation again, to give the limited users a navbar structure similar to the system cap'd user.
* Cancelling a category delete now takes you back to the category you were viewing.
* Fixed undefined notice
* Improved placement of course request and approval links.
* Several styling tweaks/improvements to the base theme.
* Several styling tweaks/improvements to the bootstrapbase theme.
This commit is contained in:
Sam Hemelryk
2013-10-07 10:22:57 +13:00
parent c46996ea5a
commit 484c4c6cf3
14 changed files with 451 additions and 219 deletions
+25 -17
View File
@@ -710,17 +710,22 @@ span.editinstructions {
vertical-align:text-top;
margin: 2px 6px 0 0;
}
&[data-selected='1'] > div {
background-color:#f7f7f9;
border-top-color: #e1e1e8;
border-bottom-color:#f7f7f9;
}
&[data-selected='1'] li:first-of-type > div,
&[data-selected='1'][data-expandable='0']+li > div {
border-top-color:#e1e1e8;
}
&[data-selected='1']:last-of-type > div {
-bottom-color:#e1e1e8;
&[data-selected='1'] {
> div {
background-color:#f7f7f9;
border-top-color: #e1e1e8;
border-bottom-color:#f7f7f9;
}
&.highlight > div {
background-color:#ddffaa;
}
li:first-of-type > div,
&[data-expandable='0']+li > div {
border-top-color:#e1e1e8;
}
&:last-of-type > div {
border-bottom-color:#e1e1e8;
}
}
// Tree item indenting to represent depth.
@@ -811,10 +816,6 @@ span.editinstructions {
}
}
}
&:first-child > div .item-actions .action-moveup,
&:last-child > div .item-actions .action-movedown {
display: none;
}
}
#course-listing {
@@ -837,6 +838,8 @@ span.editinstructions {
margin: 0 6px 0 0;
}
}
> .firstpage .listitem:first-child > div .item-actions .action-moveup,
> .lastpage .listitem:last-child > div .item-actions .action-movedown {display: none;}
.bulk-action-checkbox {
vertical-align:middle;
margin:-2px 6px 0 0;
@@ -846,6 +849,10 @@ span.editinstructions {
.listitem.collapsed > ul.ml {
display: none;
}
.listitem {
&:first-child > div .item-actions .action-moveup,
&:last-child > div .item-actions .action-movedown {display: none;}
}
.course-count {
color:#a1a1a8;
margin-right:2rem;
@@ -974,7 +981,7 @@ span.editinstructions {
}
#category-listing > div,
#course-listing > div,
#course-detail {
#course-detail > div {
border:1px solid #e1e1e8;
background-color:#FFF;
}
@@ -987,6 +994,7 @@ span.editinstructions {
}
@media (max-width: 1199px) {
#course-category-listings.columns-2,
#course-category-listings.columns-3 {
background-color:transparent;
border:0;
@@ -994,7 +1002,7 @@ span.editinstructions {
#course-listing,
#course-detail {
width:100%;
margin-bottom:1em;
margin:0 0 1em;
}
#category-listing > div,
#course-listing > div,
File diff suppressed because one or more lines are too long