|
a/Allura/allura/lib/macro.py |
|
b/Allura/allura/lib/macro.py |
|
... |
|
... |
292 |
ps = ProjectScreenshots()
|
292 |
ps = ProjectScreenshots()
|
293 |
g.resource_manager.register(ps)
|
293 |
g.resource_manager.register(ps)
|
294 |
response = ps.display(project=c.project)
|
294 |
response = ps.display(project=c.project)
|
295 |
return response
|
295 |
return response
|
296 |
|
296 |
|
|
|
297 |
@macro()
|
|
|
298 |
def gittip_button(username):
|
|
|
299 |
from allura.lib.widgets.macros import GittipButton
|
|
|
300 |
button = GittipButton(username=username)
|
|
|
301 |
g.resource_manager.register(button)
|
|
|
302 |
response = button.display(username=username)
|
|
|
303 |
return response
|
297 |
|
304 |
|
298 |
# FIXME: this is SourceForge specific - need to provide a way for macros to come from other packages
|
305 |
# FIXME: this is SourceForge specific - need to provide a way for macros to come from other packages
|
299 |
@macro()
|
306 |
@macro()
|
300 |
def download_button():
|
307 |
def download_button():
|
301 |
from allura.lib.widgets.macros import DownloadButton
|
308 |
from allura.lib.widgets.macros import DownloadButton
|