Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(345)

Side by Side Diff: appengine/chromium_rietveld/new_static/components/cr-issue-patchfile.html

Issue 1001723003: Create a common directory of widgets and css. (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 <!-- Copyright (c) 2014 The Chromium Authors. All rights reserved. 1 <!-- Copyright (c) 2014 The Chromium Authors. All rights reserved.
2 Use of this source code is governed by a BSD-style license that can be 2 Use of this source code is governed by a BSD-style license that can be
3 found in the LICENSE file. --> 3 found in the LICENSE file. -->
4 4
5 <link rel="import" href="cr-action.html"> 5 <link rel="import" href="../common/cr-action.html">
6 <link rel="import" href="cr-diff.html"> 6 <link rel="import" href="cr-diff.html">
7 7
8 <polymer-element name="cr-issue-patchfile" attributes="file mode active"> 8 <polymer-element name="cr-issue-patchfile" attributes="file mode active">
9 <template> 9 <template>
10 <link rel="stylesheet" href="common.css"> 10 <link rel="stylesheet" href="../common/common.css">
11 <link rel="stylesheet" href="cr-issue-patchfile.css"> 11 <link rel="stylesheet" href="cr-issue-patchfile.css">
12 12
13 <div class="file"> 13 <div class="file">
14 <div class="file-status">{{ file.status }}</div> 14 <div class="file-status">{{ file.status }}</div>
15 <div class="file-removed">-{{ file.removed }}</div> 15 <div class="file-removed">-{{ file.removed }}</div>
16 <div class="file-added">+{{ file.added }}</div> 16 <div class="file-added">+{{ file.added }}</div>
17 <div class="file-name"><a is="cr-action" on-tap="{{ toggleDiff }}">{ { file.name }}</a></div> 17 <div class="file-name"><a is="cr-action" on-tap="{{ toggleDiff }}">{ { file.name }}</a></div>
18 <div class="file-messages"> 18 <div class="file-messages">
19 {{ file.messageCount - file.draftCount | pluralize("comment") }} 19 {{ file.messageCount - file.draftCount | pluralize("comment") }}
20 <template if="{{ file.draftCount }}"> 20 <template if="{{ file.draftCount }}">
(...skipping 24 matching lines...) Expand all
45 pluralize: function(count, text) { 45 pluralize: function(count, text) {
46 if (!count) 46 if (!count)
47 return ""; 47 return "";
48 if (count == 1) 48 if (count == 1)
49 return count + " " + text; 49 return count + " " + text;
50 return count + " " + text.pluralize(); 50 return count + " " + text.pluralize();
51 }, 51 },
52 }); 52 });
53 </script> 53 </script>
54 </polymer-element> 54 </polymer-element>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698