Further archive link work.
Conflicts: src/General/Header.coffee
This commit is contained in:
parent
9e1f0a12c0
commit
9daf6dd05f
@ -27,7 +27,7 @@ Redirect =
|
|||||||
archives: `<%= JSON.stringify(grunt.file.readJSON('src/Archive/archives.json')) %>`
|
archives: `<%= JSON.stringify(grunt.file.readJSON('src/Archive/archives.json')) %>`
|
||||||
|
|
||||||
to: (dest, data) ->
|
to: (dest, data) ->
|
||||||
archive = (if dest is 'search' or 'board' then Redirect.data.thread else Redirect.data[dest])[data.boardID]
|
archive = (if dest in ['search', 'board'] then Redirect.data.thread else Redirect.data[dest])[data.boardID]
|
||||||
return '' unless archive
|
return '' unless archive
|
||||||
Redirect[dest] archive, data
|
Redirect[dest] archive, data
|
||||||
|
|
||||||
|
|||||||
@ -208,9 +208,8 @@ Header =
|
|||||||
a.href = CatalogLinks[m[1]] board
|
a.href = CatalogLinks[m[1]] board
|
||||||
$.addClass a, 'catalog' if m[1] is 'catalog'
|
$.addClass a, 'catalog' if m[1] is 'catalog'
|
||||||
|
|
||||||
if /-archive/.test t
|
if /-archive/.test(t) and href = Redirect.to 'board', {boardID: board}
|
||||||
a.href = Redirect.to 'board',
|
a.href = href
|
||||||
boardID: board
|
|
||||||
|
|
||||||
$.addClass a, 'navSmall' if board is '@'
|
$.addClass a, 'navSmall' if board is '@'
|
||||||
return a
|
return a
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user