index.jsView |
---|
2052 | 2052 | '<button class="btn">+ ' + req._t('issue.New') + '</button>' + |
2053 | 2053 | '</form>') + |
2054 | 2054 | '<h3>' + req._t('Issues') + '</h3>' + |
2055 | 2055 | nav([ |
2056 | | - ['?', req._t('state.Open'), 'open'], |
2057 | | - ['?state=closed', req._t('state.Closed'), 'closed'], |
2058 | | - ['?state=all', req._t('state.All'), 'all'] |
| 2056 | + ['?', req._t('issues.Open'), 'open'], |
| 2057 | + ['?state=closed', req._t('issues.Closed'), 'closed'], |
| 2058 | + ['?state=all', req._t('issues.All'), 'all'] |
2059 | 2059 | ], state)), |
2060 | 2060 | pull( |
2061 | 2061 | issues.createFeedStream({ project: repo.id }), |
2062 | 2062 | pull.filter(function (issue) { |
2064 | 2064 | }), |
2065 | 2065 | pull.map(function (issue) { |
2066 | 2066 | numIssues++ |
2067 | 2067 | var state = (issue.open ? 'open' : 'closed') |
2068 | | - var stateStr = req._t(issue.open ? 'state.Open' : 'state.Closed') |
| 2068 | + var stateStr = req._t(issue.open ? |
| 2069 | + 'issue.state.Open' : 'issue.state.Closed') |
2069 | 2070 | return '<section class="collapse">' + |
2070 | 2071 | '<i class="issue-state issue-state-' + state + '"' + |
2071 | 2072 | ' title="' + stateStr + '">◼</i> ' + |
2072 | 2073 | '<a href="' + encodeLink(issue.id) + '">' + |
2098 | 2099 | '</button>' + |
2099 | 2100 | '</form>') + |
2100 | 2101 | '<h3>' + req._t('PullRequests') + '</h3>' + |
2101 | 2102 | nav([ |
2102 | | - ['?', req._t('state.Open'), 'open'], |
2103 | | - ['?state=closed', req._t('state.Closed'), 'closed'], |
2104 | | - ['?state=all', req._t('state.All'), 'all'] |
| 2103 | + ['?', req._t('issues.Open'), 'open'], |
| 2104 | + ['?state=closed', req._t('issues.Closed'), 'closed'], |
| 2105 | + ['?state=all', req._t('issues.All'), 'all'] |
2105 | 2106 | ], state)), |
2106 | 2107 | pull( |
2107 | 2108 | pullReqs.list({ |
2108 | 2109 | repo: repo.id, |
2110 | 2111 | }), |
2111 | 2112 | pull.map(function (issue) { |
2112 | 2113 | count++ |
2113 | 2114 | var state = (issue.open ? 'open' : 'closed') |
2114 | | - var stateStr = req._t(issue.open ? 'state.Open' : 'state.Closed') |
| 2115 | + var stateStr = req._t(issue.open ? |
| 2116 | + 'issue.state.Open' : 'issue.state.Closed') |
2115 | 2117 | return '<section class="collapse">' + |
2116 | 2118 | '<i class="issue-state issue-state-' + state + '"' + |
2117 | 2119 | ' title="' + stateStr + '">◼</i> ' + |
2118 | 2120 | '<a href="' + encodeLink(issue.id) + '">' + |
2157 | 2159 | '<code>' + issue.id + '</code>' + |
2158 | 2160 | '<section class="collapse">' + |
2159 | 2161 | (issue.open |
2160 | 2162 | ? '<strong class="issue-status open">' + |
2161 | | - req._t('state.Open') + '</strong>' |
| 2163 | + req._t('issue.state.Open') + '</strong>' |
2162 | 2164 | : '<strong class="issue-status closed">' + |
2163 | | - req._t('state.Closed') + '</strong>')), |
| 2165 | + req._t('issue.state.Closed') + '</strong>')), |
2164 | 2166 | readOnce(function (cb) { |
2165 | 2167 | about.getName(issue.author, function (err, authorName) { |
2166 | 2168 | if (err) return cb(err) |
2167 | 2169 | var authorLink = link([issue.author], authorName) |
2332 | 2334 | var baseBranchLink = link([repo.id, 'tree', pr.baseBranch]) |
2333 | 2335 | cb(null, '<section class="collapse">' + |
2334 | 2336 | '<strong class="issue-status ' + |
2335 | 2337 | (pr.open ? 'open' : 'closed') + '">' + |
2336 | | - req._t(pr.open ? 'state.Open' : 'state.Closed') + |
| 2338 | + req._t(pr.open ? 'issue.state.Open' : 'issue.state.Closed') + |
2337 | 2339 | '</strong> ' + |
2338 | 2340 | req._t('pullRequest.WantToMerge', { |
2339 | 2341 | name: authorLink, |
2340 | 2342 | base: '<code>' + baseBranchLink + '</code>', |