Rename isReadme to isReadmePath

This commit is contained in:
Kevin Sawicki
2013-02-12 11:47:13 -08:00
parent 0b2e2dad71
commit 1f4aedeb10
4 changed files with 4 additions and 4 deletions

View File

@@ -36,7 +36,7 @@ class PreviewList extends ScrollView
operationsByPath = _.groupBy(operations, (operation) -> operation.getPath())
for path, ops of operationsByPath
classes = ['path']
classes.push('readme') if fs.isReadme(path)
classes.push('readme') if fs.isReadmePath(path)
@li class: classes.join(' '), =>
@span path
@span "(#{ops.length})", class: 'path-match-number'

View File

@@ -36,7 +36,7 @@ class FuzzyFinderView extends SelectList
$$ ->
@li =>
ext = fs.extension(path)
if fs.isReadme(path)
if fs.isReadmePath(path)
typeClass = 'readme-name'
else if fs.isCompressedExtension(ext)
typeClass = 'compressed-name'

View File

@@ -17,7 +17,7 @@ class FileView extends View
@subscribe $(window), 'focus', => @updateStatus()
extension = fs.extension(@getPath())
if fs.isReadme(@getPath())
if fs.isReadmePath(@getPath())
@fileName.addClass('readme-icon')
else if fs.isCompressedExtension(extension)
@fileName.addClass('compressed-icon')

View File

@@ -181,7 +181,7 @@ module.exports =
], ext, true) >= 0
isReadme: (path) ->
isReadmePath: (path) ->
extension = @extension(path)
base = @base(path, extension).toLowerCase()
base is 'readme' and (extension is '' or @isMarkdownExtension(extension))