Refactor the file_type Mustache helper
Refactor the file_type Mustache helper

The complexity of the multiple if-else-if statements is shifted to the mapping
object, making is less likely to introduce a bug when modifying the code, as
well as making it more readable and manageable, because the resulting mapping
is now completely flat, albeit somewhat longer.

jmakov/ggrc-core,andrei-karalionak/ggrc-core,prasannav7/ggrc-core,josthkko/ggrc-core,kr41/ggrc-core,NejcZupec/ggrc-core,andrei-karalionak/ggrc-core,NejcZupec/ggrc-core,NejcZupec/ggrc-core,jmakov/ggrc-core,jmakov/ggrc-core,josthkko/ggrc-core,j0gurt/ggrc-core,kr41/ggrc-core,prasannav7/ggrc-core,edofic/ggrc-core,josthkko/ggrc-core,selahssea/ggrc-core,NejcZupec/ggrc-core,VinnieJohns/ggrc-core,j0gurt/ggrc-core,selahssea/ggrc-core,plamut/ggrc-core,j0gurt/ggrc-core,AleksNeStu/ggrc-core,jmakov/ggrc-core,VinnieJohns/ggrc-core,selahssea/ggrc-core,edofic/ggrc-core,AleksNeStu/ggrc-core,plamut/ggrc-core,andrei-karalionak/ggrc-core,AleksNeStu/ggrc-core,andrei-karalionak/ggrc-core,VinnieJohns/ggrc-core,plamut/ggrc-core,prasannav7/ggrc-core,josthkko/ggrc-core,selahssea/ggrc-core,jmakov/ggrc-core,AleksNeStu/ggrc-core,j0gurt/ggrc-core,VinnieJohns/ggrc-core,edofic/ggrc-core,prasannav7/ggrc-core,kr41/ggrc-core,plamut/ggrc-core,kr41/ggrc-core,edofic/ggrc-core