Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
sucs-site
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sucssite
sucs-site
Commits
a2daf57b
Commit
a2daf57b
authored
17 years ago
by
Graham Cole
Browse files
Options
Downloads
Patches
Plain Diff
mini bananas for the members frontpage
parent
8a1b006a
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
templates/banana-awardlist.tpl
+7
-3
7 additions, 3 deletions
templates/banana-awardlist.tpl
templates/members.tpl
+3
-15
3 additions, 15 deletions
templates/members.tpl
with
10 additions
and
18 deletions
templates/banana-awardlist.tpl
+
7
−
3
View file @
a2daf57b
<ul
class=
"bananas"
>
{
foreach
name
=
awards
from
=
$awards
item
=
award
}
<li
class=
"
{
award_image_class
number
=
$award.score
}
"
>
{
if
!
isset
(
$singlemember
)
}
<strong>
{
if
$award.score
>
0
}
+
{/
if
}{
$award.score
}
</strong>
awarded to
<a
href=
"
{
$baseurl
}{
if
$award.real
==
TRUE
}
/Community/Members/
{
else
}
/Community/Bananas
{/
if
}{
$award.username
}
"
>
{
$award.username
}
</a>
<small>
(from
{
$award.who
}
,
{
$award.whn
|
date_format
:
"%d %b %Y"
}
)
</small><br
/>
{/
if
}
<q>
{
$award.why
}
</q>
<br
/>
<small>
<strong>
{
if
$award.score
>
0
}
+
{/
if
}{
$award.score
}
</strong>
awarded by
{
$award.who
}
on
{
$award.whn
|
date_format
:
"%d %b %Y"
}
</small>
{
if
isset
(
$singlemember
)
}
<small>
<strong>
{
if
$award.score
>
0
}
+
{/
if
}{
$award.score
}
</strong>
awarded by
{
$award.who
}
on
{
$award.whn
|
date_format
:
"%d %b %Y"
}
</small>
{/
if
}
</li>
{/
foreach
}
</ul>
This diff is collapsed.
Click to expand it.
templates/members.tpl
+
3
−
15
View file @
a2daf57b
...
...
@@ -59,7 +59,7 @@
<dl
class=
"bananas"
>
{
foreach
name
=
awardsbyyear
from
=
$member.awardsbyyear
key
=
yearname
item
=
year
}
<dt>
{
$yearname
}
/
{
math
equation
=
"x + 1"
x
=
$yearname
}
:
<small>
{
$year.sum
}
banana
{
if
$year.sum
|
abs
!=
1
}
s
{/
if
}
</small></dt>
<dd>
{
include
file
=
banana
-
awardlist
.
tpl
awards
=
$year.awards
}
</dd>
<dd>
{
include
file
=
banana
-
awardlist
.
tpl
awards
=
$year.awards
singlemember
=
true
}
</dd>
{/
foreach
}
</dl>
</div>
...
...
@@ -74,21 +74,9 @@
</div>
{/
if
}
{
else
}
<p>
Please
S
earch for a member in the sidebar.
</p>
<p>
Please
s
earch for a member in the sidebar.
</p>
<h3>
Recent Awards
</h3>
<table>
{
foreach
name
=
recent
from
=
$stats.recent
key
=
key
item
=
award
}
<tr>
{
if
$award.real
==
TRUE
}
<td><a
href=
"/Community/Members/
{
$award.username
}
"
>
{
$award.username
}
</a></td>
{
else
}
<td><a
href=
"/Community/Bananas/
{
$award.username
}
"
>
{
$award.username
}
</a></td>
{/
if
}
<td>
{
bananaprint
score
=
$award.score
}
</td>
<td><q>
{
$award.why
}
</q><br
/><small>
Awarded by
{
$award.who
}
on
{
$award.whn
|
date_format
:
"%d %b %Y"
}
</small></td>
</tr>
{/
foreach
}
</table>
{
include
file
=
banana
-
awardlist
.
tpl
awards
=
$stats.recent
}
{/
if
}
{
else
}
<p>
Please log in to view full member details.
</p>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment