Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
475b7e13
Commit
475b7e13
authored
Jul 02, 2008
by
Nigel McNie
Committed by
Nigel McNie
Jul 02, 2008
Browse files
Tabs for the group pages.
parent
aee07961
Changes
9
Hide whitespace changes
Inline
Side-by-side
htdocs/artefact/file/groupfiles.php
View file @
475b7e13
...
...
@@ -70,6 +70,7 @@ $smarty = smarty(
)
);
$smarty
->
assign
(
'heading'
,
get_string
(
'filesfor'
,
'artefact.file'
,
$group
->
name
));
$smarty
->
assign
(
'groupid'
,
$groupid
);
$smarty
->
assign
(
'INLINEJAVASCRIPT'
,
$javascript
);
$smarty
->
display
(
'artefact:file:index.tpl'
);
...
...
htdocs/artefact/file/theme/default/index.tpl
View file @
475b7e13
...
...
@@ -2,6 +2,7 @@
{
include
file
=
"sidebar.tpl"
}
{
include
file
=
"columnleftstart.tpl"
}
{
if
$groupid
}{
include
file
=
"group/tabstart.tpl"
current
=
"files"
}{/
if
}
{
str
tag
=
'fileinstructions'
section
=
'artefact.file'
}
<div
id=
"myfiles"
>
<div
id=
"uploader"
></div>
...
...
@@ -17,5 +18,6 @@
<tbody><tr><th></th></tr></tbody>
</table>
</div>
{
if
$groupid
}{
include
file
=
"group/tabend.tpl"
}{/
if
}
{
include
file
=
"columnleftend.tpl"
}
{
include
file
=
"footer.tpl"
}
htdocs/group/view.php
View file @
475b7e13
...
...
@@ -74,6 +74,7 @@ $foruminfo = get_records_sql_array('
'
,
array
(
$id
));
$smarty
=
smarty
(
array
(
'paginator'
,
'groupmembersearch'
),
array
(),
array
(),
array
(
'sideblocks'
=>
array
(
interaction_sideblock
(
$id
,
$role
))));
$smarty
->
assign
(
'group'
,
$group
);
$smarty
->
assign
(
'groupid'
,
$id
);
$smarty
->
assign
(
'query'
,
$query
);
$smarty
->
assign
(
'results'
,
$html
);
$smarty
->
assign
(
'pagination'
,
$pagination
[
'html'
]);
...
...
htdocs/theme/default/static/style/style.css
View file @
475b7e13
...
...
@@ -1854,6 +1854,37 @@ span.viewicon {
}
/* GROUPS > VIEWING A GROUP */
#grouppage-container
{
border
:
1px
solid
#bbb
;
clear
:
left
;
padding
:
.5em
;
}
#grouppage-tabs
{
list-style-type
:
none
;
}
#grouppage-tabs
li
{
float
:
left
;
margin
:
0
0
0
1em
;
padding
:
2px
5px
;
border
:
1px
solid
#bbb
;
border-bottom-width
:
0
;
background-color
:
#ccc
;
min-width
:
5em
;
text-align
:
center
;
}
#grouppage-tabs
a
{
text-decoration
:
none
;
font-weight
:
bold
;
}
#grouppage-tabs
li
.current
{
background-color
:
#fff
;
}
#group-description
{
margin-top
:
0
;
}
/* GROUPS > MY GROUPS */
#mygroupstable
{
...
...
htdocs/theme/default/templates/group/tabend.tpl
0 → 100644
View file @
475b7e13
{* End of group info page - see group/tabstart.tpl for what this is closing *}
</div>
htdocs/theme/default/templates/group/tabstart.tpl
0 → 100644
View file @
475b7e13
{* Tabs and beginning of page container for group info pages *}
<ul
id=
"grouppage-tabs"
>
<li
{
if
$current
==
'info'
}
class=
"current"
{/
if
}
><a
href=
"
{
$WWWROOT
}
group/view.php?id=
{
$groupid
|
escape
}
"
>
About
</a></li>
<li
{
if
$current
==
'members'
}
class=
"current"
{/
if
}
><a
href=
"
{
$WWWROOT
}
group/members.php?id=
{
$groupid
|
escape
}
"
>
Members
</a></li>
<li
{
if
$current
==
'views'
}
class=
"current"
{/
if
}
><a
href=
"
{
$WWWROOT
}
view/groupviews.php?group=
{
$groupid
|
escape
}
"
>
Views
</a></li>
<li
{
if
$current
==
'files'
}
class=
"current"
{/
if
}
><a
href=
"
{
$WWWROOT
}
artefact/file/groupfiles.php?group=
{
$groupid
|
escape
}
"
>
Files
</a></li>
</ul>
<div
id=
"grouppage-container"
>
htdocs/theme/default/templates/group/view.tpl
View file @
475b7e13
...
...
@@ -4,9 +4,9 @@
{
include
file
=
"columnleftstart.tpl"
}
<h2>
{
$group
->
name
|
escape
}
</h2>
<div
style=
"border: 1px solid #006600;"
>
{
if
$group
->
description
}
<p>
{
$group
->
description
}
</p>
{/
if
}
{
include
file
=
"group/tabstart.tpl"
current
=
"info"
}
{
if
$group
->
description
}
<p
id=
"group-description"
>
{
$group
->
description
}
</p>
{/
if
}
<ul>
<li>
{
str
tag
=
groupadmins
section
=
group
}
:
{
foreach
name
=
admins
from
=
$group
->
admins
item
=
id
}
...
...
@@ -55,7 +55,7 @@
</tr>
</table>
</div>
{
include
file
=
"group/tabend.tpl"
}
{
include
file
=
"columnleftend.tpl"
}
{
include
file
=
"footer.tpl"
}
htdocs/theme/default/templates/view/index.tpl
View file @
475b7e13
...
...
@@ -7,6 +7,7 @@
</span>
<h2>
{
$heading
}
</h2>
{
if
$groupid
}{
include
file
=
"group/tabstart.tpl"
current
=
"views"
}{/
if
}
{
if
$views
}
<table
id=
"myviewstable"
>
...
...
@@ -77,6 +78,7 @@
{
else
}
<div
class=
"message"
>
{
str
tag
=
"noviews"
section
=
"view"
}
</div>
{/
if
}
{
if
$groupid
}{
include
file
=
"group/tabend.tpl"
}{/
if
}
{
include
file
=
"columnleftend.tpl"
}
{
include
file
=
"footer.tpl"
}
...
...
htdocs/view/groupviews.php
View file @
475b7e13
...
...
@@ -56,7 +56,7 @@ $pagination = build_pagination(array(
));
$smarty
=
smarty
();
$smarty
->
assign
(
'group'
,
$group
);
$smarty
->
assign
(
'group
id
'
,
$group
);
$smarty
->
assign
(
'views'
,
$data
->
data
);
$smarty
->
assign
(
'pagination'
,
$pagination
[
'html'
]);
$smarty
->
assign
(
'heading'
,
get_string
(
'groupviews'
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment