• R/O
  • HTTP
  • SSH
  • HTTPS

提交

标签
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

allura


Commit MetaInfo

修订版2cecf8d5c2fb41818bd895e453c905d0bb826c49 (tree)
时间2011-05-18 01:27:42
作者Tim Van Steenburgh <tvansteenburgh@geek...>
CommiterTim Van Steenburgh

Log Message

[#1239] Added alt attrs to img tags to fix html5 validation errors.

Signed-off-by: Tim Van Steenburgh <tvansteenburgh@geek.net>

更改概述

差异

--- a/Allura/allura/ext/admin/templates/project_admin.html
+++ b/Allura/allura/ext/admin/templates/project_admin.html
@@ -13,7 +13,7 @@
1313 <p>SourceForge beta projects come with a number of Tools, which can be configured and adjusted to your needs.</p>
1414
1515 <div class="grid-2">
16- <img src="{{g.forge_static('images/project_default.png')}}">
16+ <img src="{{g.forge_static('images/project_default.png')}}" alt="">
1717 </div>
1818 <div class="grid-13">
1919 <h3>Project Setup</h3>
@@ -26,7 +26,7 @@
2626 <div style="clear:both"></div>
2727
2828 <div class="grid-2">
29- <img src="{{ g.theme.app_icon_url('Wiki', 48) }}">
29+ <img src="{{ g.theme.app_icon_url('Wiki', 48) }}" alt="">
3030 </div>
3131 <div class="grid-13">
3232 <h3>Wikis</h3>
@@ -44,7 +44,7 @@
4444 <div style="clear:both"></div>
4545
4646 <div class="grid-2">
47- <img src="{{ g.theme.app_icon_url('Git', 48) }}">
47+ <img src="{{ g.theme.app_icon_url('Git', 48) }}" alt="">
4848 </div>
4949 <div class="grid-13">
5050 <h3>Code</h3>
@@ -62,7 +62,7 @@
6262 <div style="clear:both"></div>
6363
6464 <div class="grid-2">
65- <img src="{{ g.theme.app_icon_url('Tickets', 48) }}">
65+ <img src="{{ g.theme.app_icon_url('Tickets', 48) }}" alt="">
6666 </div>
6767 <div class="grid-13">
6868 <h3>Tickets</h3>
@@ -82,7 +82,7 @@
8282
8383 {% if config.get('auth.method', 'local') == 'sfx' %}
8484 <div class="grid-2">
85- <img src="{{ g.theme.app_icon_url('Downloads', 48) }}">
85+ <img src="{{ g.theme.app_icon_url('Downloads', 48) }}" alt="">
8686 </div>
8787 <div class="grid-13">
8888 <h3>Downloads</h3>
@@ -101,7 +101,7 @@
101101 {% endif %}
102102
103103 <div class="grid-2">
104- <img src="{{ g.theme.app_icon_url('Discussion', 48) }}">
104+ <img src="{{ g.theme.app_icon_url('Discussion', 48) }}" alt="">
105105 </div>
106106 <div class="grid-13">
107107 <h3>Forums</h3>
--- a/Allura/allura/ext/admin/templates/project_overview.html
+++ b/Allura/allura/ext/admin/templates/project_overview.html
@@ -53,7 +53,7 @@ It should be what you want to see as the project title in search listing.">
5353 <div class="editable viewing">
5454 {% if c.project.icon %}
5555 <div class="viewer" style="overflow: auto">
56- <img src="{{c.project.url()}}/icon" style="float:left; margin-right: 1em;">
56+ <img src="{{c.project.url()}}/icon" style="float:left; margin-right: 1em;" alt="">
5757 <input type="submit" name="delete_icon" value="Delete Icon" style="margin-top: 10px;">
5858 </div>
5959 {% else %}
--- a/Allura/allura/ext/admin/templates/project_tools.html
+++ b/Allura/allura/ext/admin/templates/project_tools.html
@@ -14,14 +14,14 @@
1414 <span class="tcenter grid-4 installable_tool">
1515 <a class="install_trig" data-tool="{{ tool['name'] }}">
1616 <span class="tool_title">{{ tool['app'].tool_label }}{{' (%s)' % tool.app.status if tool.app.status != 'production' else ''}}</span><br />
17- <img src="{{ g.theme.app_icon_url(tool['app'], 32) or 'unk.png' }}">
17+ <img src="{{ g.theme.app_icon_url(tool['app'], 32) or 'unk.png' }}" alt="">
1818 </a>
1919 </span>
2020 {% endfor %}
2121 <span class="tcenter grid-4 installable_tool">
2222 <a class="install_trig" data-tool="">
2323 <span class="tool_title">Subproject</span><br />
24- <img src="{{ g.theme.app_icon_url('subproject', 32) }}">
24+ <img src="{{ g.theme.app_icon_url('subproject', 32) }}" alt="">
2525 </a>
2626 </span>
2727 </div>
@@ -55,7 +55,7 @@
5555 <ul class="deck">
5656 <li class="tcenter">
5757 <span class="tool_title">{{ label }}</span><br />
58- <img src="{{ g.theme.app_icon_url(app, 48) }}">
58+ <img src="{{ g.theme.app_icon_url(app, 48) }}" alt="">
5959 </li>
6060 {% for link in links %}
6161 <li>
@@ -86,7 +86,7 @@
8686 <ul class="deck">
8787 <li class="tcenter">
8888 <span class="tool_name">{{ mount['sub'].name }}</span><br />
89- <img src="{{ g.theme.app_icon_url('subproject', 48) }}">
89+ <img src="{{ g.theme.app_icon_url('subproject', 48) }}" alt="">
9090 </li>
9191 <li>
9292 <form method="post" action="update_mounts" id="mounts_edit_2-{{loop.index0}}">
--- a/Allura/allura/templates/award.html
+++ b/Allura/allura/templates/award.html
@@ -18,7 +18,7 @@
1818 <tr>
1919 <td>
2020 {% if award.icon %}
21- <img class="award_icon" src="icon"/>
21+ <img class="award_icon" src="icon" alt=""/>
2222 {% endif %}
2323 </td>
2424 <td><a href="{{award.longurl()}}">{{award.short}}</a></td>
--- a/Allura/allura/templates/awards.html
+++ b/Allura/allura/templates/awards.html
@@ -20,7 +20,7 @@
2020 <tr>
2121 <td>
2222 {% if award.icon %}
23- <img class="award_icon" src="{{award.url()}}/icon"/>
23+ <img class="award_icon" src="{{award.url()}}/icon" alt=""/>
2424 {% endif %}
2525 </td>
2626 <td><a href="{{award.longurl()}}">{{award.short}}</a></td>
--- a/Allura/allura/templates/grant.html
+++ b/Allura/allura/templates/grant.html
@@ -19,7 +19,7 @@
1919 <tr>
2020 <td>
2121 {% if grant.award.icon %}
22- <img class="award_icon" src="icon"/>
22+ <img class="award_icon" src="icon" alt=""/>
2323 {% endif %}
2424 </td>
2525 <td><a href="{{grant.award.longurl()}}">{{grant.award.short}}</a></td>
--- a/Allura/allura/templates/neighborhood_admin_accolades.html
+++ b/Allura/allura/templates/neighborhood_admin_accolades.html
@@ -31,7 +31,7 @@
3131 <tr>
3232 <td>
3333 <py:if test="award.icon">
34- <img class="award_icon" src="awards/{{award.url()}}/icon"/>
34+ <img class="award_icon" src="awards/{{award.url()}}/icon" alt=""/>
3535 </py:if>
3636 </td>
3737 <td><a href="{{award.longurl()}}">{{award.short}}</a></td>
--- a/Allura/allura/templates/neighborhood_admin_overview.html
+++ b/Allura/allura/templates/neighborhood_admin_overview.html
@@ -27,7 +27,7 @@
2727 <label class="grid-4">Icon</label>
2828 <div class="grid-14">
2929 {% if neighborhood.icon %}
30- <img src="{{neighborhood.url()}}/icon" style="vertical-align: middle">
30+ <img src="{{neighborhood.url()}}/icon" style="vertical-align: middle" alt=""/>
3131 {% endif %}
3232 {{lib.file_field('icon', '')}}
3333 </div>
--- a/Allura/allura/templates/neighborhood_lib.html
+++ b/Allura/allura/templates/neighborhood_lib.html
@@ -6,8 +6,8 @@
66 <div id="nav_menu_missing" py:if="not neighborhood"/>
77 <py:if test="neighborhood">
88 <div class="column grid_1">
9- <img py:if="neighborhood.icon" src="${neighborhood.url()}/icon" class="project_icon"/>
10- <img py:if="not neighborhood.icon" src="${g.forge_static('images/project_default.png')}" class="project_icon"/>
9+ <img py:if="neighborhood.icon" src="${neighborhood.url()}/icon" class="project_icon" alt=""/>
10+ <img py:if="not neighborhood.icon" src="${g.forge_static('images/project_default.png')}" class="project_icon" alt=""/>
1111 </div>
1212 <div class="column grid_9">
1313 <h1>
--- a/Allura/allura/templates/repo/file.html
+++ b/Allura/allura/templates/repo/file.html
@@ -36,7 +36,7 @@
3636 </p>
3737 {% endif %}
3838
39- {% if blob.has_image_view %}<img src="?format=raw"/>{% endif %}
39+ {% if blob.has_image_view %}<img src="?format=raw" alt=""/>{% endif %}
4040 {% if not blob.has_html_view and not blob.has_image_view and not force_display %}
4141 <p>{{h.really_unicode(blob.name)}} is not known to be viewable in your browser.
4242 Try to <a href="?force=True">display it</a> anyway or
--- a/Allura/allura/templates/site_admin.html
+++ b/Allura/allura/templates/site_admin.html
@@ -6,7 +6,7 @@
66
77 {% block nav_menu %}
88 <div class="column grid_1">
9- <img src="{{g.forge_static('images/project_default.png')}}" class="project_icon"/>
9+ <img src="{{g.forge_static('images/project_default.png')}}" class="project_icon" alt=""/>
1010 </div>
1111 <div class="column grid_9">
1212 <h1 class="project_title">Site Admin</h1>
--- a/Allura/allura/templates/widgets/attachment.html
+++ b/Allura/allura/templates/widgets/attachment.html
@@ -2,7 +2,7 @@
22 <hr/>
33 {% if value.is_image() %}
44 <div class="attachment_thumb">
5- <a href="{{value.url()}}"><img src="{{value.url()}}/thumb"/></a>
5+ <a href="{{value.url()}}"><img src="{{value.url()}}/thumb" alt="Thumbnail"/></a>
66 <br/>
77 <a href="{{value.url()}}">{{value.filename}}</a>
88 ({{value.length}} bytes)
--- a/Allura/allura/templates/widgets/attachment_list.html
+++ b/Allura/allura/templates/widgets/attachment_list.html
@@ -6,7 +6,7 @@
66 {% for att in attachments if att.is_image() %}
77 <div class="attachment_thumb">
88 <a href="{{att.url()}}">
9- <img src="{{att.url()}}/thumb"/>
9+ <img src="{{att.url()}}/thumb" alt="Thumbnail"/>
1010 </a><br/>
1111 {{att.filename}}
1212 {% if edit_mode %}
--- a/Allura/allura/templates/widgets/post_widget.html
+++ b/Allura/allura/templates/widgets/post_widget.html
@@ -41,7 +41,7 @@
4141 {% for att in value.attachments %}
4242 <div class="attachment_thumb" style="min-height: 130px;">
4343 {% if att.is_image() %}
44- <a href="{{att.url()}}"><img src="{{att.url()}}/thumb"/></a>
44+ <a href="{{att.url()}}"><img src="{{att.url()}}/thumb" alt="Thumbnail"/></a>
4545 <br/>
4646 <a href="{{att.url()}}">{{att.filename}}</a>
4747 {% else %}
--- a/Allura/allura/templates/widgets/project_screenshots.html
+++ b/Allura/allura/templates/widgets/project_screenshots.html
@@ -1,6 +1,6 @@
11 {% for ss in project.get_screenshots() %}
22 <div class="grid-6" style="text-align: center">
3- <a href="{{project.url()}}screenshot/{{ss.filename}}"><img src="{{project.url()}}screenshot/{{ss.filename}}/thumb"></a>
3+ <a href="{{project.url()}}screenshot/{{ss.filename}}"><img src="{{project.url()}}screenshot/{{ss.filename}}/thumb" alt="Screenshot thumbnail"/></a>
44 {% if not edit %}
55 <br>
66 {{ss.caption}}
--- a/ForgeDiscussion/forgediscussion/templates/discussionforums/admin_forums.html
+++ b/ForgeDiscussion/forgediscussion/templates/discussionforums/admin_forums.html
@@ -21,9 +21,9 @@
2121 <div class="editable viewing">
2222 <span class="viewer">
2323 {% if forum.icon %}
24- <img src="{{forum.url()}}/icon"/>
24+ <img src="{{forum.url()}}/icon" alt="Forum icon"/>
2525 {% else %}
26- <img src="{{g.forge_static('images/project_default.png')}}"/>
26+ <img src="{{g.forge_static('images/project_default.png')}}" alt="Forum icon"/>
2727 {% endif %}
2828 </span>
2929 <span class="editor">{{lib.file_field('forum-%s.icon' % loop.index0, '')}}</span>
--- a/ForgeTracker/forgetracker/templates/tracker/ticket.html
+++ b/ForgeTracker/forgetracker/templates/tracker/ticket.html
@@ -104,7 +104,7 @@
104104 <div class="attachment_thumb">
105105 {% if att.is_image() and not att.is_embedded() %}
106106 <a href="{{att.url()}}" class="file_type">
107- <img src="{{att.url()}}/thumb">
107+ <img src="{{att.url()}}/thumb" alt="">
108108 </a>
109109 {% else %}
110110 <a href="{{att.url()}}" class="file_type">
--- a/ForgeTracker/forgetracker/templates/tracker_widgets/ticket_form.html
+++ b/ForgeTracker/forgetracker/templates/tracker_widgets/ticket_form.html
@@ -66,7 +66,7 @@
6666 <div class="attachment_thumb">
6767 {% if att.is_image() and not att.is_embedded() %}
6868 <a href="{{att.url()}}" class="file_type">
69- <img src="{{att.url()}}/thumb">
69+ <img src="{{att.url()}}/thumb" alt="Thumbnail">
7070 </a>
7171 {% else %}
7272 <a href="{{att.url()}}" class="file_type">
--- a/ForgeWiki/forgewiki/templates/wiki/page_view.html
+++ b/ForgeWiki/forgewiki/templates/wiki/page_view.html
@@ -68,7 +68,7 @@
6868 {% if att.is_image() and not att.is_embedded() %}
6969 <div class="attachment_thumb">
7070 <a href="{{att.url()}}">
71- <img src="{{att.url()}}/thumb"/>
71+ <img src="{{att.url()}}/thumb" alt="Thumbnail"/>
7272 </a><br/>
7373 <a href="{{att.url()}}">{{att.filename}}</a>
7474 ({{att.length}} bytes)
--- a/ForgeWiki/forgewiki/tests/functional/test_root.py
+++ b/ForgeWiki/forgewiki/tests/functional/test_root.py
@@ -241,7 +241,7 @@ class TestRootController(TestController):
241241 # Update the page to embed the image, make sure the thumbnail is absent
242242 self.app.post('/wiki/TEST/update', params=dict(
243243 title='TEST',
244- text='sometext\n[[img src=%s]]' % file_name))
244+ text='sometext\n[[img src=%s alt=]]' % file_name))
245245 r = self.app.get('/wiki/TEST/')
246246 img_srcs = [ i['src'] for i in r.html.findAll('img') ]
247247 assert ('/p/test/wiki/TEST/attachment/' + filename) not in img_srcs, img_srcs
--- a/scripts/set_landing_page.py
+++ b/scripts/set_landing_page.py
@@ -72,21 +72,21 @@ div.tool p {
7272 </div>
7373 <div class="inner-row">
7474 <div class="tool">
75- <img src="/nf/allura/images/wiki_48.png">
75+ <img src="/nf/allura/images/wiki_48.png" alt=""/>
7676 <h1>Wikis</h1>
7777 <p>
7878 Documentation is key to your project and the wiki tool helps make it easy for anyone to contribute.
7979 </p>
8080 </div>
8181 <div class="tool">
82- <img src="/nf/allura/images/code_48.png">
82+ <img src="/nf/allura/images/code_48.png" alt=""/>
8383 <h1>Code</h1>
8484 <p>
8585 SVN, Git and Mercurial will help you keep track of your changes.
8686 </p>
8787 </div>
8888 <div class="tool">
89- <img src="/nf/allura/images/tickets_48.png">
89+ <img src="/nf/allura/images/tickets_48.png" alt=""/>
9090 <h1>Tickets</h1>
9191 <p>
9292 Bugs, enhancements, tasks, etc., will help you plan and manage your development.
@@ -95,21 +95,21 @@ div.tool p {
9595 </div>
9696 <div class="inner-row">
9797 <div class="tool">
98- <img src="/nf/allura/images/downloads_48.png">
98+ <img src="/nf/allura/images/downloads_48.png" alt=""/>
9999 <h1>Downloads</h1>
100100 <p>
101101 Use the largest free, managed, global mirror network to distribute your files.
102102 </p>
103103 </div>
104104 <div class="tool">
105- <img src="/nf/allura/images/stats_48.png">
105+ <img src="/nf/allura/images/stats_48.png" alt=""/>
106106 <h1>Stats</h1>
107107 <p>
108108 Follow the download trends that enable you to develop better software.
109109 </p>
110110 </div>
111111 <div class="tool">
112- <img src="/nf/allura/images/forums_48.png">
112+ <img src="/nf/allura/images/forums_48.png" alt=""/>
113113 <h1>Forums</h1>
114114 <p>
115115 Collaborate with your community in your forums.