-
-
Notifications
You must be signed in to change notification settings - Fork 775
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
grants/profile : add txn history template #2465
Changes from 5 commits
6f64ae5
2e9153e
30ba14e
ad32455
2195d24
c60ff60
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,28 @@ | ||
.header-line { | ||
color: #fff; | ||
font-style: normal; | ||
} | ||
|
||
h2.title { | ||
border-bottom: 1px solid #D0D0D0; | ||
} | ||
|
||
.avatar { | ||
max-width: 3.125rem; | ||
max-height: 3.125rem; | ||
margin-right: auto; | ||
margin-left: auto; | ||
} | ||
|
||
.transaction-history:hover { | ||
background-color: #F9F9F9; | ||
} | ||
|
||
.grants-container .info { | ||
color: #9B9B9B; | ||
} | ||
|
||
.grants-container .txn-link a { | ||
color: #7F8FA4; | ||
text-decoration: none; | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,10 @@ | |
cursor: pointer; | ||
} | ||
|
||
.tag-lg { | ||
padding: 6px 16px; | ||
} | ||
|
||
.tag p { | ||
margin-bottom: 1px; | ||
} | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -225,10 +225,35 @@ def profile(request): | |
"""Show grants profile of logged in user.""" | ||
# profile = request.user.profile if request.user.is_authenticated else None | ||
grants = Grant.objects.all() # TODO: show only logged in users grants | ||
|
||
history = [ | ||
{ | ||
'date': '16 Mar', | ||
'value_true' : 1.0, | ||
'token_name' : 'ETH', | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. E203 whitespace before ':' |
||
'frequency' : 'days', | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. E203 whitespace before ':' |
||
'value_in_usdt_now' : 80, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. E203 whitespace before ':' |
||
'title': 'Lorem ipsum dolor sit amet', | ||
'link': 'https://etherscan.io/txs?a=0xcf267ea3f1ebae3c29fea0a3253f94f3122c2199&f=3', | ||
'avatar_url': 'https://c.gitcoin.co/avatars/57e79c0ae763bb27095f6b265a1a8bf3/thelostone-mc.svg' | ||
}, | ||
{ | ||
'date': '24 April', | ||
'value_true' : 90, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. E203 whitespace before ':' |
||
'token_name' : 'DAI', | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. E203 whitespace before ':' |
||
'frequency' : 'months', | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. E203 whitespace before ':' |
||
'value_in_usdt_now' : 90, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. E203 whitespace before ':' |
||
'title': 'Lorem ipsum dolor sit amet', | ||
'link': 'https://etherscan.io/txs?a=0xcf267ea3f1ebae3c29fea0a3253f94f3122c2199&f=3', | ||
'avatar_url': 'https://c.gitcoin.co/avatars/57e79c0ae763bb27095f6b265a1a8bf3/thelostone-mc.svg' | ||
} | ||
] | ||
|
||
params = { | ||
'active': 'profile', | ||
'title': _('My Grants'), | ||
'grants': grants | ||
'grants': grants, | ||
'history': history | ||
} | ||
|
||
return TemplateResponse(request, 'grants/profile.html', params) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
E203 whitespace before ':'