Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
hypha
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
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
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
ots
hypha
Commits
b837e008
Commit
b837e008
authored
6 years ago
by
Chris Lawton
Browse files
Options
Downloads
Patches
Plain Diff
truncate project title via textwrap as opposed to css
parent
d987f110
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
opentech/apply/funds/tables.py
+5
-0
5 additions, 0 deletions
opentech/apply/funds/tables.py
opentech/static_src/src/sass/apply/components/_all-submissions.scss
+0
-5
0 additions, 5 deletions
...tatic_src/src/sass/apply/components/_all-submissions.scss
with
5 additions
and
5 deletions
opentech/apply/funds/tables.py
+
5
−
0
View file @
b837e008
import
textwrap
from
django
import
forms
from
django.contrib.auth
import
get_user_model
from
django.db.models
import
OuterRef
,
Subquery
,
F
,
Q
...
...
@@ -47,6 +49,9 @@ class SubmissionsTable(tables.Table):
def
render_user
(
self
,
value
):
return
value
.
get_full_name
()
def
render_title
(
self
,
value
):
return
textwrap
.
shorten
(
value
,
width
=
30
,
placeholder
=
"
...
"
)
def
render_phase
(
self
,
value
):
return
mark_safe
(
f
'
<span>
{
value
}
</span>
'
)
...
...
This diff is collapsed.
Click to expand it.
opentech/static_src/src/sass/apply/components/_all-submissions.scss
+
0
−
5
View file @
b837e008
...
...
@@ -79,11 +79,6 @@ $table-breakpoint: 'tablet-portrait';
font-weight
:
$weight--bold
;
@include
media-query
(
$table-breakpoint
)
{
padding-top
:
20px
;
padding-left
:
20px
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
white-space
:
nowrap
;
&
::before
{
position
:
absolute
;
...
...
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